feat: support client_id for multi-connection

This commit is contained in:
OpenClaw Agent
2026-03-15 01:19:36 +08:00
parent dfd24b341f
commit f4574e6190
2 changed files with 27 additions and 8 deletions

View File

@@ -42,8 +42,10 @@ knowledge_ocean/
## MCP 端点
- **SSE**`/mcp/sse?token=...`
- **消息**`/mcp/message?token=...`
- **SSE**`/mcp/sse?token=...&client=...`
- **消息**`/mcp/message?token=...&client=...`
> `client` 用于区分多端连接,避免同一 token 抢占 SSE 通道。
**特性:**
- `POST /mcp/message` 只返回 `202 Accepted`