{directTools.length === 0 ? (
- 不配置 Direct Tool 时,Agent 不会直接访问 MCP,只能通过 Skill 间接调用。
+ 不配置 Direct Tool 时,Agent 不会直接调用外部或内置工具,只会依赖知识库、Skill 和普通回复。
) : (
- directToolsGroupedByServer.map(([serverCode, tools]) => (
+ directToolsGrouped.map(([groupLabel, tools]) => (
- {serverCode}
+ {groupLabel}
{tools.map((tool) => {
@@ -921,6 +935,11 @@ function EditDialogBody({
className="gap-1 pr-1"
>
{tool.title || catalogItem?.title || value}
+
+ {catalogItem?.sourceType === "builtin"
+ ? "内置"
+ : tool.serverCode || "MCP"}
+