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

# Codex

> Add PostChamp to Codex with one command or a config file entry.

Add PostChamp to Codex with one command or a config file entry. The connection URL is the same for every client:

```text
https://api.postchampai.com/api/v1/mcp
```

> [!NOTE]
>
> The vendor page documents adding a server and signing in. It does not list the logout and remove commands: run `codex mcp --help` to see the ones your version has.

## Before you start

* Codex CLI, the IDE extension or the ChatGPT desktop app. They share one configuration.
* A PostChamp account on a plan that includes assistants, with the owner or admin role in the workspace you want to share. See [Authentication](/mcp/authentication.md).

## Connect Codex

**Step 1**

Add the server with the first command below.

**Step 2**

Sign in: run `codex mcp login postchamp`. On a machine with no browser add `--no-browser`, open the printed URL elsewhere, then paste the full redirect URL back into the terminal.

**Step 3**

Approve in the browser: sign in to PostChamp and choose the workspaces to share.

**Step 4**

Or edit `~/.codex/config.toml` yourself. OAuth is the default sign-in mode, so the table below is enough. A trusted project can use `.codex/config.toml` instead.

## Command line

```bash
codex mcp add postchamp --url https://api.postchampai.com/api/v1/mcp
codex mcp login postchamp
codex mcp list
```

## Configuration file

Add this to `~/.codex/config.toml`:

```toml
[mcp_servers.postchamp]
url = "https://api.postchampai.com/api/v1/mcp"
enabled = true
```

## Check the connection

Ask:

```text
Use PostChamp to list my workspaces.
```

This reads your workspaces, costs nothing and changes nothing. Then try one of these:

* Plan next week: three posts, one on each of my main topics. Show me the plan before you schedule anything.
* Write a LinkedIn post about what I learned from my last client project, in my voice.
* Check my newest draft for filler and weak lines, then suggest fixes.
* How did my posts do over the last 30 days? What worked best?

## Disconnect

* Sign out with `codex mcp logout postchamp`, then remove the server with `codex mcp remove postchamp`. Removing alone does not revoke the sign-in at PostChamp.
* You can also disconnect in PostChamp: open Settings and choose Assistants.

## Troubleshooting

> [accordion] Codex lists the server but no tools.
>
> You are not signed in. Run `codex mcp login postchamp`.

> [accordion] The sign-in cannot open a browser.
>
> Use `codex mcp login postchamp --no-browser` and paste the redirect URL back.

> [accordion] A company policy blocks the server.
>
> Enterprise admins can restrict which MCP servers Codex may use. Ask your admin to allow it.

> [accordion] The browser sign-in says I cannot connect.
>
> Only owners and admins of a workspace can connect an assistant to it, and the plan must include assistants. Sign in with an account that has that role. Check the account in Settings, Members.

## FAQ

> [accordion] Does a post Codex writes cost credits?
>
> Saving a post that Codex wrote itself is free. Credits are used only when PostChamp does the AI work, such as writing a post or making an image.

> [accordion] Where is the configuration kept?
>
> In `~/.codex/config.toml`, shared by the CLI, the IDE extension and the ChatGPT desktop app.

## Related

> [card] [Authentication](/mcp/authentication.md)
>
> How sign-in, consent and revocation work.

> [card] [Tool reference](/mcp/tools/index.md)
>
> Every tool the assistant can call.
