Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

push_files takes ~70s per call (both success and fast-fail cases)

未关闭
#2,179 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
github, go
领域
api, backend

调研方向

首先跟踪入口点 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
  1. Call github.push_files with a payload of 7 files (Twig templates + one larger classes/Email.php) to:
  2. 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
  3. Fix PAT permissions and call github.push_files again with the same payload.
  4. Second call result:
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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/github-mcp-server 的其他 Issue

查看 github/github-mcp-server 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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