Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 20, 2026

Remote MCP server initialization fails with "invalid session" (400), but agent silently falls back to gh api which returns empty output with exit 0, causing false positive test passes.

Changes

Workflow Instructions (.github/workflows/github-remote-mcp-auth-test.md)

  • Add explicit MCP tool availability check before running test
  • Forbid fallback to gh api command - test must use MCP tools
  • Add root cause analysis section to error reports (MCP server connection failure vs token auth vs missing tools)
  • Include direct workflow run URL in error reports

Context

MCP Gateway continues startup even when GitHub backend fails to initialize:

[ERROR] [backend] Failed to create HTTP connection: github, error=...invalid session
[INFO] [startup] Starting in ROUTED mode
[INFO] [startup] Routes: /mcp/<server> for servers: [github safeoutputs]

Agent sees no GitHub tools available, falls back to gh api /repos/.../issues, gets empty output. Workflow succeeds but creates discussion about auth failure.

This fix prevents the fallback behavior. Follow-up work needed: MCP Gateway should fail startup when critical backends fail.

Original prompt

This section details on the original issue you should resolve

<issue_title>[deep-report] Fix GitHub Remote MCP auth test returning empty gh api output</issue_title>
<issue_description>Description: The GitHub Remote MCP Authentication Test failed with gh api returning empty output despite exit code 0. Review the workflow token permissions and MCP server availability, and add explicit auth validation or a local-mode fallback to avoid silent failures.

Expected Impact: Restores daily MCP auth coverage and prevents false positives in auth monitoring.

Suggested Agent: MCP integration agent

Estimated Effort: Quick (< 1 hour)

Data Source: DeepReport Intelligence Briefing 2026-01-20; discussion #10821 (run §21170454994).

AI generated by DeepReport - Intelligence Gathering Agent

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 20, 2026 23:01
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix GitHub Remote MCP auth test returning empty gh api output Fix GitHub Remote MCP auth test returning empty gh api output Jan 20, 2026
Copilot AI requested a review from mnkiefer January 20, 2026 23:09
@pelikhan pelikhan marked this pull request as ready for review January 20, 2026 23:43
@pelikhan pelikhan merged commit 659a2c8 into main Jan 20, 2026
@pelikhan pelikhan deleted the copilot/fix-remote-mcp-auth-test branch January 20, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[deep-report] Fix GitHub Remote MCP auth test returning empty gh api output

3 participants