api/mcp_servers_apply.py.dox.md
mcp_servers_apply.py API endpoint.mcp_servers_apply.py because this directory is intentionally flat.mcp_servers_apply.py owns the runtime implementation.mcp_servers_apply.py.dox.md owns durable notes about responsibilities, contracts, side effects, and verification for that implementation.McpServersApply (ApiHandler)
async process(self, input: dict[Any, Any], request: Request) -> dict[Any, Any] | Responsehelpers.api.ApiHandler; WebSocket handlers must derive from helpers.ws.WsHandler.config and optional project_name.project_name, the endpoint persists global mcp_servers_config through settings and refreshes the global MCPConfig.project_name, the endpoint saves .a0proj/mcp_servers.json through helpers.projects.save_project_mcp_servers(...) and refreshes that project's merged MCP config.McpServersApply is an ApiHandler.McpServersApply defines process(...).helpers.api, helpers.mcp_handler, helpers.projects, helpers.settings, time, typing.set_settings_delta, projects.save_project_mcp_servers, MCPConfig.refresh_project, time.sleep, MCPConfig.get_instance.get_servers_status, MCPConfig.get_instance.helpers.api.Response for non-JSON responses, files, redirects, or status-specific replies.No child DOX files.