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/e4219a44b7581a55a40d9dd62d2c281062ff078d/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/e4219a44b7581a55a40d9dd62d2c281062ff078d/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/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/event/mcpSource.ts#L75

Parameters

ParameterType
contextReadonly<AxEventSourceContext>

Returns

Promise<AxEventSourceHandle>

Implementation of

AxEventSource.start

Docs