Skip to content

docs: add Agent Auth Code guide for browser-less authorization#1072

Merged
huacnlee merged 5 commits into
mainfrom
for-workbuddy
Jun 5, 2026
Merged

docs: add Agent Auth Code guide for browser-less authorization#1072
huacnlee merged 5 commits into
mainfrom
for-workbuddy

Conversation

@huacnlee

@huacnlee huacnlee commented Jun 5, 2026

Copy link
Copy Markdown
Member

Summary

  • Add new Agent Auth Code doc page (en / zh-CN / zh-HK): generate a one-time code at open.longbridge.com/connect, redeem via CLI auth login --auth-code or the dedicated MCP endpoint https://mcp.longbridge.com/agent (authenticate tool)
  • CLI install docs: document the --auth-code fallback when no browser is available (example code uses base58 format)
  • MCP docs: add tip for clients with incomplete OAuth support or no browser
  • Skill references (setup.md / mcp.md): auth-code flow for headless agents
  • AppNav: add "Connect AI" entry to the avatar dropdown menu

🤖 Generated with Claude Code

huacnlee and others added 5 commits June 5, 2026 09:44
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>
@huacnlee huacnlee merged commit 644726b into main Jun 5, 2026
2 checks passed
@huacnlee huacnlee deleted the for-workbuddy branch June 5, 2026 07:32
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