> ## Documentation Index
> Fetch the complete documentation index at: https://docs.migma.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Codex CLI

> Connect Migma MCP to Codex CLI.

Use Migma MCP in Codex CLI when a coding agent needs to prepare or send email work while editing an app.

## Local MCP

Add Migma to your Codex config:

```toml theme={null}
[mcp_servers.migma]
command = "npx"
args = ["-y", "@migma/mcp"]

[mcp_servers.migma.env]
MIGMA_API_KEY = "your_migma_api_key"
```

Restart active Codex sessions after changing config.

## Use with setup workflow

For app integration work, install the Migma plugin or setup skill too:

```bash theme={null}
codex plugin marketplace add MigmaAI/migma-skills
codex plugin add migma@migma-plugins
```

Then ask Codex to run the setup workflow:

```text theme={null}
Use Migma setup. Audit this app for email triggers, create missing Migma emails, and wire backend sends only after review.
```

## Verify

Ask Codex:

```text theme={null}
Use Migma MCP to list brands and call migma_get_capabilities.
```

## Next

<CardGroup cols={2}>
  <Card title="Setup Workflow" icon="plug" href="/setup">
    Add Migma to an existing app safely.
  </Card>

  <Card title="Skills" icon="wrench-screwdriver" href="/skills">
    Install Migma skills for Codex.
  </Card>
</CardGroup>
