MCP server
Connect Claude, Cursor or any MCP client to Trodo, so your coding assistant can read your traces and issues, and manage prompts and datasets.
Trodo runs a hosted Model Context Protocol server at https://mcp.trodo.ai/mcp. Connect your coding assistant to it and it can read your agents' runs, spans and issues, fix an issue from its evidence, and manage your prompts, datasets and agents, without you copying anything out of the app.
It is how the loop reaches your editor: an issue filed by Lucid or an eval carries its root cause and evidence, and the assistant fixing your code reads them straight from Trodo. For scripts and CI, the CLI uses the same keys.
What the assistant can do
Each tool belongs to a group, and the server tells your client which group each tool is in.
| Group | What the assistant can do | Tools |
|---|---|---|
| Runs & spans | List and search runs, read one with its span tree, find spans across runs (every failing tool call, every call to one model), and look at metrics, token cost, tool calls, failure modes and feedback; record feedback on a run. | list_agent_runs, get_agent_run, search_agent_runs, list_spans, get_span, search_spans, get_run_metrics, get_token_cost_breakdown, get_tool_call_analysis, get_top_failure_modes, get_agent_feedback_summary, get_failed_user_attempts, submit_run_feedback |
| Issues | Read issues with their root cause, category, evidence and timeline; pull every failure behind one with its payloads; see which issues a run or span is evidence for; close or reopen; report a fix branch back to the issue. | list_issues, get_issue_details, get_issue_failures, get_issue_members, get_issue_timeline, get_run_signals, get_span_signals, set_issue_status, report_heal_branch |
| Capabilities | What your agents are used for, the runs behind each capability, and running discovery again. | list_capabilities, get_capability_runs, get_cluster_summary, rediscover_capabilities |
| Prompts | Read managed prompts, their versions, labels and variables; create prompts and versions; move a label such as production. | list_prompts, get_prompt, manage_prompt |
| Datasets | Read and edit datasets; add rows from spans, runs, conversations or verdicts; add a source; set Expected; get a one-time export link. | list_datasets, get_dataset, manage_dataset |
| Playground | Run a prompt against one or more models, or a side-by-side comparison, and keep the history. | list_playgrounds, get_playground, manage_playground |
| Agents | Read and manage your agents. | list_workflows, get_workflow, manage_workflow |
| Users | Look up a user's profile and agent runs, find users by email or name, list groups. Returns personal data. | get_user_profile, find_users, get_user_agent_runs, get_users_for_issue, list_groups, get_group_profile |
| Workspace | Your own notification inbox and preferences; your team's model prices. | list_notifications, manage_notifications, list_model_prices, manage_model_price |
| Evals | List the model providers your eval judges run on. Evals are built and read in the app and with Lucid. | list_eval_integrations |
| Search | One query across runs, spans, capabilities and issues; the names and fields your data has. | global_search, describe_schema |
Tools that change something (each manage_* tool, set_issue_status, report_heal_branch, submit_run_feedback, rediscover_capabilities) are marked as not read-only, so your client asks before running them. Each manage_* tool takes an action (such as create, update, delete or run) instead of one tool per operation.
The server's tools/list is always the exact catalog; most clients show it once connected.
Fewer tools per connection
The full catalog is 78 tools. Add ?toolsets= to the URL to show only what a connection needs:
claude mcp add --transport http trodo \
"https://mcp.trodo.ai/mcp?toolsets=debugging" \
--header "Authorization: Bearer trodo_mk_xxx"| Toolset | Tools | For |
|---|---|---|
debugging | 30 | Runs, spans, capabilities, issues and search: fixing an agent |
authoring | 9 | Prompts, playground, datasets |
evals | 6 | Datasets, eval model providers and search |
workspace | 11 | Agents, notifications, model prices |
identity | 8 | User and group lookups |
Separate several with commas (?toolsets=debugging,authoring). A toolset only narrows what the key allows; toolsets=all, or no parameter, gives the full catalog.
Before you connect
Check your plan. MCP needs a paid plan. On Free, creating a key is refused with HTTP 402, and tool calls from a Free team return an error asking you to upgrade. See Plans and billing.
Create a key. In Trodo, open Settings → MCP and click Create key. Give it a label and click Create key again. The key, starting trodo_mk_, is shown once: copy it then, because Trodo keeps only a hash. Owners, admins and developers can create and revoke keys; a team can hold up to 25.
Choose which tools to allow, in your MCP client. A key carries every tool. Claude, Cursor and other clients list each tool, let you turn tools off one by one, and ask before running a tool that isn't marked read-only.

Two ways to authenticate
- Direct API key: a
trodo_mk_key sent asAuthorization: Bearer .... Best for CLI and editor clients (Claude Code, Cursor, MCP Inspector, your own scripts). No browser flow. - OAuth: a browser consent flow. Used by clients that add a "custom connector" by URL, like Claude.ai web and Claude Desktop. You approve the connection once and the client manages the token.
Connect your client
Add it over HTTP with your key in the header (no wrapper needed):
claude mcp add --transport http trodo \
https://mcp.trodo.ai/mcp \
--header "Authorization: Bearer trodo_mk_xxx"The signature is claude mcp add [options] <name> <commandOrUrl>: every flag goes before the server name, and the URL is a positional argument, not a --url flag.
Confirm it registered:
claude mcp list
# expect: trodo http https://mcp.trodo.ai/mcpIf a proxy blocks HTTP from the CLI, use the stdio wrapper (trodomcp) instead. Flags, including --env, still come before the name; the child command goes after --:
claude mcp add --transport stdio \
--env TRODO_MCP_API_KEY=trodo_mk_xxx \
trodo -- npx -y trodomcpThen ask, for example "List the top failure modes across my agent runs in the last 7 days." If tools don't show up, run /mcp inside a claude session to inspect connection status.
Open Settings (⌘+, on macOS, Ctrl+, on Windows/Linux) → Tools & MCP (called Features → MCP on some builds) → Add new MCP server → Edit JSON. Or edit ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project) directly.
Connect to the hosted server over HTTP, no local process, no wrapper:
{
"mcpServers": {
"trodo": {
"url": "https://mcp.trodo.ai/mcp",
"headers": { "Authorization": "Bearer trodo_mk_xxx" }
}
}
}If your build doesn't support remote servers, run the stdio wrapper instead:
{
"mcpServers": {
"trodo": {
"command": "npx",
"args": ["-y", "trodomcp"],
"env": { "TRODO_MCP_API_KEY": "trodo_mk_xxx" }
}
}
}Prefer filling in the form over pasting JSON? On the Command (stdio) tab set the command to npx, add -y and trodomcp as two separate arguments in that order, and add TRODO_MCP_API_KEY as a secret.
Save, then quit Cursor completely and reopen: MCP servers only start cleanly on a full restart. If tools don't appear, check View → Output → MCP for connection errors.
Cursor in the browser reads MCP from your Cursor account, not your local mcp.json; configure it separately.
Go to cursor.com/dashboard and sign in with the same account you use in the desktop app.
Open Integrations → MCP, then Add → Edit JSON.
Paste the same mcpServers.trodo block as the Cursor tab, with your real bearer token.
If you use both surfaces, restart the desktop app after changing the dashboard so the two stay in sync.
These use OAuth, not API keys. Add a custom connector with the URL:
https://mcp.trodo.ai/mcpComplete the consent flow in your browser. Claude manages the token from there. No trodo_mk_ key needed.
Inspect the server's tools and try calls by hand:
TRODO_MCP_API_KEY=trodo_mk_xxx npx @modelcontextprotocol/inspector npx -y trodomcpThe server speaks JSON-RPC 2.0 over Streamable HTTP (MCP 2025-06-18; 2025-03-26 and 2024-11-05 are also accepted). POST to the endpoint with a bearer key:
curl https://mcp.trodo.ai/mcp \
-H "Authorization: Bearer trodo_mk_xxx" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": { "protocolVersion": "2025-03-26", "clientInfo": { "name": "my-client", "version": "1.0.0" } }
}'The initialize response returns an Mcp-Session-Id header. Echo it back on every later request so your tool calls stay in one session. Call tools/list to enumerate tools, then tools/call to run them.
The trodomcp wrapper
Clients that only speak stdio use the published trodomcp package. It's a zero-dependency adapter (Node 18+): it reads JSON-RPC from stdin, forwards each message to https://mcp.trodo.ai/mcp with your bearer key, and tracks the session id for you. Run it with npx -y trodomcp (no install) or npm install -g trodomcp.
| Variable | Default | Description |
|---|---|---|
TRODO_MCP_API_KEY | (required) | Your trodo_mk_ key. |
TRODO_MCP_URL | https://mcp.trodo.ai/mcp | Override for staging. |
TRODO_MCP_TIMEOUT_MS | 60000 | Per-request timeout. |
TRODO_MCP_DEBUG | 0 | Set to 1 to log diagnostics to stderr. |
Scopes
A key created in Settings → MCP carries every scope below; there's nothing to choose. A third-party app that connects with OAuth gets only the scopes it asks for, and calling a tool outside them returns an error naming the missing scope.
| Scope | Allows | What it is |
|---|---|---|
mcp:agent_runs | Runs, spans, metrics and feedback. | |
mcp:issue | Issues, their evidence and status, run and span signals, fix branches. | |
mcp:cluster | Capabilities. | Older tokens with only this scope still reach the issue tools, with a deprecation note. |
mcp:prompts | The prompt registry, including moving labels. | Moving production changes what live agents run. |
mcp:datasets | Datasets: read, edit, add rows, sources, Expected, export. | New rows count toward Executions. |
mcp:playground | Prompt benches, and running them. | Running calls your model providers. |
mcp:workflows | Agents. | Enabling an agent starts it running on its trigger. |
mcp:notifications | Your own notifications. | Not your teammates'. |
mcp:team_config | Model prices. | Your team role is checked too. |
mcp:evals | Eval model providers. | |
mcp:events | Search and the schema catalog. | |
mcp:user:read_pii | User profiles, lookups by email, groups. | Personal data. Turn these tools off in your client if the assistant doesn't need them. |
Limits and errors
- Rate. Each API key can make 600 calls a minute; an OAuth connection, 60. Over it, the tool call returns an error saying when to try again.
HTTP 401: the key is wrong or was revoked. Create a new one in Settings → MCP.- An error saying MCP needs Growth or Enterprise: your team is on the Free plan. Upgrade in Settings → Billing.
- An error naming a missing scope: an OAuth app connected without that scope. Reconnect it and grant the scope.
- Each call shows up as its own session: your client isn't sending the
Mcp-Session-Idheader back. Thetrodomcpwrapper does it for you.
The Overview
Every team's ready-made report under Observe → Overview: runs, failures, cost, latency, usage and eval results, without building anything.
Overview
The trodo command line: read and measure traces, see why evals failed, build and label datasets, manage prompts and issues, run agents, and export fine-tuning files from a terminal, a script, CI or a coding agent.