MCP: Cursor & VS Code
Fastest: install with fai
fai mcp install https://openx.fathym.com/oi-api/mcp --name openx --auth "YOUR_TOKEN"
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/oi-api/mcp",
"headers": { "Authorization": "Bearer YOUR_TOKEN" }
}
}
}
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/oi-api/mcp",
"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 run_warm_query, list_data_connections,
tail_telemetry, and manage_proposals. Ask: "Average signups per hour today?" and it calls
run_warm_query.
Use it
- Read: "Show signups by campaign this week" ->
run_warm_query/run_adhoc_warm_query. - Build: it proposes a connection/surface/query via
manage_proposals; you accept in the portal.
Token under APIs -> API Keys. Every call is in your change history.