Connect your coding agent to Bitfab via Model Context Protocol
Bitfab provides an MCP (Model Context Protocol) server that lets coding agents like Cursor, Claude Code, Codex, and Windsurf set up Bitfab tracing in your codebase automatically.The MCP server provides tools for setup, trace inspection, datasets, labels, experiments, templates, and database-backed replay. Core setup tools include:
get_bitfab_api_key — Retrieves your API key for the agent to configure
get_api_key_context — Returns which Bitfab org the connection reads/writes to. Useful when data written by the agent isn’t visible in Studio (the org may differ from the project’s BITFAB_API_KEY or the org open in the browser)
list_organizations — Lists the organizations available to the signed-in user and marks the current plugin org
get_database_connection_status — Reports whether the org has connected a database for per-trace replay branching
SDK setup content (install commands, initialization, instrumentation patterns, and replay) lives in the language-specific SDK reference pages on this site (TypeScript, Python, Ruby, Go). Agents fetch those pages directly rather than through an MCP tool.
Detects your editor, installs the plugin, authenticates, and launches setup. Works with Claude Code, Codex, and Cursor.The CLI checks that your editor’s own agent is signed in before launching Bitfab setup (claude auth login, codex login, or cursor agent login).
Call get_bitfab_api_key to retrieve your API key (requires your Bitfab session)
Call get_api_key_context to confirm which org the connection targets (helpful when data isn’t showing up in the expected place)
Fetch the language-specific SDK reference from this site (e.g. https://docs.bitfab.ai/typescript-sdk) to get the full API surface, install commands, instrumentation patterns, and replay setup
Follow the reference to install the SDK, initialize the client, and instrument your functions
Call get_bitfab_api_key to get the API key and get_api_key_context to confirm the target org, then fetch the language-specific SDK reference from docs.bitfab.ai
Install the SDK
Read your codebase and identify all AI workflows
Present you with a list of workflows it found, and why each is worth instrumenting
Instrument whichever workflows you choose, one, several, or all
The agent presents options and lets you choose which workflows to instrument, so you stay in control. Each option explains what visibility tracing gives you into that workflow.