Skip to main content
GET
/
mcp
/
{mcp_server_name}
MCP server proxy endpoint
curl --request GET \
  --url https://{organization_id}.platform.barndoor.ai/mcp/{mcp_server_name} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "method": "tools/list",
  "params": {},
  "id": 1
}
'
{
  "jsonrpc": "2.0",
  "result": {
    "tools": [
      {
        "name": "get_accounts",
        "description": "Get Salesforce accounts",
        "parameters": {
          "type": "object",
          "properties": {
            "limit": {
              "type": "integer",
              "description": "Maximum number of accounts"
            }
          }
        }
      }
    ]
  },
  "id": 1
}

Documentation Index

Fetch the complete documentation index at: https://docs.barndoor.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT token obtained through Auth0 OAuth 2.0 flow with PKCE.

The token should be included in the Authorization header: Authorization: Bearer <your-jwt-token>

Use the Barndoor SDK's loginInteractive() function to obtain tokens automatically.

Headers

x-mcp-session-id
string

MCP session identifier for request tracking

Path Parameters

mcp_server_name
string
required

MCP server name identifier

Pattern: ^[a-z0-9-]+$

Body

application/json

MCP JSON-RPC request payload

MCP JSON-RPC 2.0 request

jsonrpc
enum<string>
required

JSON-RPC version

Available options:
2.0
method
string
required

MCP method name

Example:

"tools/list"

params
object

Method parameters

id

Request identifier

Response

MCP response or SSE stream

MCP JSON-RPC 2.0 response

jsonrpc
enum<string>
required
Available options:
2.0
id
required

Request identifier

result
object

Method result

error
object

Error object if method failed