Trae MCP timeout: RUN_MCP_TIMEOUT_MS in headers vs Sume jobs_wait
Trae sets HTTP MCP timeouts in the headers field. Keep RUN_MCP_TIMEOUT_MS above Sume's 55-second jobs_wait slice; never resubmit a paid create on timeout.

In Trae, the HTTP MCP timeout lives in the headers object: Trae's docs show START_MCP_TIMEOUT_MS and RUN_MCP_TIMEOUT_MS, both at 60000 in the example, for the server's startup and for invoking its tools. Sume's hosted jobs_wait holds one call open for at most 55 seconds, so keep RUN_MCP_TIMEOUT_MS above 55000 or pass a shorter timeout_seconds to jobs_wait.
Sources, read 2026-10-06: Trae's Add MCP servers page and Sume's Jobs and results.
What does the Trae example look like?
Trae's page says stdio servers take these two keys in env, and HTTP servers take them in headers. The example value is "60000" for both, each commented as a timeout in milliseconds. The page does not state a default for the keys, so set them explicitly. Because they sit in headers, treat them as Trae-specific settings in the entry for Sume alongside Authorization.
"headers": {
"Authorization": "Bearer YOUR_SUME_API_KEY",
"START_MCP_TIMEOUT_MS": "60000",
"RUN_MCP_TIMEOUT_MS": "60000"
}Why 55 seconds matters
Sume's docs say remote MCP jobs_wait defaults to 50 seconds when timeout_seconds is omitted and caps at 55, and that a wait is one HTTP request held open for the whole slice. A client limit shorter than the slice ends the call with no tool result while the job keeps running and keeps billing.
So for a ten-minute video render, do not ask for a longer wait. Call jobs_wait again with the same ids when it answers wait_slice_expired. A client-side timeout or an edge error such as a 524 is a transport failure, never a job outcome, and Sume's docs say not to submit the paid create again or report the job as blocked.
Safe recovery after a Trae timeout
These steps come from the Jobs and results page; none depends on Trae.
- Keep the job id from the create response; it is durable.
- Call
jobs_statusonce, orjobs_waitagain with the same ids. - If you must retry the create itself, reuse the same
idempotency_keyso the retry returns the original job. - With several jobs in flight,
jobs_waittakesjob_ids(1 to 20) andwait_forofallorany; withany, the other jobs keep running and billing.
Sources
Related posts
More in Developers
- Transcribe 10,000 short clips: queue capacity and wave size by plan
10,000 five-second clips cost $8.33 on Sume STT. How fast they finish depends on plan concurrency and queue capacity: 6, 24, 48 or 120 accepted jobs.
- Transcribe a Zoom recording to text with an API, in 10-minute chunks
Turn a long meeting recording into text with Sume: detach the audio from the MP4, cut it into ranges under 10 minutes, and send each range to STT 1.0.
- Trim silence from a voiceover using STT word timings (Python)
Find the dead air in a voiceover from Sume STT words[] timings: list gaps over a threshold in Python, then cut with timeline audio ranges.
- Text-to-speech API in Node: submit, poll and save the MP3
A Node 18+ fetch example for the Sume TTS Router: submit with an Idempotency-Key, poll status_url, read the audio artifact and save an MP3 to disk.
Written by Sume