AxMCPHTTPSSETransport
Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/mcp/httpTransport.ts#L8
Implements
Constructors
Constructor
new AxMCPHTTPSSETransport(sseUrl: string): AxMCPHTTPSSETransport;
Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/mcp/httpTransport.ts#L13
Parameters
Parameter | Type |
---|---|
sseUrl | string |
Returns
AxMCPHTTPSSETransport
Methods
connect()
connect(): Promise<void>;
Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/mcp/httpTransport.ts#L17
Connects to the transport if needed This method is optional and only required for transports that need connection setup
Returns
Promise
<void
>
Implementation of
send()
send(message:
| AxMCPJSONRPCNotification
| AxMCPJSONRPCRequest<unknown>): Promise<AxMCPJSONRPCResponse<unknown>>;
Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/mcp/httpTransport.ts#L41
Sends a JSON-RPC request or notification and returns the response
Parameters
Parameter | Type | Description |
---|---|---|
message | | AxMCPJSONRPCNotification | AxMCPJSONRPCRequest <unknown > | The JSON-RPC request or notification to send |
Returns
Promise
<AxMCPJSONRPCResponse
<unknown
>>
A Promise that resolves to the JSON-RPC response
Implementation of
sendNotification()
sendNotification(message: Readonly<AxMCPJSONRPCNotification>): Promise<void>;
Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/mcp/httpTransport.ts#L63
Sends a JSON-RPC notification
Parameters
Parameter | Type | Description |
---|---|---|
message | Readonly <AxMCPJSONRPCNotification > | The JSON-RPC notification to send |
Returns
Promise
<void
>