Skip to main content

launch

Method
This is a method of the Agent class in the agent module.
Launch the agent as an HTTP API endpoint or an MCP server.

Signature

def launch(path: str, port: int, host: str, debug: bool, protocol: str) -> Any

Parameters

path
str
default:"'/'"
API endpoint path (default: ’/’) for HTTP, or base path for MCP.
port
int
default:"8000"
Server port (default: 8000)
host
str
default:"'0.0.0.0'"
Server host (default: ‘0.0.0.0’)
debug
bool
default:"False"
Enable debug mode for uvicorn (default: False)
protocol
str
default:"'http'"
“http” to launch as FastAPI, “mcp” to launch as MCP server.

Returns

Returns
Any
None