localforge-codemode
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
localforge-codemode
Code mode for LocalForge: an MCP server with one tool, execute. The
model sends a JavaScript program; the program calls LocalForge as await tools.localforge.<tool>({...}), and only its
return value goes back. Programs run in
@opencode/codemode (MIT), a confined JS-subset interpreter, so
they reach the outside only through those tools.
LocalForge itself is unchanged. This server starts its own LocalForge child with the same command and env as your Quick connection, so roots, denied paths and mode still apply to every inner call.
Setup
bun install
Copy-Item codemode.example.json codemode.json # then point mcpConfig at Quick's mcp_config.json
bun test
bun run typecheckAdd a Local MCP connection in Quick:
"localforge-codemode": {
"command": "C:\\Users\\<you>\\.bun\\bin\\bun.exe",
"args": ["run", "<repo>\\src\\server.ts"]
}Use the full bun.exe path: Quick's PATH may not include .bun\bin. Restart Quick after adding it.
Related MCP server: codemode-node
Config (codemode.json, or the path in CODEMODE_CONFIG)
Key | Default | |
| required | Quick's |
|
| Entry name in |
|
| Expose |
|
| Per program |
|
| Most a program may ask for with |
|
| Per program |
|
| Bigger replies are saved to |
|
| Keep it inside LocalForge's read roots so the model can read spilled files |
|
| List every argument's notes too (~4.1k instead of ~1.8k tokens); |
|
| One line per run: code, outcome, calls, |
batch, todo and workspace are never exposed: a program already runs calls in parallel or in order, and batch
would count as one call against maxToolCalls and the call log.
Safety
Quick approves the execute call as a whole, not each LocalForge command inside it. Give execute the same
permission rule as your LocalForge tools, or set allowShell: false. LocalForge's denied_paths does not block
shell commands, with or without this server.
Limits
A single regex match can't be interrupted by the timeout.
On timeout, an inner LocalForge call keeps running in LocalForge; only the program stops waiting for it.
If LocalForge exits, every later call fails until Quick restarts this server.
Spilled files and the history file are never cleaned up.
A call still running when a program ends shows as
interrupted; LocalForge may still finish it.Cancelling a call in Quick stops the program and sends no reply, but a LocalForge command already running keeps going.
With
maxOutputBytesunder about 1 KB, a spilled reply can still go over the cap.Relative paths in
codemode.jsonare resolved from the folder that holds it.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Beta code sandbox for agents. Run Python or JavaScript with no network and a 30 s timeout.
Ephemeral single-task tool forged from examples, sandbox-proven, task-bound, expiring by design.
Build Apps and run code in 30 languages — sandboxed, with persistent sessions for agent loops.
Execute code in 8 languages (Python, JS, TS, Go, Java, C++, C, Bash) in gVisor sandboxes.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceExposes a single execute tool so agents can discover, inspect schemas for, and compose calls to connected upstream MCP servers by writing JavaScript that runs in a fresh sandboxed QuickJS VM. Results from combined tool calls are returned as text or JSON, keeping large tool catalogs out of the agent's context.MIT
- AlicenseAqualityBmaintenanceEnables agents to accomplish multi-step work by writing a single sandboxed JavaScript program that drives shell, filesystem, HTTP, and every tool of any configured MCP server, returning only a small summary instead of raw JSON. This collapses dozens of advertised tool schemas into one tool, cutting per-request context by roughly 26× while keeping disabled upstream servers reachable.142 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to reach every configured MCP server through just three tools (search, describe, execute) and a sandboxed JavaScript runtime, so a model writes one short program instead of making dozens of tool calls. Runs without network, filesystem, or credential access, returning only the result.91 npm9MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code to run JavaScript scripts that call its existing tools as async functions, fanning out calls, filtering nested outputs, and returning only concise results while preserving permission checks and limited session state.MIT