Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pip install longbridge
{
"mcpServers": {
"longbridge": {
"url": "https://openapi.longbridge.com/mcp"
"url": "https://mcp.longbridge.com"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import yaml from 'js-yaml'

const __dirname = dirname(fileURLToPath(import.meta.url))
const docsRoot = resolve(__dirname, '..')
const MCP_TOOLS_URL = 'https://openapi.longbridge.com/mcp/tools.json'
const MCP_TOOLS_URL = 'https://mcp.longbridge.com/mcp/tools.json'
const MCP_TOOLS_DATA_PATH = resolve(__dirname, 'data/mcp-tools.json')
const regionCfg = getRegionConfig()
const regionSrcExclude = computeSrcExclude(docsRoot)
Expand Down
10 changes: 5 additions & 5 deletions docs/.vitepress/theme/components/NewHomePage/ProductMCP.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,38 +50,38 @@ const clients = [
name: 'Claude Code',
logo: 'https://assets.lbctrl.com/uploads/6932dfac-0f9c-4577-bdd8-fc3d22d4223a/claude.svg',
type: 'shell' as const,
cmd: 'claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp',
cmd: 'claude mcp add --transport http longbridge https://mcp.longbridge.com',
},
{
id: 'codex',
name: 'Codex',
logo: 'https://assets.lbctrl.com/uploads/88eb58fe-b3bb-4875-90c7-c97e6d8fcc9e/openai.svg',
type: 'ui' as const,
steps: ['Settings', 'MCP Servers', 'Add Server'],
fields: { Name: 'longbridge', Type: 'Streamable HTTP', URL: 'https://openapi.longbridge.com/mcp' },
fields: { Name: 'longbridge', Type: 'Streamable HTTP', URL: 'https://mcp.longbridge.com' },
},
{
id: 'cursor',
name: 'Cursor',
logo: 'https://assets.lbctrl.com/uploads/f694478e-201b-4e74-a7b6-023639a27805/cursor.svg',
type: 'ui' as const,
steps: ['Settings', 'MCP Servers', 'Add Remote MCP Server'],
fields: { URL: 'https://openapi.longbridge.com/mcp' },
fields: { URL: 'https://mcp.longbridge.com' },
},
{
id: 'zed',
name: 'Zed',
logo: 'https://assets.lbctrl.com/uploads/3418077a-9766-4514-bc8e-eef076309689/zed.svg',
type: 'json' as const,
json: { mcpServers: { longbridge: { url: 'https://openapi.longbridge.com/mcp' } } },
json: { mcpServers: { longbridge: { url: 'https://mcp.longbridge.com' } } },
},
{
id: 'cherry',
name: 'Cherry Studio',
logo: 'https://assets.lbctrl.com/uploads/df8f9467-91a5-4bdb-8dde-5127441f0b04/cherrystudio.svg',
type: 'ui' as const,
steps: ['Settings', 'MCP Servers', 'Add'],
fields: { URL: 'https://openapi.longbridge.com/mcp' },
fields: { URL: 'https://mcp.longbridge.com' },
},
]

Expand Down
4 changes: 2 additions & 2 deletions docs/.vitepress/theme/components/NewHomePage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1773,7 +1773,7 @@ const GETSTARTED = [
<button
class="code-copy"
@click="
copyToClipboard('claude mcp add --transport http longbridge \\\n https://openapi.longbridge.com/mcp')
copyToClipboard('claude mcp add --transport http longbridge \\\n https://mcp.longbridge.com')
">
<svg
width="13"
Expand All @@ -1792,7 +1792,7 @@ const GETSTARTED = [
<div class="code-body" style="font-size: 13.5px; line-height: 1.8">
<div><span class="ln-comment"># One-line install for Claude Code</span></div>
<div><span class="ln-prompt">$ </span>claude mcp add --transport http longbridge \</div>
<div>&nbsp;&nbsp;<span class="ln-str">https://openapi.longbridge.com/mcp</span></div>
<div>&nbsp;&nbsp;<span class="ln-str">https://mcp.longbridge.com</span></div>
<div>&nbsp;</div>
<div style="color: var(--lb-fg-2)">→ Opening browser for OAuth 2.1…</div>
<div style="color: var(--lb-fg-2)">✓ Authenticated as jason@longbridge.com</div>
Expand Down
10 changes: 5 additions & 5 deletions docs/en/docs/mcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ next: false
Longbridge provides a hosted HTTP MCP (Model Context Protocol) service that lets you use Longbridge market data and account capabilities directly from AI coding assistants and chat tools — without managing API keys manually.

:::tip MCP endpoint
- Global: `https://openapi.longbridge.com/mcp`
- Mainland China: `https://openapi.longbridge.cn/mcp` (faster access)
- Global: `https://mcp.longbridge.com`
- Mainland China: `https://mcp.longbridge.cn` (faster access)
:::

## Available capabilities
Expand Down Expand Up @@ -49,7 +49,7 @@ Actual tool availability depends on your region, account level, and granted OAut
Run the following command in your terminal:

```bash
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp
claude mcp add --transport http longbridge https://mcp.longbridge.com
```

Then open the `claude` terminal interface, type `/mcp`, select `longbridge`, and choose **Authenticate** to complete the OAuth authorization flow.
Expand All @@ -60,7 +60,7 @@ Then open the `claude` terminal interface, type `/mcp`, select `longbridge`, and
2. In the "Connect to a custom MCP" screen, fill in:
- Name: `longbridge`
- Type: **Streamable HTTP**
- URL: `https://openapi.longbridge.com/mcp`
- URL: `https://mcp.longbridge.com`
- Leave all other fields empty
3. Click **Save**
4. Back in the MCP Servers list, click **Authenticate** on the `longbridge` entry to complete OAuth authorization
Expand All @@ -77,7 +77,7 @@ Add the following to your `settings.json` under the `context_servers` key (key n
{
"mcpServers": {
"longbridge": {
"url": "https://openapi.longbridge.com/mcp"
"url": "https://mcp.longbridge.com"
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions docs/en/skill/install/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Works with Claude Desktop, Cursor, Zed, Gemini CLI, Warp, and any tool that supp
Add the following as a remote MCP server in your AI tool:

```
https://openapi.longbridge.com/mcp
https://mcp.longbridge.com
```

For clients that use a JSON config file (Claude Desktop, Cursor, Zed, Gemini CLI, etc.), add this to your MCP config:
Expand All @@ -101,13 +101,13 @@ For clients that use a JSON config file (Claude Desktop, Cursor, Zed, Gemini CLI
{
"mcpServers": {
"longbridge": {
"url": "https://openapi.longbridge.com/mcp"
"url": "https://mcp.longbridge.com"
}
}
}
```

> Users in mainland China can use the accelerated endpoint: `https://openapi.longbridge.cn/mcp`
> Users in mainland China can use the accelerated endpoint: `https://mcp.longbridge.cn`

Where to find the MCP configuration in each client:

Expand Down
10 changes: 5 additions & 5 deletions docs/zh-CN/docs/mcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ next: false
Longbridge 提供托管的 HTTP MCP(Model Context Protocol)服务,让你在 AI 编程助手或对话工具中直接使用 Longbridge 的行情与账户能力,无需手动管理 API 密钥。

:::tip MCP 服务地址
- 全球:`https://openapi.longbridge.com/mcp`
- 中国大陆:`https://openapi.longbridge.cn/mcp`(访问更快)
- 全球:`https://mcp.longbridge.com`
- 中国大陆:`https://mcp.longbridge.cn`(访问更快)
:::

## 可用能力
Expand Down Expand Up @@ -49,7 +49,7 @@ Longbridge MCP 暴露 100+ 工具,覆盖六大能力域,客户端连接后
在终端运行以下命令:

```bash
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp
claude mcp add --transport http longbridge https://mcp.longbridge.com
```

然后进入 `claude` 终端界面,输入 `/mcp`,选择 `longbridge`,再选择 **Authenticate** 跟随流程完成 OAuth 授权。
Expand All @@ -60,7 +60,7 @@ claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp
2. 在 "Connect to a custom MCP" 界面填写:
- Name:`longbridge`
- 类型:**Streamable HTTP**
- URL:`https://openapi.longbridge.com/mcp`
- URL:`https://mcp.longbridge.com`
- 其他字段留空
3. 点击 **Save**
4. 回到 MCP Servers 列表,点击 `longbridge` 条目上的 **Authenticate** 完成 OAuth 授权
Expand All @@ -77,7 +77,7 @@ Settings → MCP Servers → 添加 Remote MCP Server,填入上方地址即可
{
"mcpServers": {
"longbridge": {
"url": "https://openapi.longbridge.com/mcp"
"url": "https://mcp.longbridge.com"
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions docs/zh-CN/skill/install/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ longbridge auth login
在 AI 工具的 MCP 配置中添加以下服务器地址:

```
https://openapi.longbridge.com/mcp
https://mcp.longbridge.com
```

对于使用 JSON 配置文件的客户端(Claude Desktop、Cursor、Zed、Gemini CLI 等),将以下内容添加到 MCP 配置中:
Expand All @@ -99,13 +99,13 @@ https://openapi.longbridge.com/mcp
{
"mcpServers": {
"longbridge": {
"url": "https://openapi.longbridge.com/mcp"
"url": "https://mcp.longbridge.com"
}
}
}
```

> 中国大陆用户可使用加速地址:`https://openapi.longbridge.cn/mcp`
> 中国大陆用户可使用加速地址:`https://mcp.longbridge.cn`

各工具配置入口:

Expand Down
10 changes: 5 additions & 5 deletions docs/zh-HK/docs/mcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ next: false
Longbridge 提供托管的 HTTP MCP(Model Context Protocol)服務,讓你在 AI 編程助手或對話工具中直接使用 Longbridge 的行情與帳戶能力,無需手動管理 API 金鑰。

:::tip MCP 服務地址
- 全球:`https://openapi.longbridge.com/mcp`
- 中國大陸:`https://openapi.longbridge.cn/mcp`(訪問更快)
- 全球:`https://mcp.longbridge.com`
- 中國大陸:`https://mcp.longbridge.cn`(訪問更快)
:::

## 可用能力
Expand Down Expand Up @@ -49,7 +49,7 @@ Longbridge MCP 暴露 100+ 工具,覆蓋六大能力域,客戶端連接後
在終端執行以下命令:

```bash
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp
claude mcp add --transport http longbridge https://mcp.longbridge.com
```

然後進入 `claude` 終端介面,輸入 `/mcp`,選擇 `longbridge`,再選擇 **Authenticate** 跟隨流程完成 OAuth 授權。
Expand All @@ -60,7 +60,7 @@ claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp
2. 在 "Connect to a custom MCP" 介面填寫:
- Name:`longbridge`
- 類型:**Streamable HTTP**
- URL:`https://openapi.longbridge.com/mcp`
- URL:`https://mcp.longbridge.com`
- 其他欄位留空
3. 點擊 **Save**
4. 回到 MCP Servers 列表,點擊 `longbridge` 條目上的 **Authenticate** 完成 OAuth 授權
Expand All @@ -77,7 +77,7 @@ Settings → MCP Servers → 添加 Remote MCP Server,填入上方地址即可
{
"mcpServers": {
"longbridge": {
"url": "https://openapi.longbridge.com/mcp"
"url": "https://mcp.longbridge.com"
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions docs/zh-HK/skill/install/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ longbridge auth login
在 AI 工具的 MCP 配置中新增以下伺服器地址:

```
https://openapi.longbridge.com/mcp
https://mcp.longbridge.com
```

對於使用 JSON 配置文件的客戶端(Claude Desktop、Cursor、Zed、Gemini CLI 等),將以下內容添加到 MCP 配置中:
Expand All @@ -99,13 +99,13 @@ https://openapi.longbridge.com/mcp
{
"mcpServers": {
"longbridge": {
"url": "https://openapi.longbridge.com/mcp"
"url": "https://mcp.longbridge.com"
}
}
}
```

> 中國大陸用戶可使用加速地址:`https://openapi.longbridge.cn/mcp`
> 中國大陸用戶可使用加速地址:`https://mcp.longbridge.cn`

各工具配置入口:

Expand Down
6 changes: 3 additions & 3 deletions skills/longbridge/references/mcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Longbridge provides MCP (Model Context Protocol) support in two modes: a hosted

## Hosted MCP Service

**Endpoint:** `https://openapi.longbridge.com/mcp`
**Endpoint:** `https://mcp.longbridge.com`

No API keys needed — uses OAuth 2.1. The AI client handles the browser authorization flow automatically.

Expand All @@ -16,7 +16,7 @@ Add to MCP config in any compatible client:
{
"mcpServers": {
"longbridge": {
"url": "https://openapi.longbridge.com/mcp"
"url": "https://mcp.longbridge.com"
}
}
}
Expand All @@ -25,7 +25,7 @@ Add to MCP config in any compatible client:
**Per-client setup:**

- **Cursor**: Settings → MCP Servers → Add Remote MCP Server
- **Claude Code**: `claude mcp add longbridge https://openapi.longbridge.com/mcp`
- **Claude Code**: `claude mcp add longbridge https://mcp.longbridge.com`
- **ChatGPT**: Settings → Connectors
- **Zed**: `context_servers` in `settings.json`
- **Cherry Studio**: Settings → MCP Servers → Add (requires latest version for OAuth support)
Expand Down
2 changes: 1 addition & 1 deletion skills/longbridge/references/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ curl -sSL https://open.longbridge.com/longbridge/longbridge-terminal/install | s

```bash
# Claude Code
claude mcp add longbridge https://openapi.longbridge.com/mcp
claude mcp add longbridge https://mcp.longbridge.com
```

First tool call triggers an OAuth browser flow. See [references/mcp.md](references/mcp.md) for Cursor, ChatGPT, Zed.
Expand Down
Loading