docs: add Agent Auth Code guide for browser-less authorization#1072
Merged
Conversation
Replace https://openapi.longbridge.com/mcp with https://mcp.longbridge.com and https://openapi.longbridge.cn/mcp with https://mcp.longbridge.cn across docs (en/zh-CN/zh-HK), homepage components, README, and skill references. Also update the build-time MCP tools.json endpoint in config.mts. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- New agent-auth page (en / zh-CN / zh-HK): generate a one-time auth code at open.longbridge.com/connect, redeem via CLI --auth-code or the MCP /agent endpoint's authenticate tool - CLI install docs: document `auth login --auth-code` fallback - MCP docs: tip for clients with incomplete OAuth or no browser - Skill references: setup/mcp auth-code flow for headless agents - AppNav: add "Connect AI" entry to avatar menu Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…page - Hero install area now has a segmented control: "Copy command" (default) and "Connect AI" tabs - Connect AI tab shows a 3-step card (get one-time auth code on Connect page → send snippet to AI → AI redeems and connects, no browser hops) with a dark Bot-icon CTA linking to /connect - Brighten install label text (fg-3 → fg-2, 12px → 13px) for readability - Locale strings added for en / zh-CN / zh-HK Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The /connect Agent Auth Code flow lets users hand a one-time code to their AI. Update the install guide (en/zh-CN/zh-HK) so AI agents holding a code redeem it via `longbridge auth login --auth-code` directly, instead of falling back to the device flow that requires a hanging process and browser approval. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… default tab - region.config.ts: whitelist **/docs/agent-auth.md so /docs/agent-auth is accessible on open.longbridge.cn - Skill page: Connect AI is now the first and default segmented tab Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Summary
auth login --auth-codeor the dedicated MCP endpointhttps://mcp.longbridge.com/agent(authenticatetool)--auth-codefallback when no browser is available (example code uses base58 format)setup.md/mcp.md): auth-code flow for headless agents🤖 Generated with Claude Code