# namera mcp logout

> Documentation index: [llms.txt](https://namera.ai/llms.txt).

Source: https://namera.ai/docs/cli/reference/mcp/logout

Revoke and disconnect an MCP connection.

Revoke and disconnect an MCP connection.

## Usage [#usage]

```sh
namera mcp logout --profile default
```

## Output [#output]

<div className="docs-response">

```text
OK MCP profile "default" disconnected.
-> Your wallets and imported session keys are unchanged.
```

</div>

Example output uses fixture accounts and hashes, captured with the CLI's output
formatters. Plain-text output is shown without terminal colors; your values and
relative expiry dates will differ.

With `--output json`:

<div className="docs-response">

```json
{ "profile": "default", "status": "signed-out" }
```

</div>

## Options [#options]

### --profile [#--profile]

- **Type:** `string`
- **Default:** `default`

Choose the MCP connection name. This is separate from ordinary CLI profiles,
whose default is `personal`. Use the same name for `serve`, `login`, `status`,
and `logout`.

### --host [#--host]

- **Type:** absolute API URL
- **Default:** `https://api.namera.ai`

Choose the API origin for this MCP connection. The origin and profile together
identify its saved credentials. Use HTTPS, or a loopback HTTP origin for local
development. `NAMERA_API_URL` does not override this option on MCP commands.

The command also accepts [global options](https://namera.ai/docs/cli/reference/global-options):
`--output pretty|json`, `--quiet`, and `--help`.

Logout attempts server-side revocation and clears local authority. If revocation
fails, the command reports an error; revoke the connection in the dashboard.
Accounts and imported signing keys are not removed. Use ordinary `namera logout`
to remove an ordinary CLI connection.

## Errors [#errors]

Failures exit nonzero and are written to stderr. With `--output json`, inspect
`error.code` and `error.nextStep`. See [Output and Errors](https://namera.ai/docs/cli/output-and-errors).
