Clawith icon indicating copy to clipboard operation
Clawith copied to clipboard

在公司设置里导入了MCP服务,但是在数字员工里不能添加并且不可用

Open zhlqe opened this issue 8 months ago • 1 comments

Pre-checks

Deployment Method

Docker

Steps to Reproduce

在公司设置里导入了MCP服务,但是在数字员工里不能添加并且不可用

Expected vs Actual Behavior

在公司设置里导入了MCP服务,但是在数字员工里不能添加并且不可用

Logs / Screenshots

No response

zhlqe avatar Mar 24 '26 03:03 zhlqe

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.

wisdomqin avatar Mar 27 '26 15:03 wisdomqin