AxMCPAppBridge
Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/apps.ts#L186
Protocol and policy core for an MCP Apps host. Rendering remains host-owned; this bridge supplies the validated sandbox payload and JSON-RPC dispatch.
Constructors
Constructor
new AxMCPAppBridge(options: Readonly<AxMCPAppBridgeOptions>): AxMCPAppBridge;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/apps.ts#L191
Parameters
| Parameter | Type |
|---|---|
options | Readonly<AxMCPAppBridgeOptions> |
Returns
AxMCPAppBridge
Methods
handleViewMessage()
handleViewMessage(message: Readonly<AxMCPJSONRPCMessage>): Promise<undefined | AxMCPJSONRPCResponse>;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/apps.ts#L232
Parameters
| Parameter | Type |
|---|---|
message | Readonly<AxMCPJSONRPCMessage> |
Returns
Promise<undefined | AxMCPJSONRPCResponse>
loadResource()
loadResource(): Promise<AxMCPAppResource>;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/apps.ts#L201
Returns
Promise<AxMCPAppResource>
notifyHostContextChanged()
notifyHostContextChanged(context: Readonly<Record<string, unknown>>): Promise<void>;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/apps.ts#L282
Parameters
| Parameter | Type |
|---|---|
context | Readonly<Record<string, unknown>> |
Returns
Promise<void>
notifyToolCancelled()
notifyToolCancelled(reason: string): Promise<void>;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/apps.ts#L278
Parameters
| Parameter | Type |
|---|---|
reason | string |
Returns
Promise<void>
notifyToolInput()
notifyToolInput(arguments_: Readonly<Record<string, unknown>>): Promise<void>;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/apps.ts#L258
Parameters
| Parameter | Type |
|---|---|
arguments_ | Readonly<Record<string, unknown>> |
Returns
Promise<void>
notifyToolInputPartial()
notifyToolInputPartial(arguments_: Readonly<Record<string, unknown>>): Promise<void>;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/apps.ts#L266
Parameters
| Parameter | Type |
|---|---|
arguments_ | Readonly<Record<string, unknown>> |
Returns
Promise<void>
notifyToolResult()
notifyToolResult(result: Readonly<AxMCPToolCallResult>): Promise<void>;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/apps.ts#L274
Parameters
| Parameter | Type |
|---|---|
result | Readonly<AxMCPToolCallResult> |
Returns
Promise<void>
teardown()
teardown(reason: string): Promise<void>;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/apps.ts#L291
Parameters
| Parameter | Type |
|---|---|
reason | string |
Returns
Promise<void>