In this article
Distinguish the orchestration timeout from the still-running MCP operation before retrying a tool whose effects may already be underway.
Locate the operation that is still running
An MCP tool starts processing a large document and Temporal reports an Activity timeout. The MCP integration guide explicitly says that timeout does not cancel an MCP request already running on the worker. The workflow and the external request can therefore reach different states. Inspect both before interpreting the timeout as proof that no document transformation or write will finish later.
Do not infer heartbeats from a timeout setting
The current pre-release integration does not heartbeat its Activities. Adding heartbeat_timeout does not add progress messages or enable cancellation delivery. The failure-detection guide explains heartbeats as actual worker-to-service communication, not merely a duration field. Use the integration’s documented behavior rather than assuming every Temporal Activity supports identical progress and cancellation mechanisms without implementation work.
Bound the MCP request itself
The integration guide points to the MCP client’s read_timeout_seconds for the request lifetime. That is separate from the Activity’s orchestration timeouts. Define what the client should do when its wait expires and what the server operation may still do afterward. A client deadline is useful, but its expiration should not automatically be described as transactional rollback of the tool’s external effects. Preserve a resource or operation identifier when the service supports reconciliation.
Reconcile before repeating an effect
The Activity Definition guide explains why an outside operation can finish before its completion is durably reported. A retry can therefore repeat work. For a document-producing tool, check the intended destination or service operation status and apply the tool’s duplicate-handling contract. Do not launch another write merely because the workflow lacks a successful result. The missing result may reflect lost observation rather than missing execution.
Verify with an observable harmless operation
Use a controlled delayed tool and a disposable output to observe the orchestration timeout alongside the request and final artifact. Task budgets describe the acceptable wait; tool observations distinguish timeout, request completion and external change. Record the actual integration revision and request settings. A reliable recovery decision accounts for the operation that remains in flight, rather than assuming every layer shares the workflow’s terminal status.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.