shutdown

View as MarkdownOpen in Claude

Stop all active MCP clients that were created via create_client(). Each client’s subprocess is terminated and its sandbox directory cleaned up. Called automatically during MCPGateway.shutdown().

Parameters

None.

Returns

None

Example

from signalwire.mcp_gateway import MCPManager
config = {
"services": {
"todo": {"command": ["python3", "todo_mcp.py"], "description": "Todo list", "enabled": True}
}
}
manager = MCPManager(config)
client = manager.create_client("todo")
manager.shutdown()