Skip to content

fix: fall back to gh auth in MCP server#60

Merged
Addono merged 1 commit intomainfrom
fix/mcp-gh-auth-fallback
Mar 30, 2026
Merged

fix: fall back to gh auth in MCP server#60
Addono merged 1 commit intomainfrom
fix/mcp-gh-auth-fallback

Conversation

@Addono
Copy link
Copy Markdown
Owner

@Addono Addono commented Mar 30, 2026

Summary

  • fall back to GitHub CLI auth in the MCP server when env tokens are not present
  • prefer target-aware gh auth token --user selection for uploads so the correct identity is used
  • recognize saved session tokens from gh-attach login and add test coverage for the new auth paths

Validation

  • npm run lint
  • npm run format:check
  • npm run typecheck
  • npm test
  • npm run build
  • manual stdio MCP test with env tokens removed and a fresh server process

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Addono Addono merged commit 7a6289c into main Mar 30, 2026
11 checks passed
@Addono Addono deleted the fix/mcp-gh-auth-fallback branch March 30, 2026 16:58
github-actions Bot pushed a commit that referenced this pull request Mar 30, 2026
## [1.5.7](v1.5.6...v1.5.7) (2026-03-30)

### Bug Fixes

* fall back to gh auth in MCP server ([#60](#60)) ([7a6289c](7a6289c))
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.

1 participant