pub async fn run_server(config: &Config) -> Result<()>Expand description
Starts the MCP-compatible HTTP server.
Binds to the address configured in [server].bind and registers all
route handlers. The server runs indefinitely until the process is terminated.
This is the standard entry point used by the ctx serve mcp command.
For custom binaries with Rust extensions, use
run_server_with_extensions instead.
§Arguments
config— application configuration (database path, retrieval settings, bind address).
§Returns
Returns Ok(()) when the server shuts down, or an error if binding fails.