New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

codex-mcp-hotload

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codex-mcp-hotload

A stable MCP gateway for developing and hot-reloading child MCP servers in Codex.

Source
npmnpm
Version
0.2.2
Version published
Weekly downloads
22
83.33%
Maintainers
1
Weekly downloads
 
Created
Source

Codex MCP Hotload

Codex MCP Hotload connects one stable gateway to changing MCP servers

Develop MCP servers while keeping one stable connection in Codex. Add a server, rebuild it, and discover its current tools from the same conversation.

Download version 0.2.2

Use Node.js 20 or newer. Codex will download and run the exact published npm release from the configuration below. The latest version is 0.2.2. Pinning the version keeps future releases from changing your setup unexpectedly.

To install the same version globally for terminal use, run this command.

npm install --global codex-mcp-hotload@0.2.2

Connect Codex

Add this server entry to your Codex configuration file at ~/.codex/config.toml.

[mcp_servers.codex-mcp-hotload]
command = "npx"
args = ["--yes", "codex-mcp-hotload@0.2.2", "serve"]

Restart Codex once after adding the gateway. The gateway stays connected while you add and reload child servers.

Add your first server

In a terminal, register the command that starts your MCP server. Replace the example path and command with your own.

codex-mcp-hotload add my-server --cwd ~/Projects/my-server -- node dist/index.js

Then ask Codex to search for the child server tools and call one. When you change its code, rebuild the child and ask Codex to reload it. The gateway reads its configuration when tools are called, so a new child becomes available without restarting Codex or the gateway.

What it supports

The gateway connects to local stdio servers and Streamable HTTP servers. It lists and searches their tools, checks arguments against the current schema, and detects when a saved schema is stale. It can watch files and rebuild a child when configured. If a stdio child exits unexpectedly, the gateway retries it with bounded backoff and reports its status.

Tool hashes cover names, titles, descriptions, and input and output schemas. Reload results show the old and new tool details when something changes. Search for the tool before each call and pass the returned schemaHash. Calls without a hash or with an old hash are rejected.

Codex native reload is available when a supported app server endpoint can be reached. A standard Desktop session may not expose an endpoint for external control. The gateway features work without native reload.

Native Codex controls

Inspect or reload connected MCP servers through the Codex app server when that endpoint is available.

codex-mcp-hotload codex status
codex-mcp-hotload codex reload --server codex-mcp-hotload

Develop and verify

Contributors need Node.js 20 or newer.

npm ci
npm run typecheck
npm test
npm run build
node scripts/e2e-app-server.mjs

The end to end check starts an isolated Codex app server and a fixture MCP. It verifies tool discovery and calls in one thread, reloads an updated child, rejects a stale schema, and checks crash recovery. It does not make a model request or need a Codex account login.

Security

Only register child servers you trust because their commands run as your user. Keep credentials out of the configuration file and use environment variables for secrets. The gateway uses stdio and does not open a network listener.

See SECURITY.md for more information.

FAQs

Package last updated on 26 Sep 2026

Related posts