Integrate

Agent setup

Connect Claude Code, Codex, Grok Build, VS Code, OpenCode, or any MCP client to Mackerel.

Fastest path: paste one prompt into your agent

Works in Claude Code, Codex, Grok Build, VS Code, and OpenCode. Configures Streamable HTTP MCP, installs Mackerel invariants, and verifies against demo_sops.

Connect this repository to Mackerel (https://runmackerel.com).

1. Read https://runmackerel.com/llms.txt and https://runmackerel.com/skill.md.
2. Add the Mackerel Streamable HTTP MCP server at https://api.runmackerel.com/mcp using Authorization: Bearer $MACKEREL_API_KEY.
3. Install the skill file to this agent's skills directory (or add the Mackerel invariants to AGENTS.md).
4. Verify the setup by calling mackerel_search against corpus "demo_sops" with query "Can a contractor on our German entity expense a €140 client dinner?" and groups ["finance-emea"], then confirm governing returns te-4.2b (€95 cap) overriding te-4.2 (€150 cap).

Pick your agent

Step-by-step config, skill install path, and verification prompt.

https://api.runmackerel.com/mcp

Compare setups

Every listed agent connects to the same Streamable HTTP MCP endpoint and skill instructions.

AgentMCP configSkill / instructionsAuth
Claude Code~/.claude.json.claude/skills/mackerel/SKILL.mdBearer header via $MACKEREL_API_KEY
Codex~/.codex/config.toml.codex/skills/mackerel/SKILL.mdbearer_token_env_var = "MACKEREL_API_KEY"
Grok Build.cursor/mcp.json.cursor/rules/mackerel.mdcAuthorization header via MACKEREL_API_KEY
Visual Studio Code.vscode/mcp.jsonAGENTS.md${input:mackerel-api-key}
OpenCodeopencode.json.opencode/skills/mackerel/SKILL.mdAuthorization header with {env:MACKEREL_API_KEY}
Any MCP client / RESTmcp.jsonAGENTS.mdAuthorization: Bearer $MACKEREL_API_KEY
Streamable HTTP MCP

Live tool access at https://api.runmackerel.com/mcp. Exposes mackerel_search, mackerel_list_corpora, and mackerel_upsert_rule.

On-demand Skill file

Installed directly into your agent's skills directory by the setup prompt. Keeps ACL-before-retrieval, override handling, abstention, and ZDR rules out of your prompt boilerplate.

Machine-readable index

Agents fetch endpoints, pricing, error codes, and doc URLs automatically in under 500 tokens — no manual copy-pasting required.