﻿# Temporal MCP Activity timeout does not stop the running request

Temporal’s pre-release MCP Activities do not heartbeat, and their timeout does not cancel a running MCP request; configure and observe the external request’s own lifetime.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/guide-temporal-mcp-timeout-running-request/
Language: en

## 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](https://docs.temporal.io/develop/python/integrations/mcp) 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](https://docs.temporal.io/encyclopedia/detecting-activity-failures) 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](https://docs.temporal.io/activity-definition) 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](/journal/learn-codex-task-budgets/) describe the acceptable wait; [tool observations](/journal/learn-codex-tool-observation/) 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.
