Docs menu

MCP: Custom Clients

The OpenX MCP server is a standard Streamable HTTP MCP endpoint, so any MCP client or agent framework can drive it. The transport is @fathym/eac's MCP processor building the MCP SDK's WebStandardStreamableHTTPServerTransport (SDK 1.27.1). ⚠️ It frames some responses as text/event-stream — that is Streamable HTTP doing its job, ⛔ not SSE. A client configured for the old SSE transport does not connect at all.

https://openx.fathym.com/ox-api/mcp

Auth: Authorization: Bearer YOUR_MCP_KEY on every request, where the token is an MCP key minted under APIs -> OpenX MCP Server. A key works only on its workspace's own address, https://openx.fathym.com/ox-api/mcp/w/<workspace id>, so the calls below use it. A key from APIs -> API Keys is a team key for the REST API, and the MCP server does not take one. A revoked or lapsed MCP key returns 401. A client that speaks OAuth 2.1 can instead discover the sign-in endpoints from https://openx.fathym.com/oauth/.well-known/oauth-authorization-server and hold no key at all. How each way works is on Connecting to the OpenX MCP Server.

List the tools

curl -X POST 'https://openx.fathym.com/ox-api/mcp/w/<workspace id>' \
  -H 'Authorization: Bearer YOUR_MCP_KEY' \
  -H 'Content-Type: application/json' \
  -d '{ "jsonrpc": "2.0", "method": "tools/list", "id": 1 }'

Call a tool

curl -X POST 'https://openx.fathym.com/ox-api/mcp/w/<workspace id>' \
  -H 'Authorization: Bearer YOUR_MCP_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "jsonrpc": "2.0",
    "method": "tools/call",
    "params": {
      "name": "call_api",
      "arguments": { "route": "GET /warm-queries/signups-per-hour" }
    },
    "id": 2
  }'

Tool schemas

tools/list returns each tool's inputSchema (JSON Schema), so your client can discover arguments at runtime. Every tool, with its inputs and an example, is in OpenX MCP Server tools. The server proposes builds through manage_proposals; you accept in the workspace.

Agent frameworks

Any MCP-aware framework (LangChain, custom agents) can point at the endpoint and use the tools. Proposals created over MCP wait for human acceptance in the workspace - there is no accept tool, by design.

Errors

JSON-RPC errors come back in the standard envelope (error.code / error.message); auth failures return 401/403. Prefer plain HTTP for reads? Every warm query is also a REST endpoint - see the REST API.

On fathym.com: Connect your AI to OpenX →

On this page