github / github/copilot-cli

github-mcp-server fails with "fetch failed" since 1.0.51 update

未关闭
#3,455 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
area:mcp area:networking area:platform-windows
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### Describe the bug

Since updating to 1.0.51 the built-in github-mcp-server fails to connect on Windows with "fetch failed". This was not present in any previous version. Logs confirm no github-mcp-server connection attempts existed before 1.0.51.

### Affected version

GitHub Copilot CLI 1.0.51.

### Steps to reproduce the behavior

1. Run copilot on Windows with version 1.0.51
2. Observe "Failed to connect to MCP server 'github-mcp-server'" on startup
3. Run /mcp show github-mcp-server
4. Observe:

MCP Server: github-mcp-server
Type: http
URL: https://api.business.githubcopilot.com/mcp/readonly
Status: ✗ Failed
Error: fetch failed
Tools: Server failed to connect

Log shows:
2026-05-21T15:42:09.074Z [ERROR] Starting remote MCP client for github-mcp-server with url: https://api.business.githubcopilot.com/mcp/readonly
2026-05-21T15:42:09.456Z [ERROR] MCP transport for github-mcp-server closed
2026-05-21T15:42:09.457Z [ERROR] Failed to start MCP client for remote server github-mcp-server: TypeError: fetch failed

### Expected behavior

github-mcp-server connects successfully

### Additional context

- curl to https://api.business.githubcopilot.com/mcp/readonly returns 401 (expected, endpoint reachable)
- node fetch to same endpoint returns 401 (expected, Node.js networking works)
- node --use-system-ca fetch returns 401 (expected, no SSL inspection issue)
- Fresh login via `copilot login` performed, credential confirmed in Windows Credential Manager
- No corporate proxy environment variables set
- Previous logs (1.0.40, May 12-20) show no github-mcp-server connection attempts at all
- Issue began when 1.0.51 binary was installed

Windows (win32-x64)
Node.js v24.14.0

Potential regression for #2282 ?

贡献指南

打开贡献指南

调研方向

在 Windows 上使用 Copilot CLI 1.0.51 重现问题,然后检查 github-mcp-server 的启动情况,以及 `/mcp show github-mcp-server` 报告的远程 MCP 连接。使用文档中记录的 curl 和 Node.js fetch 检查作为对照,将行为和日志与 1.0.40 版本进行比较。当服务器成功连接,并且 `/mcp show` 报告可用工具而不是 `fetch failed` 时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
node.js
领域
api, cli, networking
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。