loading…
Search for a command to run...
loading…
An MCP server that aggregates multiple upstream MCP tools into a single 'codemode' tool for unified orchestration and execution. It enables agents to run genera
An MCP server that aggregates multiple upstream MCP tools into a single 'codemode' tool for unified orchestration and execution. It enables agents to run generated code in an isolated sandbox to interact with various connected services through a single interface.
An MCP (Model Context Protocol) multiplexer that connects to upstream MCP servers and exposes all their tools through a single sandbox_eval_js tool for unified orchestration and execution. Runs on Node.js and Deno. Bun is not officially supported — if you need to use Bun, ensure a container runtime (Docker or Podman) or Deno is available in your PATH so the bridge can delegate code execution to a supported executor.
sandbox_eval_js tool.mcp.json for changes and hot-reloads upstream connections without restarting.# Run without installing
npx @ruifung/codemode-bridge
# Or install globally
npm install -g @ruifung/codemode-bridge
codemode-bridge run
codemode-bridge config add kubernetes --type stdio --command "npx" --args "-y,kubernetes-mcp-server@latest"
codemode-bridge run
npx @ruifung/codemode-bridge.The bridge exposes three tools for discovering what's available before writing sandbox_eval_js code:
| Tool | Description |
|---|---|
sandbox_get_functions |
List all available functions grouped by server. Accepts an optional server filter. |
sandbox_get_function_schema |
Get the TypeScript type definition for a specific function by name. |
sandbox_search_functions |
Keyword-search all function names and descriptions. Returns matching functions with their schemas. |
Use these before calling sandbox_eval_js to find the correct function name and parameter types.
sandbox_eval_js ToolThe sandbox_eval_js tool executes JavaScript in a sandboxed environment with access to all upstream functions via the codemode object. You can write either a function body or a complete async arrow function:
// Function body (auto-wrapped):
const result = await codemode.server_name__function_name({ param: "value" });
return result;
// Or as a complete async arrow function:
async () => {
const result = await codemode.server_name__function_name({ param: "value" });
return result;
}
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"code-mode-bridge": {
"command": "npx",
"args": []
}
}
}