Skip to main content

Type Aliases

ServiceJwk

Ƭ ServiceJwk: Object A P-256 private key as a JSON Web Key.

Type declaration


ServiceKey

Ƭ ServiceKey: Object A service credential: the private key bijection access credential create wrote, with the deployment it is installed on.

Type declaration


McpSessionHandle

Ƭ McpSessionHandle: Object One conversation’s session.

Type declaration

Functions

credentialId

▸ credentialId(x, y): string A credential’s identifier: the first 16 hexadecimal digits of the SHA-256 of key:<x>:<y>, as the deployment derives it.

Parameters

Returns

string

decodeServiceKey

▸ decodeServiceKey(text): ServiceKey Read the one-line credential bijection access credential create wrote.

Parameters

Returns

ServiceKey

encodeServiceKey

▸ encodeServiceKey(key): string The one-line form of a credential, for a secret store.

Parameters

Returns

string

generateServiceKey

▸ generateServiceKey(options): Object Create a credential of service and the public key to install on the deployment (POST /api/credentials/install). bijection access credential create does both; this is for tools that manage keys themselves.

Parameters

Returns

Object

signServiceToken

▸ signServiceToken(key, subject, options): string Sign a token under the service’s issuer: service for the service itself, or session:<id> for one of its issued sessions. The deployment verifies it against the installed credential.

Parameters

Returns

string

serviceClient

▸ serviceClient(options): Object Hold one credential of a service. credential is the one-line credential or its decoded form; module is where the deployment exports mcpModule (default mcp).

Parameters

Returns

Object