Skip to main content

run_rustapi_and_mcp

Function run_rustapi_and_mcp 

Source
pub async fn run_rustapi_and_mcp(
    app: RustApi,
    http_addr: impl AsRef<str>,
    mcp: McpServer,
    mcp_addr: impl AsRef<str>,
) -> Result<()>
Expand description

Run a RustApi HTTP server and an McpServer side-by-side on separate addresses.

This is the primary helper for running your normal API and the MCP endpoint (for LLM/agent clients) at the same time.