Local MCP tool call waits indefinitely after sampling.requested
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
Start by reproducing the hang with the documented Azure MCP configuration and Copilot CLI command, then trace the flow after the recorded sampling.requested event. Done means the local tool call returns a result or error, or stops after a bounded timeout instead of waiting indefinitely.
索引モデルが issue の本文から書いたものです。
説明
Affected version or release
- GitHub Copilot App: 1.1.22
- GitHub Copilot CLI: 1.0.84-5
- Azure MCP: 3.0.0-beta.44 and 2.0.5
Installation context
GitHub Copilot App and CLI on Windows, using a local MCP server over stdio. The behavior was reproduced in fresh, non-interactive CLI sessions.
What happened?
A GitHub Copilot CLI session waits indefinitely after a local MCP server sends a sampling/createMessage request during tool execution.
The MCP server connects and the tool begins execution. Copilot CLI records a sampling.requested event, after which no further tool result, error, timeout, or assistant response is observed.
The MCP server connects:
serverName: azure
status: connected
The tool execution starts:
tool.execution_start
toolName: azure-get_azure_bestpractices
mcpTransport: stdio
The following progress event is emitted:
tool.execution_progress
0.0: Learning about get_azure_bestpractices capabilities...
Copilot CLI then records:
sampling.requested
serverName: azure
mcpRequestId: 1
After this event, none of the following are observed:
- A tool result
- A tool error
- A timeout
- A final assistant response
- Process termination
The session continued waiting until it was terminated using an external 90-second process timeout.
Steps to reproduce
-
Configure Azure MCP as a local MCP server:
{ "mcpServers": { "azure": { "type": "local", "command": "npx", "args": [ "-y", "@azure/mcp@3.0.0-beta.44", "server", "start" ], "tools": ["*"] } } } -
Start a fresh, non-interactive Copilot CLI session:
copilot ` --prompt "Call the Azure MCP get_azure_bestpractices tool for resource coding-agent and action all. Return only whether the tool completed." ` --allow-all-tools ` --disable-builtin-mcps ` --log-level debug ` --output-format json ` --no-ask-user -
Observe the session output.
Expected behavior
The tool call should complete, return an error, or stop after a bounded timeout. The session should not wait indefinitely without a visible result or error.
Additional context
The same sequence was observed in separate fresh Copilot CLI sessions with:
@azure/mcp@3.0.0-beta.44@azure/mcp@2.0.5
In both tests:
- The MCP server connected.
- The tool execution started.
- A progress notification was emitted.
- A
sampling.requestedevent was recorded. - No subsequent result, error, timeout, or assistant response was observed within 90 seconds.
The active agent turn remains in progress without returning a response. The session must be stopped manually or terminated using an external process timeout.
- 主要言語
- 言語のデータがありません
- スター
- 2.1k
- フォーク
- 157
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/app のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
似ている issue
-
clawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:message-loss issue-rating: 🦞 diamond lobster maturity:stable P2
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
growthbook/growthbook#7100 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
punkpeye/mcp-remote#369 ·
-
Client customer-reported needs-team-attention question Service Attention WebPubSub
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Azure/azure-sdk-for-net#63292 · コメント 3 件 · リアクション 1 件 ·
-
bug p:3-mid pydanty:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
pydantic/pydantic-ai#8643 · コメント 1 件 ·