# readMcpGrantKeyed

readMcpGrantKeyed in @provenanceauth/rails/mcp, Rails. The grant an MCP request's `_meta` carries and the key it was under, or null.

## Signature

```ts
readMcpGrantKeyed(meta: unknown, opts?: ReadMcpGrantOptions): { data: DelegationMessageData; key: McpGrantKey } | null
```

## Parameters

- `meta` (unknown)
- `opts` (ReadMcpGrantOptions, optional)

## Returns

`{ data: DelegationMessageData; key: McpGrantKey } | null`

Runs locally, with no request to the API.
