Docs menu

MCP: Cursor & VS Code

Fastest: install with fai

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

fai detects Cursor, VS Code (Copilot), and Cline and writes each one's MCP config. Reload the editor.

Cursor (by hand)

Edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "openx": {
      "url": "https://openx.fathym.com/ox-api/mcp/w/<workspace id>",
      "headers": { "Authorization": "Bearer YOUR_MCP_KEY" }
    }
  }
}

VS Code / GitHub Copilot (by hand)

Remote HTTP MCP needs VS Code 1.101+. Edit your user mcp.json (note the servers key):

{
  "servers": {
    "openx": {
      "type": "http",
      "url": "https://openx.fathym.com/ox-api/mcp/w/<workspace id>",
      "headers": { "Authorization": "Bearer ${input:openx_token}" }
    }
  }
}

Use ${input:openx_token} (VS Code prompts for it securely) or ${env:OPENX_TOKEN} rather than pasting the raw token. fai mcp install writes this file for you.

Verify

In the editor's AI chat, list tools - you should see the OpenX tools, all listed in OpenX MCP Server tools. Ask: "Average signups per hour today?" and it calls call_api.

Use it

  • Read: "Show signups by campaign this week" -> call_api (a saved query, or a draft).
  • Build: it proposes a connection/surface/query via manage_proposals; you accept in the workspace.

The key in these entries is an MCP key: open APIs -> OpenX MCP Server, choose just this workspace, and mint one. It works only on that workspace's own address, the /w/<workspace id> address the window shows, which these entries use. A key from APIs -> API Keys is a team key for the REST API, and the MCP server does not take one. MCP calls are not written to your change history today.

An MCP key stops working when it is revoked in the OpenX MCP Server window or reaches the end of the lifetime you picked. When it does this entry returns 401 and the editor will not fall back to browser sign-in, because a configured Authorization header switches that fallback off. Mint a new key, or remove the headers block and let the client sign in through the browser instead. How each way works is on Connecting to the OpenX MCP Server.

On fathym.com: Connect your AI to OpenX →

On this page