You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mcp: cancelled and timed-out tool calls keep running on the server #191
When an MCP tool call times out (request_timeout_millis) or its caller is cancelled, the caller gets the error, but the server is never told. The server keeps running the tool until it finishes. With request_timeout_millis=None, an abandoned call also keeps running on the client until the connection closes.
client=define_mcp_client(ai, 'files', command='files-server', request_timeout_millis=5000)
# a tool call that runs past 5s# today: the caller gets DEADLINE_EXCEEDED, the server keeps running the tool# expected: same error, and the server gets notifications/cancelled for that request
Expected: send notifications/cancelled with the request id, so the server stops. Other calls on the same connection keep running. No notice during close, the handshake, or the liveness probe.
Activity