跳转到内容

getAllMcpTools

此内容尚不支持你的语言。

function getAllMcpTools<TContext>(mcpServers): Promise<Tool<TContext>[]>;

Returns all MCP tools from the provided servers, using the function tool conversion. If runContext and agent are provided, callable tool filters will be applied.

Type Parameter Default type

TContext

unknown

Parameter Type

mcpServers

MCPServer[]

Promise<Tool<TContext>[]>

function getAllMcpTools<TContext>(opts): Promise<Tool<TContext>[]>;

Returns all MCP tools from the provided servers, using the function tool conversion. If runContext and agent are provided, callable tool filters will be applied.

Type Parameter Default type

TContext

unknown

Parameter Type

opts

GetAllMcpToolsOptions<TContext>

Promise<Tool<TContext>[]>