shutdown

View as MarkdownOpen in Claude

Close all active sessions and stop the background cleanup thread. Each session’s underlying MCP client process is stopped. Called automatically during MCPGateway.shutdown().

Parameters

None.

Returns

None

Example

1from signalwire.mcp_gateway import SessionManager
2
3config = {"session": {"default_timeout": 300}}
4manager = SessionManager(config)
5# ... create and use sessions ...
6manager.shutdown()