stop
Method
This is a method of the MCPToolRunner class in the mcp module.Best-effort teardown for a runner that failed to initialize. Queues the shutdown sentinel and joins the thread briefly so that if the handshake eventually completes the request loop exits immediately instead of leaving a background thread (and its stdio subprocess) alive. The thread is a daemon, so this never blocks interpreter exit.
Signature
Returns
Any
The result of the operation.
Uses
putis_alive
Source
View on GitHub
praisonaiagents/mcp/mcp.py at line 255
