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> | undefinedRequireddataDelegationMessageDataRequired
Returns
Record<string, unknown>
HTTP operation
Runs locally, with no request to the API.