This server (and a full 3-city HA cluster) was autonomously provisioned, hardened, and deployed using Code Mode. One MCP server replaced 86 individual tools. The model writes code instead of picking from a menu.
Traditional MCP servers turn every API call into a separate tool. Dozens (or hundreds) of tool definitions get stuffed into the context window on every request — before the model has even seen your question. Want to list servers, pull metrics in parallel, and SSH into several? Dozens of round-trips and a massive token bill.
Inspired by Sunil Pai's talk at Cloudflare. Instead of a giant menu of tools, expose three meta-tools. The model writes JavaScript against a sandbox with real capabilities.
The model already knows how to write code. Give it the right primitives and it will compose, iterate, and handle state without you hand-holding every step.
Any frontier model that can write JavaScript can drive serious infrastructure through Code Mode.
| Protocol | Port | Source | Action | Description |
|---|---|---|---|---|
| TCP | 22 | 0.0.0.0/0 | ACCEPT | Allow SSH |
| TCP | 80 | 0.0.0.0/0 | ACCEPT | Allow HTTP |
| TCP | 443 | 0.0.0.0/0 | ACCEPT | Allow HTTPS |
| ICMP | — | 0.0.0.0/0 | ACCEPT | Allow ping |
| TCP | * | 0.0.0.0/0 | DROP | Deny all other TCP |
| UDP | * | 0.0.0.0/0 | DROP | Deny all other UDP |
Curious what Code Mode + serious Australian infrastructure can do for your workloads? Book a time.