---
title: "Code mode support in MCP clients: 2 of 31, 8 partly"
description: "2 of 31 MCP clients support Code mode: goose and Pi. Claude Code, OpenClaw, Amp, Droid, Kilo Code, opencode, Qwen Code and Codex support it partly. Every cell links to a dated source."
canonical_url: https://mcpclients.dev/features/code_mode/
last_updated: 2026-11-27
---

# Which MCP clients support Code mode?

> 2 of 31 MCP clients support Code mode: goose and Pi. Claude Code, OpenClaw, Amp, Droid, Kilo Code, opencode, Qwen Code and Codex support it partly.

The client lets the model write a script that calls MCP tools, instead of making one tool call per step.

- Defined in: Client feature (described by Cloudflare and Anthropic) (https://www.anthropic.com/engineering/code-execution-with-mcp)
- 2 of 31 clients support it, 8 partly.
- Follow this feature: https://mcpclients.dev/features/code_mode/changelog.xml (Atom), https://mcpclients.dev/features/code_mode/changelog.json (JSON)

## Yes (2)

| Client | Tier | Evidence | Source | Checked | Shipped |
| --- | --- | --- | --- | --- | --- |
| [goose](https://mcpclients.dev/clients/goose/) | A | Code Mode is a documented built-in extension, off by default but enabled by a documented setting and not marked experimental, so y under the methodology. It is defined in platform_extensions/mod.rs:159-162 with default_enabled false, and the user turns it on in settings or goose configure. It exposes list_functions, get_function_details and execute_javascript running in a Boa JavaScript context (code_execution.rs:277-279). Unchanged in 1.57.0, still the latest release on 2026-11-06. | https://github.com/aaif-goose/goose/blob/30bba95105e59bc3e7df624cf6b4d433690cfe12/documentation/docs/guides/managing-tools/code-mode.md#L25 | 2026-11-06 | 2025-12-18 (1.17.0) |
| [Pi](https://mcpclients.dev/clients/pi/) | A | Docs: docs/mcp.md:195 makes codemode the default MCP exposure. :204 says Pi activates the codemode tool (model-written JavaScript in a QuickJS sandbox) when such a server connects. The probe listed the server as codemode. Unchanged in v1.5.0 (mcp.md:197). | https://github.com/earendil-works/pi/blob/4a080252f06caf63a525d7873c5d94d3c23887e0/packages/coding-agent/docs/mcp.md#L195 | 2026-11-06 | 2026-09-29 (0.99.0) |

## Partial (8)

| Client | Tier | Evidence | Source | Checked | Shipped |
| --- | --- | --- | --- | --- | --- |
| [Claude Code](https://mcpclients.dev/clients/claude-code/) | S | Docs: Code Mode ships experimental and off by default. Turned on with CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1; needs v2.1.323 or later, the Anthropic API and an interactive terminal. Changelog 2.1.323 adds Code Mode, an experimental opt-in in which Claude writes JavaScript to call its tools. The 2.1.325 bundle still refuses it when the server-side gate "isn't open to your account yet". The 2.1.319 bundle already carried it behind the same flag, so the first release is not dated. | https://code.claude.com/docs/en/code-mode | 2026-11-16 |  |
| [OpenClaw](https://mcpclients.dev/clients/openclaw/) | A | Docs call Code Mode 'an experimental OpenClaw agent-runtime feature', so it is experimental and mostly opt-in. The model sees exec and wait and writes JavaScript that searches, describes and calls the hidden tool catalog (MCP tools included, src/agents/code-mode-mcp-api.ts). With tools.codeMode absent it engages only for models marked as preferred Code Mode performers; otherwise it is turned on in Settings, Agents and Tools, Labs, so p. | https://docs.openclaw.ai/tools/code-mode | 2026-11-23 | 2026-05-14 (2026.5.12) |
| [Amp](https://mcpclients.dev/clients/amp/) | A | Docs: agents call saved remote MCP tools by writing code for the code_exec tool, so code mode is partial. Definitions of the saved remote tools are stored on ampcode.com. The code imports the server as a module. Servers in local amp.mcpServers use different rules, so this is one of two modes. | https://ampcode.com/docs/customize/mcp | 2026-11-22 |  |
| [Droid](https://mcpclients.dev/clients/droid/) | A | Source: the Script tool calls MCP tools from JavaScript, but in the 1.12.1 binary it is off unless the model is listed server-side or a hidden exec flag forces it. Script calls tools as tools.<server>.<tool>. The execution mode is direct_only unless the model is in the script_tool_models config (default empty list) or the hidden exec flag --tool-execution-mode script-only overrides it. This is the same logic as the 1.6.0 binary. Release notes mention Script from CLI v0.233.0 (October 3, 2026, Script output trimming), but the MCP docs do not. | https://registry.npmjs.org/@factory/cli-linux-x64/1.12.1 | 2026-11-16 |  |
| [Kilo Code](https://mcpclients.dev/clients/kilo-code/) | A | Source: code mode is experimental and off by default, behind KILO_EXPERIMENTAL_CODE_MODE. The KILO_EXPERIMENTAL umbrella or experimental.code_mode in config also turns it on. When on, session/tools.ts:471 stops exposing MCP tools directly and tool/code-mode.ts routes them through a script runtime. | https://github.com/Kilo-Org/kilocode/blob/2aa002cc0ab69d89f591f8174631152efa720877/packages/opencode/src/effect/runtime-flags.ts#L58 | 2026-11-22 | 2026-08-13 (7.4.22) |
| [opencode](https://mcpclients.dev/clients/opencode/) | B | V1 1.19.5 has code mode behind OPENCODE_EXPERIMENTAL_CODE_MODE (or the OPENCODE_EXPERIMENTAL umbrella), off by default. When on, session/tools.ts:388 stops exposing MCP tools directly and routes them through execute. V2 v2.2.5 turns it on by default (packages/core/src/tool.ts:274), but V2 ships only through the separate opencode.ai/v2/install script and Homebrew tap. The default installer and npm latest stay on V1 (1.19.5 checked, 1.19.6 now latest). The 1.19.6 release notes (2026-11-17) list no MCP or code mode change. | https://github.com/anomalyco/opencode/blob/810c0eba1a7348036f8bdf61e6632d0c36c6876c/packages/opencode/src/effect/runtime-flags.ts#L48 | 2026-11-06 | 2026-07-06 (1.17.14) |
| [Qwen Code](https://mcpclients.dev/clients/qwen-code/) | B | Settings doc: tools.codeModeOnly enables experimental Code Mode. Tools are discovered with tool_search and invoked through an exec script. It defaults to false and needs a restart. | https://github.com/QwenLM/qwen-code/blob/99fcf89892f1a3a8027c75468546c7e7be906245/docs/users/configuration/settings.md?plain=1#L407 | 2026-11-22 | 2026-09-14 (0.23.4) |
| [Codex](https://mcpclients.dev/clients/codex/) | C | features.code_mode is under development and off by default. It is still Stage::UnderDevelopment with default_enabled false in features/src/lib.rs at rust-v0.169.0 (key code_mode, lib.rs#L1305-L1310). | https://developers.openai.com/codex/config-reference | 2026-11-16 | 2026-03-11 (0.114.0) |

## No (21)

| Client | Tier | Evidence | Source | Checked | Shipped |
| --- | --- | --- | --- | --- | --- |
| [VS Code](https://mcpclients.dev/clients/vs-code/) | S | Source: at tag 1.144.0, no "execute_javascript" or code mode in contrib/mcp or extensions/copilot. The only "code_mode" hit is a generated type for the separate Codex agent host (agentHost/node/codex/protocol/generated/ToolExposureSurface.ts). Unchanged at 1.145.1. | https://github.com/microsoft/vscode/tree/2c33b50b16c472efe58357d1d2a8a5414bc23fbf/src/vs/workbench/contrib/mcp | 2026-11-06 |  |
| [Claude app](https://mcpclients.dev/clients/claude-app/) | A | Neither the connector docs nor the Claude Desktop and Cowork changelog mention a code mode for MCP tools. The changelog check runs through v4.23118.0 (2026-11-05). The Claude Code 2.1.318 experiment is not exposed in the app. | https://claude.com/docs/cowork/changelog | 2026-11-06 |  |
| [Antigravity](https://mcpclients.dev/clients/antigravity/) | A | Docs: the only scripting feature, Dynamic Workflows, runs Python that starts agents, not MCP tool calls. The script API is phase, log, agent, parallel, pipeline and trajectory; each agent then makes its own tool calls. No execute_code or script runner over MCP tools in the 2.35.2 language_server strings. | https://antigravity.google/docs/dynamic-workflows | 2026-11-27 |  |
| [Copilot CLI](https://mcpclients.dev/clients/copilot-cli/) | A | Not documented in the changelog or docs, and no code mode feature in the 1.0.112 bundle. The 1.0.106 copilot help config lists tool search but no code mode setting. | https://github.com/github/copilot-cli/blob/main/changelog.md | 2026-11-16 |  |
| [Kiro](https://mcpclients.dev/clients/kiro/) | A | Docs: the MCP docs and tool pages describe one tool call per step, with no code mode; not documented. | https://kiro.dev/docs/mcp/ | 2026-11-22 |  |
| [Hermes Agent](https://mcpclients.dev/clients/hermes-agent/) | A | The execute_code tool runs Python scripts that call Hermes tools over RPC, but the docs state scripts cannot call MCP tools. SANDBOX_ALLOWED_TOOLS (tools/code_execution_tool.py:40) lists only web_search, web_extract, read_file, write_file, search_files, patch and terminal. | https://github.com/NousResearch/hermes-agent/blob/caafe5389ae585ef77387a962aee05b1bcf17029/website/docs/user-guide/features/code-execution.md#L153 | 2026-11-23 |  |
| [Cursor](https://mcpclients.dev/clients/cursor/) | A | No "execute_javascript" or code mode in the 3.27.22 cursor-mcp or cursor-agent-exec bundles. None in cursor.com/docs/mcp either. The 3.29.9 bundles and the changelog through 2026-11-05 add none. | https://downloads.cursor.com/production/b1aa50cb6db84fd3e8c808259cb172ea73425c1f/linux/x64/Cursor-3.27.22-x86_64.AppImage | 2026-11-06 |  |
| [ChatGPT](https://mcpclients.dev/clients/chatgpt/) | A | Programmatic Tool Calling is documented only for the OpenAI API. The doc describes it as "Let models compose and run JavaScript that orchestrates tool calls". No ChatGPT app doc or release note through 2026-11-05 offers it for MCP tools. | https://developers.openai.com/api/docs/guides/tools | 2026-11-06 |  |
| [Open WebUI](https://mcpclients.dev/clients/open-webui/) | B | The MCP docs page does not mention code mode or a way for the model to script MCP tool calls, so there is no code mode. Grep for code mode and code_mode in CHANGELOG.md at tag v0.13.4 finds 0 hits. MCP tools reach the model as ordinary tool definitions, or through search_tools and call_tool when Tool Search is on. | https://docs.openwebui.com/features/extensibility/mcp/ | 2026-11-23 |  |
| [Grok Build](https://mcpclients.dev/clients/grok-build/) | B | No tool in the 1.0.77 binary runs model-written code against MCP tools. MCP calls go through use_tool one at a time. The docs and changelog do not mention a code or script mode. | https://x.ai/cli/grok-1.0.77-linux-x86_64 | 2026-11-08 |  |
| [Zed](https://mcpclients.dev/clients/zed/) | B | Source: at tag v1.26.2, a grep of crates/*.rs finds no code mode for MCP. Grep for "execute_javascript", "code_mode", "codemode": no MCP hit (only OpenCodeModel names in the opencode provider). Still none at v1.27.0: crates/agent/src/tools has no script or code execution tool. | https://github.com/zed-industries/zed/tree/c4273271092b0287f7d181f616bd5171e0a2f70c/crates/context_server | 2026-11-06 |  |
| [Auggie](https://mcpclients.dev/clients/auggie/) | C | The MCP docs document no script-calling code mode. They describe only direct tool calls and the find-tool and execute-tool meta-tools. Those meta-tools run one MCP tool at a time. | https://docs.augmentcode.com/cli/integrations | 2026-11-22 |  |
| [Windsurf](https://mcpclients.dev/clients/windsurf/) | C | Source: no execute_javascript or code execution over MCP tools in the 3000.11.234 binary. The "code_mode" strings and the changelog's "Code mode" are the permission mode next to Ask, Plan, Smart and Bypass. The changelog through 3.11.238 adds no MCP scripting. | https://static.devin.ai/cli/3000.11.234/devin-3000.11.234-x86_64-unknown-linux.tar.gz | 2026-11-06 |  |
| [Cline](https://mcpclients.dev/clients/cline/) | C | A grep of apps and sdk at the v4.1.26 tag for code mode and execute_javascript finds no MCP code mode. V4.1.26 is still the latest tag on 2026-11-06. | https://github.com/cline/cline/tree/a459f1d04dea030833b558be645011ab739c463b/apps | 2026-11-06 |  |
| [Gemini CLI](https://mcpclients.dev/clients/gemini-cli/) | C | No code mode or execute-code tool in packages/core at v0.66.0, and still none at v0.68.0. | https://github.com/google-gemini/gemini-cli/tree/5a5c7180ff3f0a02511f54b54db7f228d4982a30/packages/core/src/tools | 2026-11-16 |  |
| [Warp](https://mcpclients.dev/clients/warp/) | C | Docs: the MCP docs page describes tool calls through the agent only. The page lists an allowlist and denylist, and the agent decides. No script-calls-tools mode in the docs or in the open-source client at f8223ce. | https://docs.warp.dev/agents/capabilities/mcp | 2026-11-22 |  |
| [Mistral Vibe](https://mcpclients.dev/clients/mistral-vibe/) | C | Docs: the MCP Connectors docs describe per-function tool calls with approvals; no code mode over connector tools is documented. | https://docs.mistral.ai/vibe/work/connectors/mcp-connectors | 2026-11-22 |  |
| [JetBrains AI Assistant](https://mcpclients.dev/clients/jetbrains-ai-assistant/) | C | Docs: tools are invoked automatically by the chat or manually with a / command, with no script-calls-tools mode; not documented. | https://www.jetbrains.com/help/ai-assistant/mcp.html | 2026-11-22 |  |
| [LM Studio](https://mcpclients.dev/clients/lm-studio/) | C | Docs: the MCP docs page describes mcp.json servers and tool calls only; no code mode is documented. | https://lmstudio.ai/docs/app/mcp | 2026-11-22 |  |
| [Continue](https://mcpclients.dev/clients/continue/) | D | A grep of core and extensions/cli at the final commit for code mode and execute_javascript finds nothing. The repository is read-only after the final 2.0.0 release. | https://github.com/continuedev/continue/tree/5522c6f44ca0ac3528b37244818fbfa39b5af470/core/context/mcp | 2026-11-06 |  |
| [Muse Code](https://mcpclients.dev/clients/muse-code/) | D | Docs: the extending docs expose MCP tools to the model directly, with no mode that runs model-written code against them. | https://dev.meta.ai/docs/muse-code/extending | 2026-11-08 |  |

## Changes

- 2026-11-06 · Feature · [Claude Code](https://mcpclients.dev/clients/claude-code/) rechecked: Code mode no → partly
- 2026-10-30 · Feature · [Droid](https://mcpclients.dev/clients/droid/) rechecked: Code mode no → partly
- 2026-10-30 · Feature · [goose](https://mcpclients.dev/clients/goose/) rechecked: Code mode partly → yes
- 2026-09-29 · Feature · [Pi](https://mcpclients.dev/clients/pi/) ships Code mode in 0.99.0 ([source](https://github.com/earendil-works/pi/releases/tag/v0.99.0))
- 2026-09-14 · Feature · [Qwen Code](https://mcpclients.dev/clients/qwen-code/) ships Code mode (partly) in 0.23.4 ([source](https://github.com/QwenLM/qwen-code/releases/tag/v0.23.4))
- 2026-08-13 · Feature · [Kilo Code](https://mcpclients.dev/clients/kilo-code/) ships Code mode (partly) in 7.4.22 ([source](https://github.com/Kilo-Org/kilocode/releases/tag/v7.4.22))
- 2026-07-06 · Feature · [opencode](https://mcpclients.dev/clients/opencode/) ships Code mode (partly) in 1.17.14 ([source](https://github.com/anomalyco/opencode/releases/tag/v1.17.14))
- 2026-05-14 · Feature · [OpenClaw](https://mcpclients.dev/clients/openclaw/) ships Code mode (partly) in 2026.5.12 ([source](https://github.com/openclaw/openclaw/releases/tag/v2026.5.12))
- 2026-03-11 · Feature · [Codex](https://mcpclients.dev/clients/codex/) ships Code mode (partly) in 0.114.0 ([source](https://github.com/openai/codex/releases/tag/rust-v0.114.0))
- 2025-12-18 · Feature · [goose](https://mcpclients.dev/clients/goose/) ships Code mode in 1.17.0 ([source](https://github.com/aaif-goose/goose/releases/tag/v1.17.0))

### Which MCP clients support Code mode?

2 of 31 MCP clients support Code mode: goose and Pi. Claude Code, OpenClaw, Amp, Droid, Kilo Code, opencode, Qwen Code and Codex support it partly.

### What is Code mode in MCP?

The client lets the model write a script that calls MCP tools, instead of making one tool call per step. It is defined in Client feature (described by Cloudflare and Anthropic): https://www.anthropic.com/engineering/code-execution-with-mcp

Full scorecard: https://mcpclients.dev/
