Skip to main content

start_http_server

Function start_http_server 

Source
pub async fn start_http_server(
    mcp_service_factory: impl Fn() -> Result<McpifyServer, Error> + Send + Sync + 'static,
    config: &HttpServerConfig,
    registry: Arc<Mutex<ComponentRegistry>>,
    header_location: &'static str,
    header_name: String,
) -> Result<()>
Expand description

HTTP transport: /mcp is handled by rmcp’s own streamable-HTTP service; /healthz and /metrics are plain REST endpoints alongside it.