AxMCPReplayTransport Generated TypeScript API reference. typescript api api/reference build/apidocs/Class.AxMCPReplayTransport.md class AxMCPReplayTransport

AxMCPReplayTransport

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/transports/recordingTransport.ts#L154

Implements

Constructors

Constructor

TypeScript
new AxMCPReplayTransport(recording: readonly AxMCPTransportRecordingEntry[], options: Readonly<{
  strict?: boolean;
}>): AxMCPReplayTransport;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/transports/recordingTransport.ts#L159

Parameters

ParameterType
recordingreadonly AxMCPTransportRecordingEntry[]
optionsReadonly<{ strict?: boolean; }>

Returns

AxMCPReplayTransport

Properties

PropertyModifierTypeDescription
evaluationModereadonly"replay"Indicates whether optimizer/evaluation use can cause live side effects.

Methods

send()

TypeScript
send(message: Readonly<AxMCPJSONRPCRequest<unknown>>): Promise<AxMCPJSONRPCResponse<unknown>>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/transports/recordingTransport.ts#L168

Sends a JSON-RPC request or notification and returns the response

Parameters

ParameterTypeDescription
messageReadonly<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

AxMCPTransport.send


sendBatch()

TypeScript
sendBatch(messages: readonly Readonly<AxMCPJSONRPCRequest<unknown>>[]): Promise<readonly AxMCPJSONRPCResponse<unknown>[]>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/transports/recordingTransport.ts#L187

Sends one version-gated JSON-RPC batch on transports that support it.

Parameters

ParameterType
messagesreadonly Readonly<AxMCPJSONRPCRequest<unknown>>[]

Returns

Promise<readonly AxMCPJSONRPCResponse<unknown>[]>

Implementation of

AxMCPTransport.sendBatch


sendNotification()

TypeScript
sendNotification(): Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/transports/recordingTransport.ts#L193

Sends a JSON-RPC notification

Returns

Promise<void>

Implementation of

AxMCPTransport.sendNotification


takeRequestMetadata()

TypeScript
takeRequestMetadata(): Readonly<{
  retryCount?: number;
}>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/transports/recordingTransport.ts#L195

One-shot metadata for the most recently completed request ID.

Returns

Readonly<{ retryCount?: number; }>

Implementation of

AxMCPTransport.takeRequestMetadata

Docs