Open
Description
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,
- Create a new file in reop.
- Type this
#push_files push new added or changed files to remote
/ - 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 []"}}