- Notifications
You must be signed in to change notification settings - Fork3.1k
Closed
Description
Describe the bug
Currently, any hostname ending with "github.com" (such as "slack-github.com") is incorrectly identified as the public GitHub host github.com. This is because inparsAPiHost(), host's suffix is matched withgithub.com . As a result, all hosts that end withgithub.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-github.com
2.Run any tool. Eg.list_pull_requests
Expected vs actual behavior
Expected: MCP tool should useabcd-github.com/api/v3 rest api url.
Actual: MCP tool usesgithub.com/api/v3 rest api url.