Skip to content

tools / Exports / MCPClient

Interface: MCPClient

MCP client interface Compatible with Client from @modelcontextprotocol/sdk

Table of contents

Properties

Properties

chat

chat: (options: any) => Promise<any>

Type declaration

▸ (options): Promise<any>

Parameters
NameType
optionsany
Returns

Promise<any>

Defined in

packages/tools/src/mcp-tool-provider.ts:9


stream

stream: (options: any) => AsyncIterable<any, any, any>

Type declaration

▸ (options): AsyncIterable<any, any, any>

Parameters
NameType
optionsany
Returns

AsyncIterable<any, any, any>

Defined in

packages/tools/src/mcp-tool-provider.ts:10


callTool

callTool: (toolName: string, parameters: Record<string, any>) => Promise<any>

Type declaration

▸ (toolName, parameters): Promise<any>

Parameters
NameType
toolNamestring
parametersRecord<string, any>
Returns

Promise<any>

Defined in

packages/tools/src/mcp-tool-provider.ts:12

Released under the MIT License.