Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Local MCP tool call waits indefinitely after sampling.requested

Đang mở
#4,008 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
48/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
azure, github
Lĩnh vực
api, cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

  1. 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": ["*"]
        }
      }
    }
    
  2. 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
    
  3. 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:

  1. The MCP server connected.
  2. The tool execution started.
  3. A progress notification was emitted.
  4. A sampling.requested event was recorded.
  5. 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.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
2.1k
Fork
157
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/app

Tất cả issue của github/app

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.