Connect Codex

Give Codex access to your Wonderblok files over MCP. You add one block to Codex's config file, once per device.

You need Wonderblok installed (see Install Wonderblok) and Codex. MCP works the same on macOS, Windows and Linux. The paths below are macOS paths; on Windows and Linux, Settings in Wonderblok shows the command for your install.

Add the server

  1. 1

    Copy the setup from Wonderblok

    Open Settings in Wonderblok and find Agents (MCP). Under Connect an agent, choose Codex and copy the block it shows. It already holds the path to your copy of the app.

  2. 2

    Paste it into Codex's config

    Add the block to ~/.codex/config.toml. If Wonderblok is in Applications, it looks like this.

    ~/.codex/config.toml
    [mcp_servers.wonderblok]command = "/Applications/Wonderblok.app/Contents/MacOS/wonderblok-app"args = ["mcp"]
  3. 3

    Start a new Codex session

    Sessions started before you edited the config cannot see Wonderblok. Start a new one, keep a file open in Wonderblok, then send a test prompt.

    Prompt
    List my open Wonderblok files and describe the first frame.

Codex should call list_files, then get_tree. After its first call, Codex shows up under Connected agents in Settings, with the last tool it used.

What the config sets

[mcp_servers.wonderblok]
The server name your agent sees. Keep it, so docs and prompts match.
command
The Wonderblok app itself. It updates with the app, so there is no separate install.
args = ["mcp"]
Starts the app as an MCP server for Codex.

Rules before edits

Codex follows the same rule as every agent. Every edit it makes must carry the hash from get_guidelines. If your rules change, edits are refused until it reads them again. Read Tokens and guidelines for what is in them.

Codex can only reach files that are open in Wonderblok or that you pass by path. It never sees the rest of your computer through this server.

Troubleshooting

Agents appear in Settings per open file, so open a file in Wonderblok first. Then check that the block in config.toml matches the one in Settings, and start a new Codex session.

Was this page helpful?

Edited Nov 8, 2026