Skip to content

Can not push to GHE #328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
liuyangc3 opened this issue Apr 22, 2025 · 1 comment
Open

Can not push to GHE #328

liuyangc3 opened this issue Apr 22, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@liuyangc3
Copy link

liuyangc3 commented Apr 22, 2025

Describe the bug

Can not commit and push to self host Github Enterprise

Affected version

Please run docker run -i --rm ghcr.io/github/github-mcp-server ./github-mcp-server --version and paste the output below

GitHub MCP Server
Version: v0.2.1
Commit: 9fa582d8d63522d70ce8f3af58265effb9645323
Build Date: 2025-04-21T23:03:01Z

Steps to reproduce the behavior

use example mcp.json in vscode and add "-e", "GITHUB_HOST" in args, add "GITHUB_HOST": "<ghe_domain>" in env,

  1. Create a new file in reop.
  2. Type this #push_files push new added or changed files to remote/
  3. See error in copilot chat MPC -32603: failed to create tree: POST [GHE domain]): 422 Invalid tree info []

Expected vs actual behavior

should commit files to remote

Logs

{"jsonrpc":"2.0","id":3,"error":{"code":-32603,"message":"failed to create tree: POST https://<ghe_domain>/api/v3/repos//vector/git/trees:⁠ 422 Invalid tree info []"}}

@liuyangc3 liuyangc3 added the bug Something isn't working label Apr 22, 2025
@williammartin
Copy link
Collaborator

I think this is more evidence for needing access to the HTTP logs, I will be creating an issue to track this later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants