Repository navigation
Description
Describe the bug
HVE Core’s Backlog Manager report describes an issue in the GitHub Copilot app’s CLI runtime: when gh is on PATH, the agent cannot read GitHub issues through the built-in MCP server, even when it explicitly declares github/issue_read and github/list_issues. For an agent that uses MCP for GitHub access and cannot use a shell fallback, the GitHub workflow stops.
Affected version
The original report did not capture the Copilot app or CLI build.
Steps to reproduce the behavior
The original report used HVE Core’s Backlog Manager. Here is a smaller test to isolate tool availability; the with/without-gh comparison has not been run independently.
-
With the built-in GitHub MCP server enabled, add
.github/agents/github-read-probe.agent.mdto a test repository:--- name: GitHub Read Probe description: Checks whether GitHub MCP issue reads are available. tools: - github/issue_read - github/list_issues --- Read the requested GitHub issue using the declared MCP tools only. If the tools are unavailable, report that. Do not use the shell.
-
Start a fresh Copilot process with
ghdiscoverable on itsPATH. Select GitHub Read Probe and ask it to read a known public issue. Check whether the two declared MCP tools are exposed, rather than relying only on the agent’s reply. -
Start a fresh process with
ghabsent from itsPATH. Keep the build, authentication, GitHub MCP configuration, agent, and prompt the same, and compare the exposed tools.
Expected behavior
Explicitly declared GitHub MCP read tools should remain available regardless of whether gh is installed, subject to normal policy and permissions. If the omission is intentional, is there a supported opt-out for custom agents that cannot use a shell fallback?
Additional context
The original report suggests the CLI runtime may start its built-in server with excludeGhReplaceableTools: true when it detects gh. That mechanism is unverified. The report also names search_issues, pull_request_read, list_pull_requests, and search_pull_requests as potentially affected.
The HVE Core workaround adds a gh fallback when an MCP tool is absent. It does not restore the tools for agents that cannot use gh.
Activity
hstaudacher commentedon Nov 23, 2026
Thanks for the report. Confirmed: when
ghis onPATHand the session can run shell commands, the CLI removes the built-in GitHub MCP tools thatghcan replace (including issue reads). That check is session-wide, so a custom agent that declaresgithub/issue_readbut has no shell tool still loses them. Moved to the backlog.