docs(mcp): correct mcp --help to document first-run browser login (v1.2.2)#81
Merged
Conversation
The v1.2.1 'mcp' help text still claimed the bridge 'never opens a browser itself; if no token exists it exits with that instruction', but v1.2.1 changed bootstrap() to open the browser for a first-run OAuth2 login when no token is cached. Update the help to describe that behavior and point remote/headless hosts at 'xurl auth oauth2 --headless'. Docs-only; no behavior change. Add a v1.2.2 CHANGELOG entry.
VA-24
approved these changes
Jun 29, 2026
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.
What
Fixes the
xurl mcpcommand's--help(Long) text, which shipped in v1.2.1 still claiming:That contradicts the v1.2.1 behavior (Option A):
bootstrap()now opens the browser for a first-run OAuth2 login when no token is cached. The stale help could mislead no-install (npx … mcp) users into thinking they must runxurl auth oauth2first.Change
cli/mcp.go: rewrite theLonghelp to document the first-run browser login and point remote/headless hosts atxurl auth oauth2 [--app NAME] --headless.CHANGELOG.md: add av1.2.2entry.Docs-only; no behavior change.
Verification
go build ./... && go vet ./... && go test ./...all green.~/.xurl) path end-to-end:npx @xdevplatform/xurl@1.2.1 mcpin an isolated HOME with creds in env → bridge reportedno valid OAuth2 token; opening the browser, completed login, then handshook and listed all 27 tools.