launch
Launch all agents as a single API endpoint (HTTP) or an MCP server.
Method
</div>
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
def launch(path: str, port: int, host: str, debug: bool, protocol: str) -> AnyParameters
ParamField
strAPI endpoint path (default: ‘/agents’) for HTTP, or base path for MCP.
ParamField
intServer port (default: 8000)
ParamField
strServer host (default: ‘127.0.0.1’)
ParamField
boolEnable debug mode for uvicorn (default: False)
ParamField
str“http” to launch as FastAPI, “mcp” to launch as MCP server.
Returns
ResponseField
AnyNone