Interactive engineering lab

MCP request timeouts: idle clock, progress resets and a hard ceiling

MCP request timeouts: idle clock, progress resets and a hard ceiling. Trace when a client gives up, and whether it cancels.

By Sandeep Belgavi · Published 2026-11-27

Synthetic fixtures computed locally. No model or production service is contacted.

Experiment workspace

Decision trace

    The question this experiment answers

    When does an MCP client stop waiting for a long tool call, and does it tell the server? Enter an idle timeout, whether progress notifications reset it, a maximum total and how that ceiling is enforced, then list when progress and the result arrive. The model applies the rules from the MCP specification and one reading of the TypeScript SDK and reports when the client gave up, why, and whether notifications/cancelled was sent.

    Change one assumption at a time

    Start from a preset and change a single control. Turn reset on progress off to see a reporting job fail at the first idle timeout. Switch the ceiling mode between sdk, where the ceiling is checked only when a progress notification arrives, and timer, where it has its own clock. Move the last progress line closer to the ceiling, or delete it, and watch the end time move. Event lines have the form progress 25000 or result 110000, in milliseconds after the request was sent.

    Expected outcomes

    Steady progress: the result at 110000 ms is returned after five resets. Progress without reset: the idle timeout fires at 60000 ms, a cancellation is sent and the result at 90000 ms is ignored. Endless progress with a 300000 ms ceiling: sdk mode rejects the call when the notification at 300000 ms arrives and sends no cancellation; timer mode cancels at 300000 ms. Progress that stops at 290000 ms: sdk mode waits until 350000 ms, timer mode stops at 300000 ms. These match the companion Python model.

    Read the table and the trace

    The table lists every notification and the result in arrival order with the idle deadline after it, or ignored once the client has stopped waiting. The trace explains each decision step by step; use Next step to follow it. The worst-case figure is the longest a caller can wait with these settings while progress keeps arriving and then stops: the ceiling in timer mode, the ceiling plus one idle timeout in sdk mode, and unbounded when there is no ceiling.

    Reset and export

    Reset inputs restores the selected preset and recomputes. Export JSON downloads the inputs, every row, the metrics, the trace and the stated limits, so a run can be attached to a design review or compared after an SDK upgrade.

    Limits

    This is a timing model, not an MCP client; no server is contacted and every input is synthetic. The sdk mode follows the TypeScript SDK main branch as read on 27 November 2026, and other SDKs or later releases may behave differently. Network delay, clock skew and how a server handles cancellation are not modelled. A result that arrives after the client stopped waiting may still mean the work took effect.

    Views are my own and do not represent any employer, past or present.