Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/mcp / / deriveServerIdentity

Function: deriveServerIdentity()

ts
function deriveServerIdentity(transport, serverInfoName?): ServerIdentity;

Defined in: packages/mcp/src/helpers/identity.ts:26

Compute the canonical ServerIdentity for the supplied transport. The id is suitable for use as a registry key and as the operator-facing label in audit rows + trace attributes.

Parameters

ParameterType
transportMCPTransportConfig
serverInfoName?string

Returns

ServerIdentity

Stable