OptionalcancelPublish a napplet's notifications/cancelled for its request handle,
with params.requestId mapped to the id the transport actually sent
(NAP-CVM #31 @ 28cf1bdb: a transport that maps request ids "consistently
maps request references such as cancellation"). Resolves false, without
publishing, when that request has already settled.
Optional for older transports. Without it the service warns once
(KEHTO_CVM_TRANSPORT_CANCEL, see docs/compatibility.md) and publishes
the cancellation unchanged.
Optionaloptions: CvmRequestOptionsOptionalexecution: { signal: ApprovalSignal }Release any session state held for a server (subscriptions, init cache).
Resolve public ContextVM server announcements matching the query.
Optionalquery: CvmDiscoverQueryOptionalexecution: { signal: ApprovalSignal }OptionaldisposeRelease all transport resources when the owning service is disposed.
Subscribe to server-pushed MCP messages not correlated to a single
request (e.g. notifications). Returns a handle whose close() detaches.
OptionalplanSelect discovery relay targets without network contact.
Optionalquery: CvmDiscoverQueryOptionalplanSelect operational relay targets without signing, encryption, or network contact.
OptionalpublishPublish an MCP notification or a response to a server request, and
resolve once it is published (NAP-CVM #31 @ 28cf1bdb: "After transport
publication, result without message"). No MCP response is awaited, and
the message is sent as given: a notification gets no id and a response
keeps the napplet's id. Rejects with relay timeout past timeoutMs.
Optional for older transports. Without it the service warns once
(KEHTO_CVM_TRANSPORT_PUBLISH, see docs/compatibility.md) and falls back
to CvmTransport.request, still answering without message.
Optionaloptions: CvmRequestOptionsOptionalexecution: { signal: ApprovalSignal }Send an MCP request-form message to a server and resolve with the matching MCP response.
Optionaloptions: CvmRequestOptionsOptionalexecution: CvmTransportExecution
Abstract ContextVM transport. Implementors own Nostr relay access, signing, encryption (CEP-4 gift wrap), JSON-RPC correlation, and MCP initialization.