{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.trymargin/margin",
  "slug": "io.trymargin.margin",
  "title": "Margin",
  "summary": "Tests a model or prompt change on your own evals and says if it holds, before your agent ships it.",
  "version": "0.2.1",
  "serverKey": "margin",
  "pageUrl": "https://mcpkglabs.com/tool/io.trymargin.margin",
  "installMdUrl": "https://mcpkglabs.com/tool/io.trymargin.margin/install.md",
  "trust": {
    "score": 87,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-02T11:20:59.939573062Z"
  },
  "methods": [
    {
      "id": "remote",
      "label": "Remote (hosted)",
      "transport": "streamable-http",
      "url": "https://trymargin.io/api/mcp?tools=core",
      "headers": [
        {
          "name": "Authorization",
          "description": "Your project's ingest key (mgk_...), from trymargin.io/start, sent as a bearer token. Reads only.",
          "isRequired": true,
          "isSecret": true
        }
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add --transport http margin https://trymargin.io/api/mcp?tools=core --header 'Authorization: <Authorization>'"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)",
          "content": "{\n  \"mcpServers\": {\n    \"margin\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-remote\",\n        \"https://trymargin.io/api/mcp?tools=core\",\n        \"--header\",\n        \"Authorization: <Authorization>\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"margin\": {\n      \"headers\": {\n        \"Authorization\": \"<Authorization>\"\n      },\n      \"url\": \"https://trymargin.io/api/mcp?tools=core\"\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"servers\": {\n    \"margin\": {\n      \"headers\": {\n        \"Authorization\": \"<Authorization>\"\n      },\n      \"type\": \"http\",\n      \"url\": \"https://trymargin.io/api/mcp?tools=core\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.margin]\ncommand = \"npx\"\nargs = [\"-y\", \"mcp-remote\", \"https://trymargin.io/api/mcp?tools=core\", \"--header\", \"Authorization: <Authorization>\"]"
        }
      ]
    },
    {
      "id": "remote",
      "label": "Remote (hosted)",
      "transport": "streamable-http",
      "url": "https://trymargin.io/api/mcp/agent?tools=core",
      "headers": [
        {
          "name": "Authorization",
          "description": "An agent key (mak_...) with a spend limit, created in the console, sent as a bearer token. Can run replays and face-offs.",
          "isRequired": true,
          "isSecret": true
        }
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add --transport http margin https://trymargin.io/api/mcp/agent?tools=core --header 'Authorization: <Authorization>'"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)",
          "content": "{\n  \"mcpServers\": {\n    \"margin\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-remote\",\n        \"https://trymargin.io/api/mcp/agent?tools=core\",\n        \"--header\",\n        \"Authorization: <Authorization>\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"margin\": {\n      \"headers\": {\n        \"Authorization\": \"<Authorization>\"\n      },\n      \"url\": \"https://trymargin.io/api/mcp/agent?tools=core\"\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"servers\": {\n    \"margin\": {\n      \"headers\": {\n        \"Authorization\": \"<Authorization>\"\n      },\n      \"type\": \"http\",\n      \"url\": \"https://trymargin.io/api/mcp/agent?tools=core\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.margin]\ncommand = \"npx\"\nargs = [\"-y\", \"mcp-remote\", \"https://trymargin.io/api/mcp/agent?tools=core\", \"--header\", \"Authorization: <Authorization>\"]"
        }
      ]
    }
  ],
  "env": null,
  "expectedTools": [
    "margin_jobs",
    "margin_optimize",
    "margin_faceoff_status",
    "margin_test_move",
    "margin_test_model",
    "margin_delegate_key",
    "margin_my_keys",
    "margin_fit_check",
    "margin_replay_dataset",
    "margin_check_experiments",
    "margin_report_outcome",
    "margin_change_record",
    "margin_verdict_receipt",
    "margin_track_record",
    "margin_draft_checks",
    "margin_pin_drift_check"
  ],
  "agentSteps": [
    "Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: margin_jobs, margin_optimize, margin_faceoff_status, margin_test_move, margin_test_model, margin_delegate_key, margin_my_keys, margin_fit_check, ….",
    "If it fails, check that the required runtime is installed (none) and that the values above are set."
  ],
  "generatedAt": "2026-12-02T11:20:59.939573062Z"
}
