Skip to content

Can not push to GHE #328

Open
Open
@liuyangc3

Description

@liuyangc3

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 []"}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions