Codex Integration Guide

Give Codex (VS Code) real-time access to Humanity documentation and examples using a custom MCP server.

1. Add Codex to VS Code

  • Open VS Code → Extensions.

  • Search for “Codex – OpenAI’s coding agent” (publisher: OpenAI).

  • Click Install.

  • If Codex doesn’t appear immediately, restart VS Code.

After install, you’ll see Codex in the left sidebar; you can also drag it to the right sidebar if you prefer.

2. Sign in (connect your account)

After installation, the extension will prompt you to sign in. You can use ChatGPT account. if extension does not show up in your sidebar, hit CTRL + SHIT + P and enter Codex:Open Codex Sidebar and click. The Codex chat window will be displayed.

3. Connect to Humanity Gitbook MCP

  1. At the top right side of the Codex chat window click on the gear icon and select MCP Settings → Open MCP Settings.

  2. Under Custom Server click Add Server.

  3. Choose a name and click on Streamable HTTP. Leave all other fields as default.

  4. For the URL insert https://docs.humanity.org/~gitbook/mcparrow-up-right and click Save.

  1. Make sure the server is active (switch button is on) and wait for the synchronization to complete.

4. Scope Codex's output

When prompting Codex, include:

  • A reference to the name of the MCP server you use to connect with Gitbook.

  • The desired outcome (e.g. OAuth login + preset verification).

Example:

Last updated