Microsoft·.vscode/mcp.json

Visual Studio Code + Mackerel

Native MCP client via .vscode/mcp.json with secret prompt inputs so keys stay out of git.

  1. 1

    Add .vscode/mcp.json

    VS Code prompts for the key once and stores it in your OS keychain.

    .vscode/mcp.json

    {
      "inputs": [
        {
          "type": "promptString",
          "id": "mackerel-api-key",
          "description": "Mackerel API Key (mk_live_...)",
          "password": true
        }
      ],
      "servers": {
        "mackerel": {
          "type": "http",
          "url": "https://api.runmackerel.com/mcp",
          "headers": {
            "Authorization": "Bearer ${input:mackerel-api-key}"
          }
        }
      }
    }
  2. 2

    Add project instructions

    Appends Mackerel's machine-readable invariants to AGENTS.md in your workspace root.

    curl -fsSL https://runmackerel.com/skill.md >> AGENTS.md

What your agent gets

Served over Streamable HTTP at https://api.runmackerel.com/mcp.

mackerel_search

Search demo_sops or custom corpora with ACL groups, override chains, and abstention.

mackerel_list_corpora

List available corpora and rule counts in the authenticated workspace.

mackerel_upsert_rule

Add or update rule nodes, ACL groups, overrides, and supersession edges.

Example build prompt
Use Mackerel MCP to inspect demo_sops and build a Next.js API route that validates policy compliance before approving expense claims.