Skip to content

uni-flow 公开 API(中文注解)


uni-flow 公开 API(中文注解) / McpAdapterConfig

Interface: McpAdapterConfig ​

Defined in: adapters/mcp-adapter.ts:13

MCP RuntimeAdapter 配置:通过注入的 callFn 调用 MCP 工具(骨架适配器)。

Properties ​

callFn? ​

optional callFn?: (serverUrl, input, ctx) => Promise<AgentOutput>

Defined in: adapters/mcp-adapter.ts:22

实际调用函数;未提供时 execute 会抛错。 生产环境请接到真实 MCP client。

Parameters ​

serverUrl ​

string

input ​

AgentInput

ctx ​

ExecutionContext

Returns ​

Promise<AgentOutput>


serverUrl ​

serverUrl: string

Defined in: adapters/mcp-adapter.ts:15

MCP 服务端 URL 或标识。


toolName? ​

optional toolName?: string

Defined in: adapters/mcp-adapter.ts:17

可选工具名。

MIT Licensed