Documentation
API ReferenceMCP Gateway API

MCP Gateway API

API reference for the Fabric MCP Gateway — endpoint details, authentication, tools, and authority management.

The Fabric MCP Gateway exposes a single endpoint that implements the MCP 2025-03-26 Streamable HTTP transport. It works with any MCP-compatible client.

Endpoint

POST https://your-fabric.com/api/mcp-gateway

Authentication

Include one of the following:

MethodHeaderFormat
API Key (recommended)AuthorizationBearer fab_xxxx_xxxxxxxxxx
Organization contextX-Organization-IdOrganization ID string

MCP Protocol Methods

initialize

Establishes a new MCP session.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "initialize",
  "params": {}
}

Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "protocolVersion": "2025-03-26",
    "serverInfo": {
      "name": "fabric-mcp-gateway",
      "version": "1.0.0"
    },
    "capabilities": {
      "tools": { "listChanged": true }
    },
    "instructions": "..."
  }
}

The response includes an Mcp-Session-Id header for subsequent requests.

tools/list

Returns all available tools.

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/list"
}

Response includes:

  • Platform tools (fabric_*) — always present, 21 tools
  • Connected server tools ({prefix}__{tool}) — from your MCP server connections

Connected tools include _meta with authority status:

{
  "name": "linear__create_issue",
  "description": "[Linear] Create a new issue",
  "inputSchema": { "..." },
  "_meta": {
    "requiresAuthority": true,
    "authorityStatus": "missing",
    "providerKey": "linear"
  }
}

tools/call

Execute a tool.

{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "fabric_list_projects",
    "arguments": {
      "status": "ACTIVE",
      "limit": 10
    }
  }
}

For connected server tools, authority must be active:

{
  "jsonrpc": "2.0",
  "id": 4,
  "method": "tools/call",
  "params": {
    "name": "linear__list_issues",
    "arguments": { "project": "ABC" }
  }
}

If not authorized, returns:

{
  "result": {
    "content": [{
      "type": "text",
      "text": "{\"error\":\"Authority required\",\"action\":\"request_authority\",\"providerKey\":\"linear\"}"
    }],
    "isError": true
  }
}

Authority Management API

The following oRPC procedures manage authority sessions from the Fabric UI/API:

List Authority Sessions

GET /api/rpc/mcp.authority.list

Parameters:

NameTypeDescription
organizationIdstring?Org context (null for personal)
statusstring?Filter: PENDING, ACTIVE, EXPIRED, REVOKED, COMPLETED
limitnumber?Max results (default 20)
offsetnumber?Pagination offset

Get Authority Session

GET /api/rpc/mcp.authority.get
NameTypeDescription
sessionIdstringAuthority session ID
organizationIdstring?Org context

Approve Authority Session

POST /api/rpc/mcp.authority.approve
NameTypeDescription
sessionIdstringSession to approve
organizationIdstring?Org context
instructionsstring?Optional notes for the agent

Deny Authority Session

POST /api/rpc/mcp.authority.deny
NameTypeDescription
sessionIdstringSession to deny
organizationIdstring?Org context
reasonstring?Denial reason

Revoke Authority Session

POST /api/rpc/mcp.authority.revoke
NameTypeDescription
sessionIdstringActive session to revoke
organizationIdstring?Org context

HTTP Methods

MethodPurpose
POST /api/mcp-gatewayJSON-RPC requests
GET /api/mcp-gatewayServer info (no auth)
DELETE /api/mcp-gatewayTerminate session (include Mcp-Session-Id header)

Error Codes

JSON-RPC CodeMeaning
-32700Parse error (malformed JSON)
-32600Invalid JSON-RPC version
-32601Method not found
-32602Missing required parameters
-32603Internal error

Rate Limits

Standard API rate limits apply. The gateway does not add additional rate limiting beyond what the underlying MCP servers enforce.


Next Steps