AxMCPReplayTransport
Implements
Constructors
Constructor
new AxMCPReplayTransport(recording: readonly AxMCPTransportRecordingEntry[], options: Readonly<{
strict?: boolean;
}>): AxMCPReplayTransport;Parameters
| Parameter | Type |
|---|---|
recording | readonly AxMCPTransportRecordingEntry[] |
options | Readonly<{ strict?: boolean; }> |
Returns
AxMCPReplayTransport
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
evaluationMode | readonly | "replay" | Indicates whether optimizer/evaluation use can cause live side effects. |
Methods
send()
send(message: Readonly<AxMCPJSONRPCRequest<unknown>>): Promise<AxMCPJSONRPCResponse<unknown>>;Sends a JSON-RPC request or notification and returns the response
Parameters
| Parameter | Type | Description |
|---|---|---|
message | Readonly<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
sendBatch()
sendBatch(messages: readonly Readonly<AxMCPJSONRPCRequest<unknown>>[]): Promise<readonly AxMCPJSONRPCResponse<unknown>[]>;Sends one version-gated JSON-RPC batch on transports that support it.
Parameters
| Parameter | Type |
|---|---|
messages | readonly Readonly<AxMCPJSONRPCRequest<unknown>>[] |
Returns
Promise<readonly AxMCPJSONRPCResponse<unknown>[]>
Implementation of
sendNotification()
sendNotification(): Promise<void>;Sends a JSON-RPC notification
Returns
Promise<void>
Implementation of
AxMCPTransport.sendNotification
takeRequestMetadata()
takeRequestMetadata(): Readonly<{
retryCount?: number;
}>;One-shot metadata for the most recently completed request ID.
Returns
Readonly<{
retryCount?: number;
}>