Optional ReadonlyauthOAuth auth info for the current request, if the server is configured with an OAuth provider and the client has authenticated.
Optional ReadonlyloggingOptional logging context to propagate through layer calls.
Optionalids?: readonly Readonly<Record<string, string>>[]A stack of LogId objects carrying trace context across layer boundaries.
ReadonlyrequestHTTP request metadata for the current tool call.
The cross-layer props shape used throughout
@node-in-layers/mcp-server. Extends the baseCrossLayerPropsfrom@node-in-layers/corewith MCP-specific request context.This object is automatically built and merged by the server on every tool call — you should never construct it manually. Use
combineCrossLayerPropsorcreateCrossLayerPropsfrom@node-in-layers/coreif you need to merge additional data into an existing instance.Sources merged into every tool call (in order):
crossLayerPropssupplied by the AI client in the tool argumentscrossLayerPropsnested insideargs(used by feature-executor tools)requestInfofrom the HTTP transport (headers) andauthInfoif presentExample
See