AgentFlow
MCP

MCP overview

Optional stdio MCP server exposing investigation and context tools.

MCP overview

For editor bridges that speak stdio JSON-RPC MCP, AgentFlow can expose a small server implemented in application/internal/mcp. It is intentionally narrow: list tools, call them with caps, and return structured results — not a full remote agent platform.

Enable

Toggle mcp.enabled and set safety knobs before you run anything that connects an external client to stdio.

mcp:
  enabled: true
  max_output_bytes: 1048576
  command_timeout_seconds: 120

Serve

agentflow mcp-serve runs the stdio transport; clients send newline-delimited JSON and expect JSON-RPC initialize, tools/list, and tools/call.

agentflow mcp-serve

Supports initialize, tools/list, tools/call (newline-delimited JSON).

CLI wrapper

agentflow mcp is the helper that surfaces MCP-related subcommands for local inspection — pair it with the generated references when you need exact flags.

agentflow mcp

Inspect MCP-related commands — see generated mcp and mcp-serve.