Agent harnesses

Connect Codex CLI

OpenAI · Apache-2.0

SupportedOAuth 2.1API key

OpenAI's open-source terminal agent. Remote MCP servers are declared in config.toml, with codex mcp login for OAuth sign-in.

1 · Choose the MCPs to connect

2 · How should it authenticate?

3 · Add to ~/.codex/config.toml

[mcp_servers.deepinsights_mospi]
url = "https://marketplace-gateway-pef65a33ta-el.a.run.app/mospi/mcp"
# then: codex mcp login deepinsights_mospi
  1. 1.OAuth: run codex mcp login <name> once per server.
  2. 2.API key: export DEEPINSIGHTS_MK_KEY=mk_… in your shell profile.

4 · Create it as an app

Save this harness + MCP setup to your account. You get a workbench with a live test chat over the combined tool surface — the exact gateway endpoints, auth and tools Codex CLI will use, metered to your own quota.

5 · Or test each MCP on its own

Each playground's Chat and Tools pages exercise exactly the tools your harness will see — same servers, same gateway. Verify a query there first, then run it from Codex CLI.

Agent harnesses