Agents

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.

ToolLets the agentWorks
peekcode_overviewSummarize the repoAnywhere
peekcode_findFind functions, APIs, tablesAnywhere
peekcode_flowRead one flow end to end, with file:lineAnywhere
peekcode_nodeSee a function's callers and calleesAnywhere
peekcode_impactSee which flows your working-tree changes touchAnywhere
peekcode_runsRead the last real run: its trace and logsAnywhere
peekcode_gapsMark missing, wrong or extra steps on the diagramAnywhere
peekcode_screenRead what you are looking at in peekcodepeekcode's terminal
peekcode_showOpen a flow, ring boxes, open a file at a linepeekcode's terminal
peekcode_runRun a flow's request for real; you approve each runpeekcode's terminal
peekcode_linkedRead the sessions you linked to this onepeekcode's terminal

How each agent connects

AgentHow
Claude CodeStarted in peekcode's terminal: all 11 tools, plus /peekcode:<cmd> slash commands.
CodexStarted in peekcode's terminal: all 11 tools, plus $peekcode-<cmd> skills.
Antigravity CLIStarted 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 appclaude mcp add peekcode -- peekcode-cli mcp gives the read-only tools.
Outside the app (read-only tools)
claude mcp add peekcode -- peekcode-cli mcp

In 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.