Skip to content

IntegrationsMCP clients

Codex

Add Artiwright to Codex (CLI, IDE extension and app) as a local MCP server, or connect a remote one.

Codex.md

The Codex CLI, the Codex IDE extension and the app share one configuration, so you add Artiwright once.

You need: Node.js 22.13 or newer (prerequisites).

  1. Add the server:

    codex mcp add artiwright -- npx -y artiwright@latest mcp

    This writes it to ~/.codex/config.toml. A trusted project can also have its own .codex/config.toml.

  2. Give it time to start. Codex waits 10 seconds for a server by default, and the first start downloads Artiwright. Either run npx -y artiwright@latest version once beforehand, or raise the limit in ~/.codex/config.toml:

    [mcp_servers.artiwright]
    command = "npx"
    args = ["-y", "artiwright@latest", "mcp"]
    startup_timeout_sec = 60
  3. Check it’s connected:

    codex mcp list

    In a Codex session, /mcp lists Artiwright and its tools. In the IDE extension, it’s under the gear menu, MCP servers.

  4. Add the guides as skills (optional). The server tells the agent to read Artiwright’s full guide before its first document; installing it as a skill means Codex has it from the start:

    npx -y artiwright@latest skills install ~/.codex/skills

    Start a new session to pick it up.

Ask in plain words:

  • “Make a release-notes deck from the last ten commits, one slide per theme.”
  • “Build a workbook that estimates our cloud costs per service, with formulas for the totals.”

Finished files are saved in the folder Codex is working in, or where you ask. The agent tells you the path.

For an HTTP server, point Codex at its URL and name the environment variable that holds the token:

[mcp_servers.artiwright]
url = "https://artiwright.example.com/mcp"
bearer_token_env_var = "ARTIWRIGHT_TOKEN"
“MCP server failed to start” or a timeout

Run npx -y artiwright@latest version in a terminal. If it fails, install or update Node.js. If it works, raise startup_timeout_sec as shown above and start Codex again.

You have more than one Node.js installed (nvm, fnm, Volta)

The app may start an older Node.js than your terminal does, and Artiwright then fails or times out. Make Node.js 22 or newer your default (with nvm: nvm alias default 24), then restart the app. If it still starts the old one, give the server a PATH that starts with your Node.js folder (nvm which 24 shows it, without the final /node):

env = { PATH = "/Users/you/.nvm/versions/node/v24.21.0/bin:/usr/bin:/bin" }