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

AxMCPEventSource

Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/event/mcpSource.ts#L55

Adapts MCP notifications and task snapshots into the generic event inbox.

Implements

Constructors

Constructor

TypeScript
new AxMCPEventSource(options: Readonly<AxMCPEventSourceOptions>): AxMCPEventSource;

Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/event/mcpSource.ts#L61

Parameters

ParameterType
optionsReadonly<AxMCPEventSourceOptions>

Returns

AxMCPEventSource

Properties

PropertyModifierType
idreadonlystring
requiresDurablereadonlyboolean

Methods

start()

TypeScript
start(context: Readonly<AxEventSourceContext>): Promise<AxEventSourceHandle>;

Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/event/mcpSource.ts#L75

Parameters

ParameterType
contextReadonly<AxEventSourceContext>

Returns

Promise<AxEventSourceHandle>

Implementation of

AxEventSource.start

Docs