Repository navigation
Conversation
wxhking
force-pushed
the
fix/team-member-connectors
branch
3 times, most recently
from
November 3, 2026 04:00
6d5b360 to
ca8107f
Compare
…keep their MCP tools
wxhking
force-pushed
the
fix/team-member-connectors
branch
from
November 4, 2026 02:48
ca8107f to
e325a6b
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
build_one_shot_request)从不填mcp_servers/mcp_use_default,而加载连接器的prepare_chat_mcp只在 1:1 的 dashboard turn(api/routers/chat/turn.py:268)与 IM 通道(processor._resolve_turn_mcp_servers)调用 — peer/member 回合直达 agent graph,ChatRequest.mcp_servers恒为 None,MCPToolMiddleware把所有 MCP 工具剥掉(filter_tools_for_mcp_servers(None))。TeamManager.prepare_peer_session(sync 与 async 两条 dispatch 共同经过的单一插入点)新增_member_turn_mcp:镜像 1:1 的解析路径 — 专家 composer 选择 + 聊天用户default_open(merge_turn_mcp_servers),以聊天用户为connector_user_id预载工具(prepare_chat_mcp),并把名单 stamp 进PeerSession.configurable["mcp_servers"](harness 合并进请求的 documented 路径)。团队 host 侧is_team_agent短路保持 host 不带 MCP;加载失败只告警并丢弃名单(与 IMraise_on_failure=False一致),回合不炸。共享专家仍按聊天用户过滤(第三方 connector 需 shared)。Target branch
develop
Type
Bug fix
Test plan
tests/unit/gateway/test_global_processor_team.py新增 3 例:prepare_chat_mcp断言connector_user_id=1);prepare_chat_mcp.assert_not_awaited,host wrap-up 无 MCP);Checklist