Non-interactive MCP tool call hangs after progress notification until idle timeout
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 52/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- azure, rust
- Lĩnh vực
- api, cli, networking
Hướng nghiên cứu
Reproduce the hang in non-interactive mode with -p, --no-ask-user, --stream off, Azure MCP, and debug logging. Start with the rust:mcp::client request queue and rust:rmcp::service progress-notification path, then compare the timeline with the direct client. Done means the tool result reaches the model, or a bounded timeout returns a structured tool error instead of an idle WebSocket close.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
In non-interactive Copilot CLI, an already-discovered Azure MCP tool call can hang after delivering its initial progress notification. No tool result is delivered, and the MCP WebSocket closes five minutes later with idle timeout.
The identical tool and payload succeed immediately when invoked directly through another MCP client (VS Code), which suggests the failure is in the Copilot CLI MCP request/session path rather than the Azure best-practices command itself.
Environment
- Windows
- GitHub Copilot CLI
1.0.87-0(current latest reported bycopilot update) @azure/mcp3.0.0-beta.45+d6f8a6f07e9b3b4c0b36176ae2fc39aafe6a5f05- Non-interactive mode using
-p,--no-ask-user,--stream off, and debug logging
Tool call
{
"name": "azure-get_azure_bestpractices",
"arguments": {
"intent": "Deploy the claimed Flask research app to Azure App Service using Azure CLI in the assigned subscription, resource group, and preferred region.",
"learn": true
}
}
Reproduction
- Start Copilot CLI in non-interactive mode with Azure MCP available and debug logging enabled.
- Give it an Azure App Service deployment task that causes the model to call
azure-get_azure_bestpracticeswithlearn: true. - Observe that the tool emits its initial progress event but never returns a result.
This has occurred in three independent agent runs. Two used different application frameworks/personas, so it is not tied to Flask prompt wording.
CLI log timeline
18:27:42.559Z [DEBUG] [rust:mcp::client] MCP request enqueued {"request_id":"Number(2)"}
18:27:42.618Z [INFO] [rust:rmcp::service] received notification ... message: Some("Learning about get_azure_bestpractices capabilities...")
18:32:41.840Z [DEBUG] [rust:log] Received close frame ... reason: "idle timeout"
There is no completion response or actionable timeout surfaced to the model between the progress event and socket closure.
Direct-client control
I invoked the same Azure MCP tool outside Copilot CLI, with the exact payload above, twice. Both calls returned immediately:
{
"status": 200,
"message": "",
"results": ["...deployment best-practices guidance..."],
"duration": 0
}
This also confirms that the command is available and that learn: true is accepted.
Expected behavior
Copilot CLI should deliver the MCP tool result to the model. If the server or transport does not complete within a bounded request timeout, the CLI should return a structured tool error so the model can continue with a fallback path.
Actual behavior
The model remains blocked on the tool call. The only visible event is the initial progress notification; five minutes later the WebSocket closes for idle timeout. In unattended runs this leaves the host silent until an external watchdog terminates it.
Related issues
- #4678 concerns MCP server startup blocking; this occurs after discovery and after a tool-call progress notification.
- #3257 concerns reuse of a dead pooled HTTP connection after idle; this occurs on a newly issued request that successfully begins delivering progress.
Full sanitized debug logs can be provided if useful.
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/copilot-cli
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
github/copilot-cli#4932 ·
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
github/copilot-cli#4909 ·
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
github/copilot-cli#4906 ·
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/copilot-cli#4848 ·
-
area:agents area:mcp
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/copilot-cli#4729 ·
Tất cả issue của github/copilot-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
elastic/gradle-plugins#156 ·
-
Priority/High ready-for-agent Severity/Major Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
comp/cli P3 type/docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
NousResearch/hermes-agent#119756 · 1 bình luận ·
-
comp: build/pipeline type: bug version: current (v17+)
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
angular/angularfire#3766 ·
-
out-of-date
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
CachyOS/CachyOS-PKGBUILDS#1903 ·