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

# Codex CLI

> Connect pwno-mcp to Codex CLI over HTTP or stdio.

Codex CLI uses `~/.codex/config.toml` for MCP configuration.

<CodeGroup>
  ```toml HTTP theme={null}
  [mcp_servers.pwno-mcp]
  url = "http://127.0.0.1:5500/mcp"
  ```

  ```toml stdio theme={null}
  [mcp_servers.pwno-mcp]
  command = "docker"
  args = [
    "run",
    "--rm",
    "-i",
    "--cap-add=SYS_PTRACE",
    "--cap-add=SYS_ADMIN",
    "--security-opt",
    "seccomp=unconfined",
    "--security-opt",
    "apparmor=unconfined",
    "-v",
    "/ABSOLUTE/PATH/TO/YOUR/PROJECT/workspace:/workspace",
    "ghcr.io/pwno-io/pwno-mcp:latest",
    "--stdio"
  ]
  ```
</CodeGroup>

## Check configuration

```bash theme={null}
codex mcp list
```

<Check>
  Once `pwno-mcp` appears in `codex mcp list`, you can start issuing normal agent prompts that reference the server by name.
</Check>
