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.
Claude Code
Anthropic
Connects over Streamable HTTP MCP and loads the Mackerel skill on demand.
~/.claude.jsonView guideCodex
OpenAI
Reads remote MCP servers from ~/.codex/config.toml and project rules from AGENTS.md.
~/.codex/config.tomlView guideGrok Build
SpaceXSI (formerly Cursor)
Desktop app and agent harness supporting .cursor/mcp.json, .grok/config.toml, and scoped project rules.
.cursor/mcp.jsonView guideVisual Studio Code
Microsoft
Native MCP client via .vscode/mcp.json with secret prompt inputs so keys stay out of git.
.vscode/mcp.jsonView guideOpenCode
Anomaly
Open-source coding agent supporting remote MCP servers and local skills across 75+ models.
opencode.jsonView guideAny MCP client / REST
Universal
Direct Streamable HTTP JSON-RPC 2.0 endpoint for Windsurf, Zed, Cline, or custom harnesses.
mcp.jsonView guideCompare setups
Every listed agent connects to the same Streamable HTTP MCP endpoint and skill instructions.
| Agent | MCP config | Skill / instructions | Auth |
|---|---|---|---|
| Claude Code | ~/.claude.json | .claude/skills/mackerel/SKILL.md | Bearer header via $MACKEREL_API_KEY |
| Codex | ~/.codex/config.toml | .codex/skills/mackerel/SKILL.md | bearer_token_env_var = "MACKEREL_API_KEY" |
| Grok Build | .cursor/mcp.json | .cursor/rules/mackerel.mdc | Authorization header via MACKEREL_API_KEY |
| Visual Studio Code | .vscode/mcp.json | AGENTS.md | ${input:mackerel-api-key} |
| OpenCode | opencode.json | .opencode/skills/mackerel/SKILL.md | Authorization header with {env:MACKEREL_API_KEY} |
| Any MCP client / REST | mcp.json | AGENTS.md | Authorization: Bearer $MACKEREL_API_KEY |
Live tool access at https://api.runmackerel.com/mcp. Exposes mackerel_search, mackerel_list_corpora, and mackerel_upsert_rule.
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.
Agents fetch endpoints, pricing, error codes, and doc URLs automatically in under 500 tokens — no manual copy-pasting required.