Agents and MCP
Connect your agents
Connect any MCP client that speaks Streamable HTTP: coding agents sign in as their person, pipelines use a token.
Every client needs the server's endpoint from its page in Tracehold:
https://api.tracehold.ai/mcp/<server-id>/ (with or without the trailing slash).
Then, depending on the server's Who can connect setting:
- People sign in (coding agents): nothing else. The app opens Tracehold in the browser the first time; the person signs in and allows it, and its calls are theirs. See Agent identity.
- A token (pipelines and programs): the server's token, shown once when the server is created; rotate it on the server's page if lost.
Tracehold speaks MCP over plain HTTP POST (JSON-RPC). Clients or classes that only support Server-Sent Events will not connect.
Agents that run inside your network can use your connector's address instead, so results never leave your network, with the same token or by signing in: Agents inside your network. The server's page offers it first when a connector serves MCP.
One command: claude mcp add --transport http
A custom connector, or the mcp-remote bridge for a token
.cursor/mcp.json, key url
.vscode/mcp.json, key servers
mcp_config.json: mcp-remote to sign in, serverUrl for a token
MCPServerStreamableHttp
langchain-mcp-adapters
MCPServerAdapter
Coding agents usually sign in; the three frameworks run as programs, so
they connect to a token server. When a call waits for a person, an agent
waits for the answer with Tracehold's tracehold_wait_for_approval tool:
Agents in pipelines has tested code for every
case.
Check the connection#
Without any client, from a terminal:
curl -s -X POST https://api.tracehold.ai/mcp/<server-id>/ \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
For a token server it returns the tools the server exposes. For a server
people sign in to, leave out the Authorization line: it answers 401 with
a WWW-Authenticate header naming where to sign in, which is what an agent
app follows. In the app, the
server's page shows the first connection and, if a request was rejected, the
exact reason (for example a missing or wrong token).