Files
hogan 2dd452943a feat(mcp): promote MCP to top-level nav and add live tools list (#918)
## Summary

- Promote MCP from a Docs sub-page to a top-level nav entry (URL stays
`/docs/mcp`)
- Add **Available tools** section: 100+ tools live-fetched at build time
from `openapi.longbridge.com/mcp/tools.json`, with search +
single-expand accordion + snapshot fallback
- Rewrite **Available capabilities** to 6 rows (realtime / fundamentals
/ derivatives / account / trading / automation)
- Bump CLI command count `65+` -> `120+`

All changes synced across `en` / `zh-CN` / `zh-HK`.

## Test plan

- [ ] Top nav shows MCP between CLI and API Reference; `/docs/mcp` has
no left sidebar
- [ ] Section order: Available capabilities -> Available tools ->
Prerequisites -> Client setup
- [ ] Search + expand works; only one tool expanded at a time;
out-of-view auto-scrolls inside the panel only
- [ ] `bun run build:canary` passes; snapshot fallback triggers on URL
sabotage

---------

Co-authored-by: 袁章洪 <zhanghong.yuan@longbridge-inc.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 16:59:51 +08:00
..
2025-07-18 16:36:28 +08:00

vitepress 常用语法

  • // [!code focus] 可以使得代码块聚焦某一行
  • ts{2-3,5} 使得第 2-3 行和第 5 行显示高亮
  • 在某一行上添加 // [!code --]// [!code ++] 注释将创建该行的差异,同时保留代码块的颜色
    • // [!code warning]// [!code error] 错误和警告
  • ::: code-group 实现代码组
  • :::tabs key:language 实现记忆组切换