{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.ericlovold/sanction",
  "slug": "io.github.ericlovold.sanction",
  "title": "Sanction",
  "summary": "Approval and budget checks before agent spending or tool use.",
  "version": "0.10.0",
  "serverKey": "sanction",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.ericlovold.sanction",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.ericlovold.sanction/install.md",
  "trust": {
    "score": 94,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T15:26:59.021569012Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "sanction-mcp@0.10.0"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add sanction -e 'SANCTION_API_KEY=<SANCTION_API_KEY>' -- npx -y sanction-mcp@0.10.0"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"sanction\": {\n      \"args\": [\n        \"-y\",\n        \"sanction-mcp@0.10.0\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"SANCTION_API_KEY\": \"<SANCTION_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"sanction\": {\n      \"args\": [\n        \"-y\",\n        \"sanction-mcp@0.10.0\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"SANCTION_API_KEY\": \"<SANCTION_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"SANCTION_API_KEY\",\n      \"id\": \"sanction-api-key\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"sanction\": {\n      \"args\": [\n        \"-y\",\n        \"sanction-mcp@0.10.0\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"SANCTION_API_KEY\": \"${input:sanction-api-key}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.sanction]\ncommand = \"npx\"\nargs = [\"-y\", \"sanction-mcp@0.10.0\"]\nenv = { \"SANCTION_API_KEY\" = \"<SANCTION_API_KEY>\" }"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    },
    {
      "id": "remote",
      "label": "Remote (hosted)",
      "transport": "streamable-http",
      "url": "https://getsanction.com/mcp",
      "headers": [
        {
          "name": "x-api-key",
          "description": "Sanction agent key (pxy_...). Store in the host secret configuration, never in chat.",
          "isRequired": true,
          "isSecret": true
        }
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add --transport http sanction https://getsanction.com/mcp --header 'x-api-key: <x-api-key>'"
        },
        {
          "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    \"sanction\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-remote\",\n        \"https://getsanction.com/mcp\",\n        \"--header\",\n        \"x-api-key: <x-api-key>\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"sanction\": {\n      \"headers\": {\n        \"x-api-key\": \"<x-api-key>\"\n      },\n      \"url\": \"https://getsanction.com/mcp\"\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"servers\": {\n    \"sanction\": {\n      \"headers\": {\n        \"x-api-key\": \"<x-api-key>\"\n      },\n      \"type\": \"http\",\n      \"url\": \"https://getsanction.com/mcp\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.sanction]\ncommand = \"npx\"\nargs = [\"-y\", \"mcp-remote\", \"https://getsanction.com/mcp\", \"--header\", \"x-api-key: <x-api-key>\"]"
        }
      ]
    }
  ],
  "env": [
    {
      "name": "SANCTION_API_KEY",
      "required": true,
      "secret": true,
      "description": "Agent API key (pxy_...). Create one at https://getsanction.com or via POST /api/v1/wallets then POST /api/v1/agents.",
      "help": "Agent API key (pxy_...). Create one at https://getsanction.com or via POST /api/v1/wallets then POST /api/v1/agents.",
      "placeholder": "<SANCTION_API_KEY>"
    },
    {
      "name": "SANCTION_WALLET_ID",
      "required": false,
      "secret": false,
      "description": "Optional override for sanction_wallet_status; by default the wallet derives from the agent key.",
      "help": "Optional override for sanction_wallet_status; by default the wallet derives from the agent key.",
      "placeholder": "<SANCTION_WALLET_ID>"
    },
    {
      "name": "SANCTION_API_URL",
      "required": false,
      "secret": false,
      "description": "Sanction API base URL.",
      "help": "Sanction API base URL.",
      "default": "https://getsanction.com/api/v1",
      "placeholder": "https://getsanction.com/api/v1"
    }
  ],
  "expectedTools": [
    "sanction_authorize",
    "sanction_authorize_provision",
    "sanction_authorize_tool",
    "sanction_authorize_capability",
    "sanction_log_tokens",
    "sanction_log_outcome",
    "sanction_request_execution",
    "sanction_inject_credential",
    "sanction_wallet_status",
    "sanction_check_authorization"
  ],
  "agentSteps": [
    "Ask the user for: SANCTION_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "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: sanction_authorize, sanction_authorize_provision, sanction_authorize_tool, sanction_authorize_capability, sanction_log_tokens, sanction_log_outcome, sanction_request_execution, sanction_inject_credential, ….",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T15:26:59.021569012Z"
}
