agentmako is a local-first MCP server that keeps code, routes, schema, diagnostics, project rules, findings, and freshness state queryable for Claude Code, Codex CLI, Cursor, Cline, and other MCP clients.
The index is only the start. Reef is Mako's durable fact and finding layer: it remembers what changed, what failed, what was reviewed, and which evidence is fresh enough for an agent to trust.
Routes, imports, symbols, schema, instructions, and rule-pack hits become typed local evidence.
Known issues, cross-file risks, open loops, and reviewed decisions survive across sessions.
The daemon watches edits, refreshes scoped diagnostics, and labels stale or contradicted evidence.
context_packet, file_preflight, and reef_diff_impact turn Reef into one-call guidance.
Same model, same prompts. The difference is the context layer underneath.
Requires Node ≥ 20. Everything else runs locally — index, store, MCP transport.
Same stdio config everywhere. Tools surface as mcp__mako-ai__*.
$ claude mcp add mako-ai \
agentmako mcp ; ~/.codex/config.toml
[mcp_servers.mako-ai]
command = "agentmako"
args = ["mcp"] // .cursor/mcp.json
{
"mcpServers": {
"mako-ai": { "command": "agentmako",
"args": ["mcp"] }
}
} Tools are only as useful as the agent's choice to call them. Drop our CLAUDE.md / AGENTS.md into your project root so the agent knows when to reach for Mako.
# Mako MCP Usage This file is the short agent-facing guide for projects that have Mako registered as `mako-ai`: ```json { "mako-ai": { "command": "agentmako", "args": ["mcp"] } } ``` In Claude Code, tools usually appear as `mcp__mako-ai__<toolName>`. Examples below use bare names. For complete CLI/tool details, use `agentmako --help`, `agentmako tool --help`, MCP `tools/list`, or `mako_help`. ## Default Workflow When unsure, call `mako_help` first. It returns an ordered recipe with suggested args and verification steps. For broad or vague work, start with `context_packet` using `mode: "explore" | "plan" | "implement" | "review"`. Before editing a risky file, call `file_preflight`. Mid-edit or before review, call `reef_diff_impact` on changed files. ## Freshness In long-running MCP sessions, Mako's watcher refreshes changed files and runs scoped diagnostics in the background. Normal edits should not require manual `project_index_refresh` or `diagnostic_refresh`. If Mako and live files/tests disagree, trust live reads and test output, then refresh Mako if indexed context should catch up.
Six clusters cover the whole agent loop — from "what's relevant?" to "did it ship?".
mako_help context_packetcross_search imports_impactfile_preflight reef_diff_impactdb_table_schema db_rlsroute_trace auth_pathlint_files git_precommit_checkThe most-asked questions from devs first wiring up an MCP server. Full bank lives at the agentmako FAQ.
An open standard from Anthropic that lets AI coding agents call external tools over a stdio interface. An MCP server exposes tools — search, schema, diagnostics — that any compliant client (Claude Code, Codex CLI, Cursor, Cline) can call.
It has no memory across turns. Each prompt it greps and re-reads files it touched 30 seconds ago. Mako indexes the repo once and serves typed context packets on demand.
Free, Apache-2.0, zero telemetry. Everything runs locally; data
sits in .mako-ai/ under each project. Outbound traffic
only when you wire a model provider or connect Postgres / Supabase.
RAG fuzzy-matches text chunks. Mako stores a typed graph — files, symbols, routes, schema, RLS — and does deterministic lookups. Lower tokens, higher accuracy when fresh, and freshness itself is labeled.
Tools are only as useful as the agent's choice to call them. Drop the CLAUDE.md / AGENTS.md template into your project root — it tells the agent when to reach for which Mako tool. Without it, agents default to grep.