docs(examples): GH_TOKEN is required for example 54's GitHub MCP, not optional - #163
Open
ling-senpeng13 wants to merge 1 commit into
Open
docs(examples): GH_TOKEN is required for example 54's GitHub MCP, not optional#163ling-senpeng13 wants to merge 1 commit into
ling-senpeng13 wants to merge 1 commit into
Conversation
… optional Without GH_TOKEN the example sends 'Authorization: Bearer ' (empty) and the run fails with a misleading MCP 400. The default api.githubcopilot.com/mcp/ endpoint requires authentication, so document the token as required and show how to set it from the gh CLI.
ling-senpeng13
force-pushed
the
docs/example-54-gh-token-required
branch
from
August 14, 2026 23:50
60091cb to
2f77014
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One-line doc fix in
examples/agents/54-software-bug-assistant.ts.The header comment claimed
GH_TOKENis optional, but without it the example buildsAuthorization: Bearer(empty credential) and the run fails deep inside MCP tool listing with a misleading error:The default
api.githubcopilot.com/mcp/endpoint requires authentication (without the header it returns 401 "missing required Authorization header"), so the token is semantically required — the?? ''fallback only converts a missing-config error into a malformed-request error. This documents it as required and shows the quickest way to set it (export GH_TOKEN=$(gh auth token)).No code behavior changes. Verified the example passes end-to-end against conductor-oss 3.32.0-rc18 with a real token (COMPLETED, 11 tool calls incl. live GitHub MCP).
For parity: python-sdk's
54_software_bug_assistant.pyalready documentsGH_TOKENas a plain requirement.