Skip to content

serve-mcp

serve-mcp

Run agents as an MCP server.

Settings come from the manifest's pool_server section (type mcp), and the options given here override them. Without the section, the defaults apply.

agentpool serve-mcp [OPTIONS] {config}

config

"REQUIRED" Path to agent configuration

--transport

Transport type (default: stdio)

--host

Host to bind server to, sse/streamable-http only (default: localhost)

--port

Port to listen on, sse/streamable-http only (default: 3001)

--show-messages

Flag Show message activity

--background-tasks

Flag Let clients run agent tools as MCP background tasks (needs mcp-tasks extra)

--tasks-url

Task backend: memory:// (default) or a Redis URL to survive restarts

--tasks-ttl

Seconds to keep a task and its result, counted from its start

--help

Flag Show this message and exit.