# Read an MCP sign-in request

URL: https://heaven.dev/docs/reference/account/mcp-request-view
Updated: 2026-11-21

Read your pending MCP sign-in request before deciding whether to approve it. The response includes the client name, its return address and the request's expiration.

`GET /v1/account/?view=mcp-request`

## Parameters

- `request` (string, required): Pending MCP sign-in request ID from the approval URL's `approve` query parameter.

## Returns

- `data` (object, always present): An MCP sign-in request awaiting approval.
  - `client_name` (string, always present): Name presented for the MCP client.
  - `domain` (string, always present): Client domain, derived from its return address for a self-registered client.
  - `expires_at` (string (date-time), always present): When this sign-in request expires.
  - `id` (string, always present): Sign-in request ID.
  - `registered` (boolean, always present): Whether the client registered its own name.
  - `returns_to` (string, always present): Sign-in return destination, as a domain or program name.

## Errors

Each code is explained in full at https://heaven.dev/docs/reference/errors.

| Code | Status | What happened |
|---|---:|---|
| `invalid` | 400 | An input is missing or invalid. |
| `unauthenticated` | 401 | The credential is missing, invalid, expired or revoked. |
| `denied` | 403 | The caller lacks permission for this action. |
| `not_found` | 404 | The resource is absent or inaccessible to this caller. |
| `conflict` | 409 | The request conflicts with the current resource state or an earlier request. |
| `over_capacity` | 409 | The request exceeds a resource or credential allowance. |
| `access_list_full` | 409 | The change would exceed the access-list allowance. |
| `rate_limited` | 429 | The caller's request rate exceeds its limit. |
| `busy` | 429 | Too much work is in progress to accept this request. |
| `unknown` | 503 | The outcome is unconfirmed; a change may have happened. |
| `unavailable` | 503 | The service or requested feature is unavailable. |

## Notes

- API key permission: `mcp-request view`.

## Examples

```sh tab="heaven CLI"
heaven mcp-request view REQUEST
```

```sh tab="SSH"
ssh cli@heaven.dev mcp-request view REQUEST
```

```sh tab="cURL"
curl "https://heaven.dev/v1/account/?view=mcp-request&request=0a5d2ccf-2f32-447b-aa2d-df5a22017b10" \
  -H "Authorization: Bearer $HEAVEN_API_KEY"
```

```json tab="MCP"
{ "tool": "mcp-request_view",
  "arguments": { "request": "0a5d2ccf-2f32-447b-aa2d-df5a22017b10" } }
```

Response:

```json title="Response excerpt"
{
  "version": 1,
  "data": {
    "client_name": "Claude Code",
    "domain": "agent.example",
    "expires_at": "2026-11-16T12:10:00Z",
    "id": "0a5d2ccf-2f32-447b-aa2d-df5a22017b10",
    "registered": true,
    "returns_to": "agent.example"
  }
}
```
