MCP server#

The MCP server gives a coding agent the same view and controls that the console gives a person. It uses MCP’s Streamable HTTP transport.

ToolDoes
list_stepsLists steps and their states.
get_stepReturns a step’s state and logs.
rerun_stepRuns a step again.
export_stepReturns a step’s exported values.
get_proxy_infoReturns the proxy address, its routes, and the egress allow list.

A plugin can add tools for its step types. See Writing a plugin.

The MCP tab of the console shows the server URL and the claude mcp add command that registers it with Claude Code.

One address with the console#

The server is at /_mcp on the console’s address, not on a port of its own. The console already has the state that the tools need, and already runs an HTTP server for the life of the environment. A separate port would be one more address to configure and print.

Logs#

get_step reads logs from the log file, not from the console’s in-memory buffer, so it returns the full history of a step. Each call returns a cursor. Pass it as since on the next call to get only newer lines.

Export#

export_step calls the step’s Export through the running plugin. kevin do makes the same call, but starts the plugins itself, because it runs outside the environment.