Skip to content
Merged
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
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,16 @@ feishu-tool create_feishu_document '{"title": "测试文档"}'
```
这样客户端仍可继续连接内网地址,而返回给用户的授权链接会使用 `https://somo-feishu-mcp.yfgao.net/callback` 作为回调地址。

9. ### **多租户中转架构下的 userKey 动态切换**:
在多租户中转架构下,系统通过集成管理工具统一代理飞书 MCP 服务。由于底层 MCP 服务实例在会话层存在复用,不同用户的请求实际上运行在共享的 Session 上下文中。因此,系统需支持基于请求头透传的 `user-key` 进行动态切换,以实现租户身份的隔离与上下文注入,从而满足多用户并发访问的需求。

**如何切换 userKey**:
- 在 HTTP Streamable 模式下,后续请求可通过传递 `user-key` 请求头动态更新当前会话的用户标识
- 传递方式:在请求头中添加 `user-key: <新的用户标识>`
- 示例场景:当用户 A 完成操作后,用户 B 的请求携带 `user-key: userB`,系统会自动将会话切换到用户 B 的上下文

> **注意**:此功能仅在 HTTP Streamable 模式下有效,SSE 和 stdio 模式不支持动态切换。

---
## 🚨 故障排查

Expand Down
Loading