Method
This is a method of the Agents class in the agents module.Launch all agents as a single API endpoint (HTTP) or an MCP server. In HTTP mode, the endpoint accepts a query and processes it through all agents in sequence. In MCP mode, an MCP server is started, exposing a tool to run the agent workflow.
Signature
Parameters
str
default:"'/agents'"
API endpoint path (default: ‘/agents’) for HTTP, or base path for MCP.
int
default:"8000"
Server port (default: 8000)
str
default:"'0.0.0.0'"
Server host (default: ‘0.0.0.0’)
bool
default:"False"
Enable debug mode for uvicorn (default: False)
str
default:"'http'"
“http” to launch as FastAPI, “mcp” to launch as MCP server.
Returns
Any
None

