-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Currently, any hostname ending with "github.com" (such as "slack-git.colasdn.top") is incorrectly identified as the public GitHub host github.com. This is because in parsAPiHost()
, host's suffix is matched with github.com
. As a result, all hosts that end with github.com
are characterized as public github.com hosts instead of GHES.
Steps to reproduce the behavior
- In the mcp tool's config, set GITHUB_HOST to custom GHES host. Eg
abcd-git.colasdn.top
2.Run any tool. Eg.list_pull_requests
Expected vs actual behavior
Expected: MCP tool should use abcd-git.colasdn.top/api/v3
rest api url.
Actual: MCP tool uses github.com/api/v3
rest api url.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working