Prerequisites
- Node.js 20 or newer
- VS Code with the Cline extension installed
- agentmako on PATH
$ npm install -g agentmako $ cd /path/to/your/project $ agentmako connect . --no-db $ agentmako doctor
Add the MCP server
Through the Cline UI
- Open the Cline panel in VS Code
- Click the MCP Servers icon in the Cline header
- Choose Configure MCP Servers
- Paste the snippet below into
cline_mcp_settings.json - Save — Cline reloads MCP servers automatically
{ "mcpServers": { "mako-ai": { "command": "agentmako", "args": ["mcp"], "disabled": false, "autoApprove": [ "context_packet", "reef_scout", "repo_map", "cross_search" ] } } }
autoApprove list above lets the obvious-safe tools
run without prompts. Leave write-capable tools off the list.
Verify in Cline
Open the Cline panel. The MCP Servers icon should show
mako-ai with a green status. Click it to expand the
tool list and confirm context_packet, reef_scout,
and friends are present.
First task
Start a new Cline task in the workspace where you ran
agentmako connect:
Before doing anything else, call the mako-ai server's context_packet tool with this query: "refactor the auth callback to use PKCE" Report what the packet returned, then plan your edits. Do not grep — Mako already indexed this repo.
Custom instructions
Cline supports custom instructions that ride with every task. Add this to Cline → Settings → Custom Instructions:
When working in a project that has the mako-ai MCP server available, ALWAYS call context_packet or reef_scout before searching with grep or reading files speculatively. Use context_packet for concrete coding tasks (returns the target file, routes, and "read next" pointers). Use reef_scout for exploratory questions (returns ranked candidates with reasons). Only fall back to grep if Mako returns no candidates.
The full guidance from agentmako/AGENTS.md also works as a drop-in for Cline's instruction field.
Troubleshooting
mako-ai shows red in the MCP panel
Click it to expand the error. Most common: VS Code launched
before agentmako was on PATH. Reload the window
(⌘ ⇧ P → "Developer: Reload Window").
Tools call but return "no project attached"
Cline runs in the workspace's working directory. If your
attached project is a different folder than the workspace, open
that folder as the workspace, or run agentmako connect .
again from the new working directory.
Slow first response
Initial repo indexing happens once on agentmako connect.
Subsequent context_packet calls are fast.