From 9aefa74a9f572e123095287e64f559238272f807 Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Sat, 9 May 2026 21:11:40 +0530 Subject: [PATCH] feat(mcp): add codex preset for built-in MCP server discovery MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- hermes_cli/mcp_config.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hermes_cli/mcp_config.py b/hermes_cli/mcp_config.py index 5bc30aaa0c0..0e1e6c5a87d 100644 --- a/hermes_cli/mcp_config.py +++ b/hermes_cli/mcp_config.py @@ -31,7 +31,12 @@ logger = logging.getLogger(__name__) _ENV_VAR_NAME_RE = re.compile(r"^[A-Za-z_][A-Za-z0-9_]*$") -_MCP_PRESETS: Dict[str, Dict[str, Any]] = {} +_MCP_PRESETS: Dict[str, Dict[str, Any]] = { + "codex": { + "command": "codex", + "args": ["mcp-server"], + }, +} # ─── UI Helpers ───────────────────────────────────────────────────────────────