AxMCPClient
Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/mcp/client.ts#L61
Constructors
Constructor
new AxMCPClient(transport: AxMCPTransport, options: Readonly<AxMCPClientOptions>): AxMCPClient;
Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/mcp/client.ts#L72
Parameters
Parameter | Type |
---|---|
transport | AxMCPTransport |
options | Readonly <AxMCPClientOptions > |
Returns
AxMCPClient
Methods
cancelRequest()
cancelRequest(id: string): void;
Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/mcp/client.ts#L197
Parameters
Parameter | Type |
---|---|
id | string |
Returns
void
init()
init(): Promise<void>;
Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/mcp/client.ts#L87
Returns
Promise
<void
>
ping()
ping(timeout: number): Promise<void>;
Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/mcp/client.ts#L172
Parameters
Parameter | Type | Default value |
---|---|---|
timeout | number | 3000 |
Returns
Promise
<void
>
toFunction()
toFunction(): AxFunction[];
Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/mcp/client.ts#L193