code-mode-tools
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.
code-mode-tools
MCP server that exposes code-mode sandbox execution as tools for any MCP-compatible client.
LLMs write TypeScript code that chains tool calls in an isolated sandbox — achieving 96% token savings vs sequential tool calling.
Quickstart
# Install globally
npm install -g code-mode-tools
# Create a config file with your tool sources
cat > tools.json << 'EOF'
{
"toolSources": [
{
"name": "fs",
"call_template_type": "mcp",
"config": {
"mcpServers": {
"filesystem": {
"transport": "stdio",
"command": "node",
"args": ["/path/to/server-filesystem/dist/index.js", "/allowed/dir"]
}
}
}
}
],
"timeout": 30000,
"memoryLimit": 128
}
EOF
# Run the server
code-mode-tools --config ./tools.jsonRelated MCP server: Code Mode MCP Server
MCP Tools
Tool | Description |
| Execute TypeScript code in the sandbox with pre-configured tools |
| List available sandbox tools with TypeScript interfaces |
The execute_code_chain tool description dynamically includes TypeScript interfaces for all registered tools, so the LLM knows what's available.
CLI Options
--config <path> Path to config JSON file (required)
--timeout <ms> Override execution timeout (default: 30000)
--memory-limit <mb> Override sandbox memory limit (default: 128)
--trace Enable execution tracingConfig Format
{
"toolSources": [
{
"name": "source-name",
"call_template_type": "mcp",
"config": {
"mcpServers": {
"server-name": {
"transport": "stdio",
"command": "node",
"args": ["path/to/server.js", "arg1"]
}
}
}
}
],
"timeout": 30000,
"memoryLimit": 128,
"enableTrace": false
}Client Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"code-mode": {
"command": "code-mode-tools",
"args": ["--config", "/path/to/tools.json"]
}
}
}Claude Code
Add to .mcp.json in your project root:
{
"mcpServers": {
"code-mode": {
"command": "code-mode-tools",
"args": ["--config", "./tools.json"]
}
}
}Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"code-mode": {
"command": "code-mode-tools",
"args": ["--config", "./tools.json"]
}
}
}Requirements
Node.js >= 22 (required by isolated-vm)
Build toolchain for native modules (node-gyp)
Architecture
MCP Client → stdio → code-mode-tools
├── McpServer (2 tools)
├── CodeModeEngine (persisted)
│ └── Tool sources (MCP servers, HTTP APIs)
└── isolated-vm sandboxRelated
n8n-nodes-utcp-codemode — n8n community node (same engine, for n8n workflows)
code-mode-core — Platform-agnostic SDK powering both packages
License
MPL-2.0
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
Email inboxes, webhook URLs, mock APIs and 170+ tools for coding agents over one MCP connection.
Build your own tools from chat: design, test and host them on a shareable MCP server URL.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Hosted MCP runtime where your agent publishes its own tools by tool call and keeps working.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to interact with MCP servers by writing TypeScript/JavaScript code instead of direct tool calls. Provides a code execution sandbox that accesses MCP servers through HTTP proxy endpoints.132MIT
- FlicenseNot gradedqualityDmaintenanceExecutes TypeScript code in a secure sandbox with IPC-bridged access to MCP tools like filesystem operations and network requests.3-
- FlicenseAqualityNot gradedmaintenanceEnables execution of TypeScript code to call MCP tools instead of direct tool calls, reducing token usage by up to 98% while orchestrating complex multi-tool workflows through secure sandboxed code execution.1-
- FlicenseNot gradedqualityDmaintenanceAggregates tools from multiple MCP servers, generates TypeScript definitions, and executes custom TypeScript scripts to orchestrate cross-server tool calls.-