Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Codex

Add fastn to OpenAI Codex with one command, sign in, and build integrations from the Codex CLI or IDE extension.

Codex reads its MCP servers from ~/.codex/config.toml. The Codex CLI and the Codex IDE extension share that file, so adding fastn once covers both.

fastn's MCP server page with the Codex tile selected, showing the command codex mcp add fastn --url https://mcp.fastn.dev/fastn-workspace, the file ~/.codex/config.toml with an mcp_servers.fastn entry, and a note that the CLI and the VS Code extension read the same file
The Codex tile under Connect AI tools in fastn has the command and the file.

Add fastn

1

Run the command

Codex detects that fastn uses OAuth and starts the sign-in straight away. It prints Authorize fastn by opening this URL in your browser and opens the page.

2

Sign in to fastn

In the browser, sign in to fastn if asked. If you belong to more than one fastn org, pick the workspace Codex works in and click Connect. When the terminal prints Successfully logged in., you are done.

fastn's page titled Which workspace should Codex (chatgpt.com) use?, with The org selected in fastn chosen, a list of orgs and a Connect button
The org selected in fastn follows whichever org you have open in the fastn dashboard; picking a named org pins Codex to it.

If the browser does not open, copy the URL Codex printed. To sign in again later, run codex mcp login fastn.

3

Check it

fastn is listed with Status enabled and Auth OAuth:

The command writes this entry to ~/.codex/config.toml. You can also add it by hand and then run codex mcp login fastn:

Use it

Ask Codex to use fastn by name the first time. For example:

Codex calls fastnPlatform__whoami and answers with the name of the org you picked when signing in. From there, ask for the integration in one sentence. See Building from your AI agent for what happens next.

Troubleshooting

  • Codex answers from the wrong org. Run codex mcp logout fastn, then codex mcp login fastn, and pick the workspace again.

  • fastn's tools are missing in the IDE extension. The extension reads the same ~/.codex/config.toml. Restart the extension after adding fastn.

Last updated

Was this helpful?