Skip to content
BriskStack Study
Sign in
BriskStack StudySign in
Reference

Briefing, 24 November 2026: Code Mode and the "MCP is dead" claim

Briefing, 24 November 2026: Code Mode and the "MCP is dead" claim

What happened

In "MCP is dead. Long live the CLI" (28 February 2026), Eric Holmes argues against the Model Context Protocol (MCP): that models already know command-line tools from their training data, that those tools compose with jq and grep, and that they reuse login flows such as gh auth login (Holmes). A second argument points at code execution. Cloudflare's Code Mode (26 September 2025) converts MCP tools into a TypeScript API and asks the model to write code that calls it (Cloudflare). Anthropic (4 November 2025) gives an example in which the same approach cuts token use from 150,000 to 2,000 (Anthropic). In February 2026 Cloudflare put its API of more than 2,500 endpoints behind two tools, search and execute, for about 1,000 tokens, where it estimates a plain MCP server would need 1.17 million (Cloudflare).

The cost behind the claim is real. Anthropic counted 58 tools from five MCP servers taking about 55,000 tokens before a conversation starts, and GitHub's 35 tools alone about 26,000 (Anthropic). The proposed fix still runs on MCP: Code Mode's sandbox reaches MCP servers through bindings, and Anthropic presents MCP servers as code APIs. Meanwhile the specification of 28 July 2026 removed protocol sessions and the initialize handshake, and says servers should return tools/list in a deterministic order to improve prompt cache hit rates (MCP changelog). Treat every token figure here as a vendor example, not a benchmark.

What it changes for attack

With direct tool calls, an injected instruction has to talk the model into one call at a time, and each call is a visible turn. With code execution, one injection can steer the model into writing a program that makes many calls inside the sandbox. The target becomes what that code can reach. Check Point (7 August 2026) showed the extreme case: a prompt injection steered a model into writing TypeScript that triggered a use-after-free in workerd, the runtime behind Code Mode, and reached native code execution on a self-hosted build with the V8 sandbox off (Check Point). The authors say it does not work as it stands with the V8 sandbox on. Tool descriptions and results still enter the context, so tool poisoning stays.

What it changes for defense

The sandbox becomes the main control. In Cloudflare's first design, fetch() and connect() throw, and a supervisor holds the access tokens, so generated code never handles keys (Cloudflare). Its later server runs code with no file system and no environment variables, and outbound fetches are off by default (Cloudflare). Anthropic says code execution needs "sandboxing, resource limits, and monitoring" (Anthropic). Intermediate results stay in the execution environment by default: the model sees less sensitive data, but the transcript shows less of what happened, so log the generated code and every call it makes. Check Point says self-hosted workerd should move to v1.20260619.1 and that Cloudflare fixed its managed Workers (Check Point).

What the course revised

Nothing. Week 5's section Agent protocols: which one connects what already says that Code Mode and Anthropic's approach both run on MCP, that the question moves to what generated code can reach, and uses the Check Point chain as its example. It sends you to Week 19 for the sandbox.

Exercise: measure what a tool list costs (~45 min)

At the end you will know how many tokens one MCP server's tool list adds to every request. You need Node.js, uv and Python; no API key.

  1. In any local git repository, dump the tool list of the open-source git server with the MCP Inspector command line (Inspector smoke-testing guide, git server): npx -y @modelcontextprotocol/inspector@2.16.0 --cli uvx mcp-server-git==2026.11.18 --repository . -- --method tools/list --format json > tools.json Both versions are pinned to the ones this exercise was run with; the list is under result.tools (14 tools at these versions).
  2. Install the open-source tokenizer with pip install tiktoken (tiktoken) and count: python3 -c "import tiktoken; print(len(tiktoken.get_encoding('o200k_base').encode(open('tools.json').read())))" It is OpenAI's tokenizer, so the count is close to, not equal to, what another model sees.
  3. Divide by the number of tools and compare with Anthropic's GitHub figure above.
  4. On paper, list what an injected instruction could do with these tools as direct calls, then as one generated program with network access. Name three sandbox settings you would require for the second.

Sources