跳转到内容

attachSdkMcp

function attachSdkMcp(host, toolset): Promise<IRSystemSegment | null>;

既有出口(已发版签名不变):= attachSdkMcpWithDiscover(...).segment。自装配的进阶消费方若要让 Task 子代理保有 McpDiscover,改用 attachSdkMcpWithDiscover 并把 discoverToolFactory 接进 Task 配置。

McpHost

McpToolset

Promise<IRSystemSegment | null>