push_files takes ~70s per call (both success and fast-fail cases)
还没有人认领这个 Issue。
评估
调研方向
首先跟踪入口点 push_files 及其 GitHub Git Trees 和 commit 操作。在授权失败路径和成功路径中分别重现包含七个文件的 payload,并比较约 70 秒的延迟发生在哪里。完成的标准是已确定并解决延迟原因,或已明确诊断该原因,并为受影响的路径提供覆盖。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
push_files calls are consistently slow (~1m12s–1m13s) in our MCP flow, even when one call fails with authorization error and the next call succeeds with the same payload.
This suggests significant latency before/around final Git operations, not only at final commit update step.
Affected version
Using hosted/remote GitHub MCP server, version: github-mcp-server/remote-57ddf9ca0de2f61fc022ca3cff21efc81a65fc99 (observed on 2026-03-08 via initialize -> serverInfo.version)
Steps to reproduce the behavior
- Call
github.push_fileswith a payload of 7 files (Twig templates + one largerclasses/Email.php) to: - First call result:
- Error:
failed to create tree: POST https://api.github.com/repos/Sogl/grav-plugin-login/git/trees: 403 Resource not accessible by personal access token [] - Client timing:
Worked for 1m 12s
- Error:
- Fix PAT permissions and call
github.push_filesagain with the same payload. - Second call result:
- Success, ref updated to commit: https://github.com/Sogl/grav-plugin-login/commit/8be0cd10415515109476025379545999f52b87b0
- Client timing:
Worked for 1m 13s
Expected vs actual behavior
Expected:
- Latency in seconds for this payload size, or at least clear diagnostics if server-side queueing/throttling is involved.
Actual:
- Both failed and successful calls take ~70+ seconds with almost identical duration.
Logs
First call (failed, ~1m12s):
failed to create tree: POST https://api.github.com/repos/Sogl/grav-plugin-login/git/trees: 403 Resource not accessible by personal access token []
Second call (success, ~1m13s):
{"ref":"refs/heads/feature/multipart-emails", ... "sha":"8be0cd10415515109476025379545999f52b87b0"}
Request payload was the same large push_files body in both calls (7 files, full file contents).
- 主要语言
- Go
- 星标
- 33.1k
- 派生
- 5k
- 平均合并
- 2 天 1 小时
- 30 天内合并 PR
- 25
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/github-mcp-server 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
github/github-mcp-server#3235 ·
-
enhancement
难度 1/5 1 小时以内 新手友好度 88/100
github/github-mcp-server#3042 · 2 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
github/github-mcp-server#3032 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 74/100
github/github-mcp-server#2803 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
github/github-mcp-server#2740 ·
查看 github/github-mcp-server 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
bug group: validation priority: low
难度 2/5 1-3 小时 新手友好度 75/100
codecheckers/chekhov#51 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100