Docs menu

MCP: Claude (Code & Desktop)

Connect Claude to your workshop so it can read your sources of truth and propose new ones. Claude Code (the CLI) and the Claude Desktop app are set up differently.

Prerequisites

  • A way to sign in. In a browser, sign in with OpenX and there is no key (see "Or skip the key" below). For a client that cannot open a browser, an MCP key: open APIs -> OpenX MCP Server, choose just this workspace, and mint one. A key from APIs -> API Keys is a team key for the REST API, and the MCP server does not take one. See Connecting to the OpenX MCP Server.
  • With a key, the workspace's own address, https://openx.fathym.com/ox-api/mcp/w/<workspace id>, shown in that window. A key works only there, so the setups below that carry a key use it.

Claude Code (CLI)

Fastest - fai mcp install configures Claude Code (and your other detected agents) in one command:

fai mcp install https://openx.fathym.com/ox-api/mcp/w/<workspace id> --name openx --global --auth "YOUR_MCP_KEY"

Or use Claude Code directly:

claude mcp add --transport http openx https://openx.fathym.com/ox-api/mcp/w/<workspace id> \
  --header "Authorization: Bearer YOUR_MCP_KEY"

Either writes ~/.claude.json with an mcpServers.openx entry (type: http, your URL, the bearer header). Browse the tools with fai mcp preview openx.

The transport is spelled http. ⛔ Not streamable-http - Claude rejects that spelling, even though Streamable HTTP is what the server speaks.

Where "Streamable HTTP" comes from. No OpenX runtime declares the transport. It is constructed one layer down, by @fathym/eac's MCP processor, which builds the MCP SDK's WebStandardStreamableHTTPServerTransport (SDK 1.27.1); SSEServerTransport is not referenced anywhere in @fathym/eac. ⚠️ Streamable HTTP frames some of its responses as text/event-stream, which is why an event stream on the wire gets mistaken for the old SSE transport. Seeing text/event-stream is ⛔ not a reason to switch a client to SSE.

Claude Desktop (app)

The Claude Desktop config file takes local stdio servers only, so point it at the endpoint through the mcp-remote bridge. Edit claude_desktop_config.json (macOS ~/Library/Application Support/Claude/, Windows %APPDATA%\Claude\):

{
  "mcpServers": {
    "openx": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://openx.fathym.com/ox-api/mcp/w/<workspace id>",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer YOUR_MCP_KEY"
      }
    }
  }
}

Restart Claude Desktop.

Why the key rides in env and not in args: Claude Desktop on Windows does not escape spaces inside args, so "Authorization: Bearer YOUR_MCP_KEY" written there splits and the header arrives malformed. Passing Authorization:${AUTH_HEADER} and putting the value in env keeps the space out of args entirely.

Or skip the key: connect in the browser

In Claude.ai, add OpenX as a custom connector and paste the server URL on its own:

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

The client discovers the sign-in itself. You sign in with OpenX, pick the workspace, and tick the rights to share with the connection - no key to generate, store, or rotate, and the connection is re-checked at each refresh, so removing someone from the workspace cuts their access.

Verify

Look for the OpenX tools (a tools/hammer indicator). Every tool is listed in OpenX MCP Server tools.

Use it

Ask in plain language: "What were the average signups per hour today?" Claude calls call_api against your saved source of truth. To build, it proposes via manage_proposals; you accept in the workspace - there is no accept tool over MCP.

Notes

  • MCP calls are not written to your workshop's change history today.
  • Key stopped working? An MCP key stops when it is revoked in the OpenX MCP Server window or reaches the end of the lifetime you picked. Mint a new one under APIs -> OpenX MCP Server and re-run the install (or update the header). A client configured with an Authorization header returns 401 and will not fall back to browser sign-in, because a configured header switches that fallback off - so a connection that worked yesterday and 401s today is almost always a stale key, not a server fault. A key from APIs -> API Keys is refused the same way.

On fathym.com: Connect your AI to OpenX →

On this page