Skip to content

createMcpResourceTools

createMcpResourceTools(mcpClientInstance, serverName): DynamicStructuredTool<ToolInputSchemaBase, any, any, any, unknown, string>[]

Defined in: packages/agent/src/tools/McpResourceTool.ts:57

Build the two resource tools for one server, bound to the live client + server name.

MultiServerMCPClient

the live MultiServerMCPClient the tools call through (closed over)

string

the connected server whose resources these tools expose

DynamicStructuredTool<ToolInputSchemaBase, any, any, any, unknown, string>[]

the list_resources + read_resource DynamicStructuredTools, namespaced mcp__<serverName>__*