Skip to content

createMcpResourceTools

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

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/tools/McpResourceTool.ts:56

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>__*