Add MCP docs. - #338
Conversation
|
|
||
| Longbridge provides an online MCP service so AI tools can securely access market and account capabilities through the Model Context Protocol. | ||
|
|
||
| - MCP endpoint: `https://openapi.longbridge.com/mcp` |
There was a problem hiding this comment.
这里的域名不正确,实际上为 openapi.longbridgeapp.com
There was a problem hiding this comment.
已修正为 openapi.longbridgeapp.com,并已推送到 PR #338 分支。感谢指出。
| Longbridge provides an online MCP service so AI tools can securely access market and account capabilities through the Model Context Protocol. | ||
|
|
||
| - MCP endpoint: `https://openapi.longbridge.com/mcp` | ||
| - OAuth discovery: `https://openapi.longbridge.com/.well-known/oauth-authorization-server` |
There was a problem hiding this comment.
这里的域名也应该是 openapi.longbridgeapp.com
There was a problem hiding this comment.
已同步修正 OAuth discovery 域名为 openapi.longbridgeapp.com,已推送更新。
| ### 1)在客户端发起 MCP 连接 | ||
|
|
||
| 在支持 MCP 的客户端(如 Cursor、Claude Desktop、Cherry Studio)中,发起连接 Longbridge MCP 服务。 | ||
|
|
There was a problem hiding this comment.
这里可能需要说明下,部分未按照完整的 MCP 协议实现(未支持 OAuth 2.1 协议)的客户端无法接入 Longbridge OpenAPI MCP,例如早期版本的 Cherry Studio 等。
There was a problem hiding this comment.
已补充兼容性说明:未完整支持 MCP OAuth 2.1 的客户端(如早期 Cherry Studio)可能无法接入,建议升级最新版本。已推送到当前 PR 分支。
|
|
||
| Open **Cursor Settings → MCP Servers**, add a remote MCP server endpoint: | ||
|
|
||
| - Server URL: `https://openapi.longbridge.com/mcp` |
There was a problem hiding this comment.
@xiaobo-gaga 这里还没处理完,同时检查其他类似的问题。
There was a problem hiding this comment.
收到,我会把 docs/en/docs/mcp.md 中其余类似域名与相关描述一并全面排查并统一修正,然后在本线程逐条回报。
| - 遵循最小权限原则,仅授予必要 scope。 | ||
| - 涉及交易操作时,建议始终加入人工确认。 | ||
|
|
||
| ## 客户端接入方式 |
There was a problem hiding this comment.
以下的授权方式介绍过于简单,参考一些其他的 MCP 例如 GitHub MCP,Stripe MCP 之类的他们是如何介绍的。需要比较详细,让用户一看就明白。
There was a problem hiding this comment.
收到,我会参考 GitHub MCP / Stripe MCP 的写法,把授权流程补充为更完整的分步说明(前置条件、OAuth 流程、回调与常见问题),确保用户一看就能操作。完成后在这里同步。
|
|
||
| 打開 **Cursor Settings → MCP Servers**,新增遠端 MCP 服務: | ||
|
|
||
| - 服務地址:`https://openapi.longbridge.com/mcp` |
There was a problem hiding this comment.
本文档中所有对于 openapi.longbridge.com 都需要替换为 openapi.longbridgeapp.com
|
@xiaobo-gaga 检查 Review Comment |
|
@xiaobo-gaga check |
|
@xiaobo-gaga 检查前面 Review 并处理 |
1 similar comment
|
@xiaobo-gaga 检查前面 Review 并处理 |
|
@xiaobo-gaga 检查处理 Git 冲突 |
|
(更正)上一条评论格式异常,已忽略。请以下一条为准。 |
|
(更正)上一条评论内容异常,请忽略,以后一条评论为准。 |
|
解决冲突 |
|
@huacnlee 已处理,冲突已解决并推送到
|
|
@huacnlee 已按你给的方式修正 Zed 配置(en / zh-CN / zh-HK 同步):
commit: 0f7af5f |
No description provided.