Skip to content

@maxhealth.tech/prefab / renderer / McpTransport

Interface: McpTransport ​

Defined in: renderer/actions.ts:44

Properties ​

capabilities? ​

ts
readonly optional capabilities?: object;

Defined in: renderer/actions.ts:52

Transport capabilities discovered during handshake.

subscriptions? ​

ts
optional subscriptions?: boolean;

Methods ​

callTool() ​

ts
callTool(name, args): Promise<unknown>;

Defined in: renderer/actions.ts:45

Parameters ​

ParameterType
namestring
argsRecord<string, unknown>

Returns ​

Promise<unknown>


sendMessage() ​

ts
sendMessage(message): Promise<void>;

Defined in: renderer/actions.ts:46

Parameters ​

ParameterType
messagestring

Returns ​

Promise<void>


updateModelContext()? ​

ts
optional updateModelContext(update): Promise<void>;

Defined in: renderer/actions.ts:48

Replace what this view has told the model, without starting a turn.

Parameters ​

ParameterType
updateModelContextUpdate

Returns ​

Promise<void>


subscribe()? ​

ts
optional subscribe(uri, onData): () => void;

Defined in: renderer/actions.ts:50

Subscribe to a resource URI for push updates. Returns an unsubscribe function.

Parameters ​

ParameterType
uristring
onData(data) => void

Returns ​

() => void

Released under the MIT License.