# withMcpGrant

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

## Signature

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

## Parameters

- `meta` (Record<string, unknown> | undefined)
- `data` (DelegationMessageData)

## Returns

`Record<string, unknown>`

Runs locally, with no request to the API.
