You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(mcp): an mcp tool stops at its timeout, also when its command runs in-process #1356
priority/p2-mediumPriority P2: standard workscope/mcpModel Context Protocol tools, system resources, and promptstype/bugType bug: the code does not do what it must
This is a Copilot thread on release PR #1283, verified at b57ef7f. MCP tools pass a timeout to _run_mcp_cmd; ci_run, for example, uses the CI test budget plus its margin [code: src/devops_cli/ai/mcp/server.py:676]. A uv run devops ... command is routed to InProcessDispatcher.dispatch, which runs it in-process through _dispatch_typer and never applies the timeout [code: src/devops_cli/ai/mcp/dispatcher.py:291-335]. A hung in-process command therefore blocks the tool indefinitely. The same path exists on main (v0.2.27), so it predates this release.
Acceptance criteria
Every MCP tool stops at its timeout. A command that must be bounded runs where it can be stopped, such as a subprocess through the process runner, or an in-process run with an enforced deadline that returns a timeout error naming the tool.
A test with a command that never returns shows the tool returning a timeout error within its budget.
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
Priority: P2-Medium. A hung in-process command blocks the MCP tool indefinitely, but the condition requires a command to actually hang, making it a reliability defect rather than a constant failure.
Value: Medium. MCP tool users lose all responsiveness when a command hangs, but most invocations complete normally so the impact is situational.
Effort: Medium. Requires implementing an enforced deadline in the in-process dispatch path (threading or async timeout), returning a structured timeout error, and adding a test with a never-returning command.
Linked: #997, whose generated tools run through the dispatcher this item bounds (ai/mcp/dispatcher.py:335-367). Found by the 2026-10-08 backlog review.
priority/p2-mediumPriority P2: standard workscope/mcpModel Context Protocol tools, system resources, and promptstype/bugType bug: the code does not do what it must
Activity
dan-petty-bot commentedon Oct 8, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
A hung in-process command blocks the MCP tool indefinitely, but the condition requires a command to actually hang, making it a reliability defect rather than a constant failure.MCP tool users lose all responsiveness when a command hangs, but most invocations complete normally so the impact is situational.Requires implementing an enforced deadline in the in-process dispatch path (threading or async timeout), returning a structured timeout error, and adding a test with a never-returning command.dan-petty commentedon Oct 8, 2026
Linked: #997, whose generated tools run through the dispatcher this item bounds (
ai/mcp/dispatcher.py:335-367). Found by the 2026-10-08 backlog review.fix(mcp): an mcp tool stops at its timeout, also when its command run…
fix(mcp): an mcp tool stops at its timeout, also when its command run…
fix(mcp): an mcp tool stops at its timeout, also when its command run…