The peekcode MCP server
A built-in MCP server with 11 tools: your agent reads the map, shows you things on the diagram, and runs code when you approve it.
peekcode has an MCP server named peekcode built in. Claude Code, Codex and Antigravity CLI started in peekcode's terminal get it with nothing to set up inside the app. With it, an agent asks how your code flows before it greps, points at what it means on your diagram, and runs requests only after you approve them. Answers cite file:line.
The 11 tools
Seven tools read the map and work anywhere. Four need the app around them and work only inside peekcode's terminal.
| Tool | Lets the agent | Works |
|---|---|---|
peekcode_overview | Summarize the repo | Anywhere |
peekcode_find | Find functions, APIs, tables | Anywhere |
peekcode_flow | Read one flow end to end, with file:line | Anywhere |
peekcode_node | See a function's callers and callees | Anywhere |
peekcode_impact | See which flows your working-tree changes touch | Anywhere |
peekcode_runs | Read the last real run: its trace and logs | Anywhere |
peekcode_gaps | Mark missing, wrong or extra steps on the diagram | Anywhere |
peekcode_screen | Read what you are looking at in peekcode | peekcode's terminal |
peekcode_show | Open a flow, ring boxes, open a file at a line | peekcode's terminal |
peekcode_run | Run a flow's request for real; you approve each run | peekcode's terminal |
peekcode_linked | Read the sessions you linked to this one | peekcode's terminal |
How each agent connects
| Agent | How |
|---|---|
| Claude Code | Started in peekcode's terminal: all 11 tools, plus /peekcode:<cmd> slash commands. |
| Codex | Started in peekcode's terminal: all 11 tools, plus $peekcode-<cmd> skills. |
| Antigravity CLI | Started in peekcode's terminal: all 11 tools. peekcode adds a plugin in ~/.gemini/config/plugins/peekcode/, which does nothing outside peekcode. |
| Claude Code outside the app | claude mcp add peekcode -- peekcode-cli mcp gives the read-only tools. |
claude mcp add peekcode -- peekcode-cli mcpIn the terminal, the help panel What the agent can do in peekcode lists examples under Read code, On screen and Try it out; click one to paste it into the prompt.
You stay in charge
Reading is free. Anything that runs (a request, starting, restarting or stopping the environment) shows an Agent request in the app with Allow, Always allow and Deny. When the agent shows you something, a pointer flies to it on screen.
Turn it on or off
Settings → Agents → MCP shows the peekcode server, its tools, and an on/off switch per agent (Claude Code, Codex, Antigravity). Not installed means that agent's CLI was not found. A change applies to sessions you open after it.