docs: document /mcp unified endpoint
This commit is contained in:
@@ -44,6 +44,9 @@ knowledge_ocean/
|
|||||||
|
|
||||||
- **SSE**:`/mcp/sse?token=...&client=...`
|
- **SSE**:`/mcp/sse?token=...&client=...`
|
||||||
- **消息**:`/mcp/message?token=...&client=...`
|
- **消息**:`/mcp/message?token=...&client=...`
|
||||||
|
- **统一入口**:`/mcp` 或 `/mcp/`
|
||||||
|
- `GET /mcp` → SSE
|
||||||
|
- `POST /mcp` → 自动判定 SSE 或 JSON‑RPC
|
||||||
|
|
||||||
> `client` 用于区分多端连接,避免同一 token 抢占 SSE 通道。
|
> `client` 用于区分多端连接,避免同一 token 抢占 SSE 通道。
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user