{
  "info": {
    "name": "Cormak — MCP",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Read-only HTTP JSON-RPC companion for the existing remote MCP. Endpoint https://mcp.cormak.app/mcp. OAuth PKCE; request account:read projects:read for these demos. Full source catalogue mcp-tools.json contains 83 tools; live tools/list is authoritative. No paid calls or mutations are included. To publish in the Postman MCP Catalog also add a native MCP HTTP request in Postman; ordinary Collection v2.1 JSON does not encode a native MCP request. See MCP.md."
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://mcp.cormak.app",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "",
      "type": "string"
    },
    {
      "key": "mcpProtocolVersion",
      "value": "2025-06-18",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Read-only MCP quickstart",
      "item": [
        {
          "name": "1. Initialize",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json, text/event-stream"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/mcp",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "mcp"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"initialize\",\n  \"params\": {\n    \"protocolVersion\": \"2025-06-18\",\n    \"capabilities\": {},\n    \"clientInfo\": {\n      \"name\": \"Cormak Postman\",\n      \"version\": \"1.0.0\"\n    }\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Free handshake. Uses the legacy protocol exercised by the existing integration suite. Use returned protocolVersion for subsequent requests."
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.variables.get('apiKey')) { pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "(() => {",
                  "pm.test('HTTP 200', () => pm.response.to.have.status(200));",
                  "pm.test('JSON or SSE response', () => pm.expect(pm.response.headers.get('Content-Type')).to.match(/application\\/json|text\\/event-stream/));",
                  "const text=pm.response.text(); const rpc=pm.response.headers.get('Content-Type').includes('text/event-stream') ? text.split(/\\r?\\n\\r?\\n/).map(block=>block.split(/\\r?\\n/).filter(line=>line.startsWith('data:')).map(line=>line.slice(5).trimStart()).join('\\n')).filter(Boolean).map(value=>JSON.parse(value)).find(value=>value.id!==undefined) : pm.response.json();",
                  "pm.test('JSON-RPC envelope', () => { pm.expect(rpc.jsonrpc).to.eql('2.0'); pm.expect(rpc).to.not.have.property('error'); });",
                  "pm.test('Negotiation', () => { pm.expect(rpc.result.protocolVersion).to.be.a('string'); pm.expect(rpc.result.serverInfo.version).to.be.a('string'); pm.collectionVariables.set('mcpProtocolVersion',rpc.result.protocolVersion); });",
                  "})();"
                ]
              }
            }
          ],
          "response": []
        },
        {
          "name": "2. Initialized notification",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json, text/event-stream"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "MCP-Protocol-Version",
                "value": "{{mcpProtocolVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/mcp",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "mcp"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"jsonrpc\": \"2.0\",\n  \"method\": \"notifications/initialized\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Free notification."
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.variables.get('apiKey')) { pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "(() => {",
                  "pm.test('HTTP 202', () => pm.response.to.have.status(202));",
                  "})();"
                ]
              }
            }
          ],
          "response": []
        },
        {
          "name": "3. List authorized tools",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json, text/event-stream"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "MCP-Protocol-Version",
                "value": "{{mcpProtocolVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/mcp",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "mcp"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 2,\n  \"method\": \"tools/list\",\n  \"params\": {}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Free. Only tools in the current token/grant scope intersection are returned."
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.variables.get('apiKey')) { pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "(() => {",
                  "pm.test('HTTP 200', () => pm.response.to.have.status(200));",
                  "pm.test('JSON or SSE response', () => pm.expect(pm.response.headers.get('Content-Type')).to.match(/application\\/json|text\\/event-stream/));",
                  "const text=pm.response.text(); const rpc=pm.response.headers.get('Content-Type').includes('text/event-stream') ? text.split(/\\r?\\n\\r?\\n/).map(block=>block.split(/\\r?\\n/).filter(line=>line.startsWith('data:')).map(line=>line.slice(5).trimStart()).join('\\n')).filter(Boolean).map(value=>JSON.parse(value)).find(value=>value.id!==undefined) : pm.response.json();",
                  "pm.test('JSON-RPC envelope', () => { pm.expect(rpc.jsonrpc).to.eql('2.0'); pm.expect(rpc).to.not.have.property('error'); });",
                  "pm.test('Tool catalogue', () => { pm.expect(rpc.result.tools).to.be.an('array'); rpc.result.tools.forEach(t => { pm.expect(t.name).to.be.a('string'); pm.expect(t.inputSchema).to.be.an('object'); }); });",
                  "})();"
                ]
              }
            }
          ],
          "response": []
        },
        {
          "name": "4. Read own account — account:read",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json, text/event-stream"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "MCP-Protocol-Version",
                "value": "{{mcpProtocolVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/mcp",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "mcp"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 3,\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"get_account\",\n    \"arguments\": {}\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Free. Requires account:read. Do not save your wallet response as a public example."
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.variables.get('apiKey')) { pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "(() => {",
                  "pm.test('HTTP 200', () => pm.response.to.have.status(200));",
                  "pm.test('JSON or SSE response', () => pm.expect(pm.response.headers.get('Content-Type')).to.match(/application\\/json|text\\/event-stream/));",
                  "const text=pm.response.text(); const rpc=pm.response.headers.get('Content-Type').includes('text/event-stream') ? text.split(/\\r?\\n\\r?\\n/).map(block=>block.split(/\\r?\\n/).filter(line=>line.startsWith('data:')).map(line=>line.slice(5).trimStart()).join('\\n')).filter(Boolean).map(value=>JSON.parse(value)).find(value=>value.id!==undefined) : pm.response.json();",
                  "pm.test('JSON-RPC envelope', () => { pm.expect(rpc.jsonrpc).to.eql('2.0'); pm.expect(rpc).to.not.have.property('error'); });",
                  "pm.test('Tool succeeded', () => pm.expect(rpc.result.isError).to.not.eql(true));",
                  "pm.test('Wallet structure', () => { pm.expect(rpc.result.structuredContent.available_ai_credits).to.be.a('number'); pm.expect(rpc.result.structuredContent.plan).to.be.a('string'); });",
                  "})();"
                ]
              }
            }
          ],
          "response": []
        },
        {
          "name": "5. List own projects — projects:read",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json, text/event-stream"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "MCP-Protocol-Version",
                "value": "{{mcpProtocolVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/mcp",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "mcp"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 4,\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"list_projects\",\n    \"arguments\": {\n      \"limit\": 5\n    }\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Free. Requires projects:read. Returned content is private and untrusted."
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (!pm.variables.get('apiKey')) { pm.execution.skipRequest(); }"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "(() => {",
                  "pm.test('HTTP 200', () => pm.response.to.have.status(200));",
                  "pm.test('JSON or SSE response', () => pm.expect(pm.response.headers.get('Content-Type')).to.match(/application\\/json|text\\/event-stream/));",
                  "const text=pm.response.text(); const rpc=pm.response.headers.get('Content-Type').includes('text/event-stream') ? text.split(/\\r?\\n\\r?\\n/).map(block=>block.split(/\\r?\\n/).filter(line=>line.startsWith('data:')).map(line=>line.slice(5).trimStart()).join('\\n')).filter(Boolean).map(value=>JSON.parse(value)).find(value=>value.id!==undefined) : pm.response.json();",
                  "pm.test('JSON-RPC envelope', () => { pm.expect(rpc.jsonrpc).to.eql('2.0'); pm.expect(rpc).to.not.have.property('error'); });",
                  "pm.test('Tool succeeded', () => pm.expect(rpc.result.isError).to.not.eql(true));",
                  "pm.test('Project list', () => pm.expect(rpc.result.structuredContent.projects).to.be.an('array'));",
                  "})();"
                ]
              }
            }
          ],
          "response": []
        }
      ]
    }
  ]
}
