# Codex

The two commands, and where the prompt goes in Codex.

## Add the server

Run this once in a terminal:

```
codex mcp add mana --url https://mcp.mana.scalarmind.com
codex mcp login mana
```

The second command opens your browser for the sign-in and the confirmation page. Codex registers itself anew at each `login`, so a later `login` shows the confirmation page again; run it only when Codex reports the connection lost.

`codex mcp list` shows it. The `mana_*` tools appear from the next session.

## Then paste the prompt

Paste the prompt from [Start here](/docs) into a session. It tells the agent to read the standing instructions, which carry the rules your organization keeps.

## When the connection is lost

The client signs you in through the browser once and shows one confirmation page with its name and the address it returns to. The token it holds renews itself. When the client says the connection was lost, connect it again; nothing in the store is lost.

## Removing it

[Remove Mana](/docs/remove) undoes both the connection and anything the agent added to your instruction files.
