{
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-09-29/server.schema.json",
  "name": "dev.tokenjam/tokenjam",
  "description": "Query an AI agent's own cost, traces, budgets, and drift from a local TokenJam store.",
  "version": "0.6.11",
  "websiteUrl": "https://tokenjam.dev/docs/mcp-server",
  "repository": {
    "url": "https://github.com/metabuilder-labs/tokenjam",
    "source": "github"
  },
  "packages": [
    {
      "registryType": "pypi",
      "registryBaseUrl": "https://pypi.org",
      "identifier": "tokenjam",
      "version": "0.6.11",
      "runtimeHint": "uvx",
      "runtimeArguments": [
        {
          "type": "named",
          "name": "--from",
          "value": "tokenjam",
          "isRequired": true,
          "description": "The PyPI package providing the `tj` console script."
        },
        {
          "type": "positional",
          "value": "tj",
          "valueHint": "tj",
          "isRequired": true,
          "description": "The TokenJam CLI entry point."
        }
      ],
      "packageArguments": [
        {
          "type": "positional",
          "value": "mcp",
          "valueHint": "mcp",
          "isRequired": true,
          "description": "Starts the stdio MCP server."
        }
      ],
      "transport": {
        "type": "stdio"
      }
    }
  ],
  "x-tokenjam": {
    "summary": "Tools for cost by agent, model, and day; recent traces and their span waterfalls; budget headroom; behavioral drift against a learned baseline; unread alerts; and the recoverable-spend report from the TokenJam optimization analyzers.",
    "transport_note": "TokenJam runs entirely on the user's machine. There is no hosted MCP endpoint, so this manifest declares a package rather than a remote. If `tj serve` is already running, `tj mcp` proxies through its local HTTP API; otherwise it opens the local DuckDB store read-only.",
    "documentation_url": "https://tokenjam.dev/docs/mcp-server",
    "install_url": "https://tokenjam.dev/docs/install-upgrade",
    "cost_note": "An in-loop MCP server adds tool definitions to every turn. A measured A/B showed +36% model-weighted quota for Claude Code subscription users, which is why Claude Code onboarding does not install it by default."
  }
}
