View as Markdown

SDK reference · Rails

withMcpGrant

withMcpGrant in @provenanceauth/rails/mcp, Rails. A request's _meta with the grant under (other keys kept; never the legacy key).

Signature

withMcpGrant(meta: Record<string, unknown> | undefined, data: DelegationMessageData): Record<string, unknown>

Parameters

metaRecord<string, unknown> | undefinedRequired
dataDelegationMessageDataRequired

Returns

Record<string, unknown>

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.