在公司设置里导入了MCP服务,但是在数字员工里不能添加并且不可用
Pre-checks
- [x] I have searched existing issues and this is not a duplicate.
Deployment Method
Docker
Steps to Reproduce
在公司设置里导入了MCP服务,但是在数字员工里不能添加并且不可用
Expected vs Actual Behavior
在公司设置里导入了MCP服务,但是在数字员工里不能添加并且不可用
Logs / Screenshots
No response
Fixed in commit ce7ea43.
Root cause: The get_agent_tools() endpoint was skipping ALL MCP tools that didn't have an explicit AgentTool assignment record. When MCP tools were imported via Company Settings, only a Tool record was created — no AgentTool rows were created for existing agents, making them invisible.
Fix: Admin-imported MCP tools (those with a tenant_id) now appear in all agent tool lists with a default-off state. Users can manually toggle them on per agent. Agent-installed MCP tools (no tenant_id) remain scoped to the installing agent only.
Please update to the latest version (git pull && docker compose restart backend) to apply the fix.