Agents and MCP

VS Code

Add Tracehold to VS Code's built-in MCP support.

A server people sign in to#

Create .vscode/mcp.json in your workspace with the address only:

{
  "servers": {
    "tracehold-dev-agents": {
      "type": "http",
      "url": "https://api.tracehold.ai/mcp/<server-id>/"
    }
  }
}

When VS Code starts the server it asks you to sign in: Tracehold opens in the browser, you sign in and choose Allow. See Agent identity.

A server that takes a token#

VS Code's input variables keep the token out of the file: it prompts once and stores it securely.

{
  "servers": {
    "tracehold-prod-ops": {
      "type": "http",
      "url": "https://api.tracehold.ai/mcp/<server-id>/",
      "headers": { "Authorization": "Bearer ${input:tracehold-token}" }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "tracehold-token",
      "description": "Tracehold server token",
      "password": true
    }
  ]
}

Note the top-level key is servers, not mcpServers.

Verify#

Start the server from the MCP view, then ask the agent something cloud-shaped. The call appears in Tracehold under Activity.