mcpx · code mode for MCP
Every MCP server.
One daemon.
Scripts instead of schemas.
code modeone MCP configshare it on your tailnetreclaim context
mcpx puts every MCP server you already have behind one local daemon, and gives your agent a TypeScript client instead of 43 tool schemas. Write a script once, run it again for free; publish it as a named script when it earns its place.
Install
The installer downloads a published release tarball, verifies its checksum,
and puts mcpx on your PATH. Per-user by default:
~/.local/bin, no sudo.
curl -fsSL https://raw.githubusercontent.com/developing-today/code/main/pkgs/mcpx/scripts/install.sh | sh
System-wide (installs into /usr/local/bin; the script escalates only the copy with sudo):
curl -fsSL https://raw.githubusercontent.com/developing-today/code/main/pkgs/mcpx/scripts/install.sh | sh -s -- --system
Never sudo $(curl … | sh): that runs the installer unprivileged and
then executes its stdout as root. Prefer nix or the container? See
every channel and its real status.
Or hand it to your agent
One prompt is enough. The button copies the prompt together with the agent entry point, so the agent knows where to read next.
hey please one-shot setup mcpx right now
Agent entry point: pkgs/mcpx/AGENTS.md
Try it without installing anything
Simulated — runs in your browser.
This example calls a mock demo server in this page, through the
real generated mcpx client. No daemon, no install, nothing leaves the tab.
To run it for real, copy it as a command below — or run it against your own
daemon with "Run on my machine".
Local daemon — runs on your machine.
This example calls the mcpx daemon at the address below, through the real
generated mcpx client. That daemon must be running, listen on a fixed
daemon.port, and list this site's origin in
transport.allowedOrigins; if it cannot be reached, the output
says what to check instead of failing silently.
const echoed = await tools.demo.echo({ message: "hello from a script" });
console.log("demo.echo:", String(echoed));
How this example works, and what it deliberately cannot do →
Why you would install it
- Code modeTool calls become one script. The script is shareable,
reusable, and costs nothing to run again — keep it as a named script under
.mcpx/scripts/and run it withmcpx run. - Reclaim contextSchemas are pulled on demand:
mcpx lsover seven namespaces is about 171 tokens, and the story's worked task spends about 4,600 tokens total instead of loading every tool's schema. - Tame MCPOne config for CLI, plugin,
/v1and/mcp; bind the daemon to your tailnet address to share it; and declare scripts, APIs and binaries as tools that live in the same daemon.
Where next
The numbers on this page come from
the story; the install commands match
scripts/install.sh. Nothing here is a mock except the example,
which says so on its label.