Skip to main content

run_server_multi

Function run_server_multi 

Source
pub async fn run_server_multi(
    router: Arc<WorkspaceRouter>,
    bind: String,
    allow_remote: bool,
) -> Result<()>
Expand description

Starts the multi-workspace MCP server (ctx serve mcp --workspaces).

Routes the built-in search / get / sources / workspaces tools across the registered workspaces in router. Per SPEC-0014 R54, only built-in tools are exposed in multi-workspace mode in Phase 1 — workspace-local Lua and registry tools/agents are not loaded. bind comes from the registry’s [defaults].bind (R16); allow_remote permits a non-loopback bind.