Skip to content

feat(mcp): add codex preset for built-in MCP server discovery - #27080

Closed
Master-Rensei wants to merge 1 commit into
NousResearch:mainfrom
Master-Rensei:feat/codex-mcp-preset
Closed

feat(mcp): add codex preset for built-in MCP server discovery#27080
Master-Rensei wants to merge 1 commit into
NousResearch:mainfrom
Master-Rensei:feat/codex-mcp-preset

Conversation

@Master-Rensei

Copy link
Copy Markdown

Summary

Adds codex to the MCP server presets registry so users can integrate Codex CLI as an MCP server with a single command:

hermes mcp add codex --preset codex

This spawns codex mcp-server as a stdio MCP server, and Hermes's native MCP client discovers Codex's tools (file operations, terminal, search, etc.) — making them available as first-class Hermes tools.

What This Does

6 lines in hermes_cli/mcp_config.py — adds a single preset entry to the existing _MCP_PRESETS registry:

"codex": {
    "command": "codex",
    "args": ["mcp-server"],
},

Changes

1 file changed, 6 insertions(+), 1 deletion(-)


Replaces closed PR #22663. Same commit, same diff.

Adds 'codex' to the _MCP_PRESETS registry so users can add it via

  Connecting to 'codex'...

  ✓ Connected! Found 2 tool(s) from 'codex':

    codex                                    Run a Codex session. Accepts configuration parameters matchi...
    codex-reply                              Continue a Codex conversation by providing the thread id and...

  Enable all 2 tools? [Y/n/select]:
  Cancelled. without manually specifying
the command and args.

Enables: codex mcp-server → Hermes native MCP client → Codex tools
available as first-class Hermes tools.
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have tool/mcp MCP client and OAuth comp/cli CLI entry point, hermes_cli/, setup wizard labels May 16, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #22679 (already merged). This PR reopens a previously closed fork branch, but the feature (codex MCP preset) was already landed via a salvage PR.

@Master-Rensei Master-Rensei closed this by deleting the head repository May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have tool/mcp MCP client and OAuth type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants