pub async fn run_http(
server: EntityGraphServer,
addr: SocketAddr,
cancel: CancellationToken,
) -> Result<()>Expand description
Run the MCP server over Streamable HTTP using Axum.
The MCP endpoint is mounted at /mcp (POST + GET, as required by the
Streamable HTTP spec). A lightweight /health route is also provided.
ยงArguments
serverโ theEntityGraphServerinstance (will be cloned per session).addrโ the socket address to bind (e.g."0.0.0.0:8080".parse()?).cancelโ cancellation token; call.cancel()to initiate shutdown.