Skip to content

Instantly share code, notes, and snippets.

@DevloperHS
Created February 2, 2026 09:36
Show Gist options
  • Select an option

  • Save DevloperHS/0bd80665579d80fccac163192c5b6448 to your computer and use it in GitHub Desktop.

Select an option

Save DevloperHS/0bd80665579d80fccac163192c5b6448 to your computer and use it in GitHub Desktop.
FIX: Connect MCP to Codex IDE Extension (config.toml workaround)
[projects."/home/devloper_hs/codex-tests"]
trust_level = "untrusted"
[mcp_servers.playwright]
args = ["@playwright/mcp@latest"]
command = "npx"
enabled = false
[mcp_servers.rube]
enabled = true
url = "https://rube.app/mcp"
[mcp_servers.rube.http_headers]
Authorization = "Bearer <auth-token>"
I figured out a workaround, here is what you need to do:
- Visit any ide, download [codex extension](https://marketplace.visualstudio.com/items?itemName=OpenAI.chatgpt) and login.
- Now instead of creating a `.codex/config.toml` file, head to ⚙️ → MCP Settings → Open MCP Settings → + Add servers (Custom Servers)
- In the new page select Streamable HTTP and enter the following details (as i am using rube mcp):
- Name: name of MCP server (rube)
- URL: https://rube.app/mcp
- Headers:
- Key: Authorization
- Value: Bearer <your-rube-token> (copied from earlier)
- click **Save**
- Go back, refresh and click authenticate. Complete the authentication process and you are done!
Below is how this setup ups in config.toml file!
@Maaz0313-png
Copy link
Copy Markdown

But its marketplace doesn't have Playwright MCP.

@DevloperHS
Copy link
Copy Markdown
Author

Its not about rube, i just shared, how you can use it through config.toml file. You need to do it manually. But I think, now they might have fixed it. Rube was just part of some other step, but I shared how I did it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment