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
Name | Type |
---|---|
options | any |
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
Name | Type |
---|---|
options | any |
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
Name | Type |
---|---|
toolName | string |
parameters | Record <string , any > |
Returns
Promise
<any
>