DeepSeek Harness MCP Startup Timeouts: startupTimeoutMs & Reconnects

Author
DeepSeekAgent.io Editorial Team
Published
Updated

The hardest DeepSeek Harness MCP failure is not a clear error. DSH Web still opens, the model provider works, but the Agent never answers and the expected MCP tools never appear. Diagnose three separate stages: whether the MCP process starts, whether initialize and initial tool discovery finish, and whether an already registered tool later times out.

The DSH v0.2.2-rc.4 MCP Client exposes an optional startupTimeoutMs. The tagged source defines it as the budget for one connection attempt plus initial tool synchronization. toolCallTimeoutMs remains a separate setting. The first bounds startup; the second applies after tools have registered.

Why toolCallTimeoutMs does not bound startup

toolCallTimeoutMs becomes relevant only after the server handshake has completed and its tools are in the registry. If a stdio child starts but never answers initialize, plugin activation is still waiting and no tool call exists to time out.

The rc.4 schema gives startupTimeoutMs no default. A deterministic startup limit therefore requires an explicit value in the MCP Client configuration. A practical starting point for a local server is:

config:
  startupTimeoutMs: 15000
  toolCallTimeoutMs: 60000
  failOnStartupError: false
  reconnect:
    enabled: true
    initialDelayMs: 500
    maxDelayMs: 30000
    maxAttempts: 10

Fifteen seconds is not a universal limit. A server that imports a large Python environment, loads model weights, or performs remote authentication may need more. A small local tool that consistently exceeds the budget should have its startup path investigated before the timeout is enlarged.

failOnStartupError controls activation semantics

In rc.4, failOnStartupError defaults to false. DSH can continue when an optional MCP service fails, but the visible symptom may be only that its tools are missing.

Choose the behavior by role:

  • keep false for optional enhancements, while observing connection state;
  • use true for a database, browser, or enterprise service required by the task;
  • do not leave several required MCP servers with unbounded startup, because one silent server can delay the entire Agent.

Reconnect policy is not a startup deadline

The default reconnect policy allows 10 attempts, starts at 500 milliseconds, and applies exponential backoff capped at 30 seconds. It handles a connection that has failed or dropped. If the first handshake never settles, a startup budget is what returns control to the Harness.

Use this diagnostic order:

  1. Run the configured MCP command and args directly and confirm that the process produces protocol responses rather than merely staying alive.
  2. Set a finite startupTimeoutMs and identify whether the connection or initial tool discovery consumes the budget.
  3. Inspect plugin connection state and Host logs to distinguish tools that never registered, disconnected, or were hidden by the Profile.
  4. Inspect toolCallTimeoutMs only after a tool has registered and a call has begun.
  5. Set failOnStartupError: true for required services so Headless and automated jobs fail early.

Interpreting “the Agent does nothing”

If DSH is reachable and ordinary model chat works, but enabling one MCP configuration prevents the task from starting, inspect the startup handshake first. If the Agent replies but a family of mcp__... tools is absent, inspect connection status, Profile composition, and initial synchronization. If the tools appear and only a call hangs, inspect tool execution and the server itself.

Separating these phases turns a vague Harness freeze into a bounded connection-lifecycle problem and avoids blaming model latency or the model API for an MCP startup failure.

If an entire MCP tool family disappears after an upgrade and no server process starts, continue with the rc.3 MCP peer-gate and Profile dependency guide. For the other candidate changes, see the DeepSeek Harness v0.2.2-rc.4 update.

References

FAQ

What value should startupTimeoutMs use?

Start around 10–15 seconds for a lightweight local server and raise it from measured cold-start behavior. The important property is a finite limit with observable failure.

Does failOnStartupError: true repair the connection?

No. It changes visibility and activation semantics so a task that requires the service stops early.

What if the tool appears but the call times out?

That is the execution phase. Inspect toolCallTimeoutMs, the MCP server logs, and the duration of the specific operation.