github / github/copilot-cli

Copilot CLI 1.0.79-1 fails MCP initialization when `server/discover` returns `-32602`

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

Chưa có ai nhận issue này.

area:mcp
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

Mô tả

Describe the bug

Copilot CLI 1.0.79-1 cannot connect to an MCP server built with FastMCP.

Before MCP initialization completes, the CLI sends a server/discover request. FastMCP does not implement this method and returns -32602 Invalid request parameters. Copilot treats that response as a fatal lifecycle negotiation error and aborts initialization.

The same server and configuration work without issue in Copilot CLI 1.0.78.

Affected version

1.0.79-1

Steps to reproduce the behavior
  1. Configure the MCP server as shown in "Additional Context".
  2. Start Copilot CLI 1.0.79-1.
  3. Observe the CLI sending server/discover.
  4. FastMCP rejects the unsupported request.
  5. Copilot aborts MCP lifecycle negotiation before initialize completes.
Expected behavior

An unsupported optional server/discover request should not block normal MCP initialization.

If the server returns an error for the probe, Copilot should continue with the standard initialize lifecycle rather than treating the response as fatal.

In particular, this should not depend on the server returning exactly -32601 Method not found. FastMCP currently returns -32602 because the request does not match any supported ClientRequest schema.

Additional context

MCP configuration

Values have been redacted:

{
  "mcpServers": {
    "fabric-rti-mcp": {
      "command": "uvx",
      "args": ["microsoft-fabric-rti-mcp"],
      "env": {
        "KUSTO_SERVICE_URI": "<redacted>",
        "KUSTO_SERVICE_DEFAULT_DB": "<redacted>",
        "FABRIC_API_BASE": "<redacted>"
      }
    }
  }
}

More Details

Another MCP implementation returns:

Method 'server/discover' is not available.

Copilot tolerates that response and continues initialization.

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.

Hướng nghiên cứu

Bắt đầu bằng cách lần theo luồng khởi tạo MCP gửi yêu cầu server/discover, sau đó so sánh cách xử lý phản hồi -32602 với phản hồi “Method not found” được chấp nhận như mô tả ở đây. Hoàn thành khi một probe không được hỗ trợ không còn hủy quá trình khởi tạo và cấu hình FastMCP có thể hoàn tất vòng đời initialize tiêu chuẩn.

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

Đánh giá

Công nghệ
shell
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
65/100

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.