跳到正文
TikTok · 搜「ai tools」· Duncan | AI Automation·· 3 天前AI 评分38

Cloudflare 推出 Code Mode:用 TypeScript 接口替代 MCP 工具定义

Cloudflare's Code Mode introduces a different way for AI agents to interact with large API collections. Instead of exposing thousands of individual tool definitions, it provides a TypeScript interface that lets the model write code, chain API calls, and execute them inside a sandbox. In its 2,500-endpoint example, Cloudflare reports reducing tool-definition context from approximately 1.17 million tokens to around 1,000. Anthropic has also introduced Programmatic Tool Calling, while Block's Goose project explores code-based tool orchestration. In this video, I break down what this means for MCP and the future of AI agents. Cloudflare's original article: https://blog.cloudflare.com/code-mode-mcp/ Dm LINK for the breakdown and Claude Code Club access. #Cloudflare #MCP #ClaudeCode #AIAgents

AI 导读

Cloudflare 推出 Code Mode,让 AI 智能体通过 TypeScript 接口编写代码、链式调用 API 并在沙箱中执行,而非暴露数千个工具定义。

打开原文tiktok.com
博主

粉丝 9.9万

互动数据
浏览
28万
点赞
1.4万
评论
290
分享
2794
收藏
1.1万

约为这个来源平时的 3.7 倍

数字来自平台,为最近一次抓取时的数据。

正文

以下是视频口播的自动转写,可能有错字。

MCP is officially cooked. Cloudflare just replaced it, runs on 1,000 tokens instead of 1.17 million, and the whole industry is quietly adopting it.

So here's the deal: with MCP, your agent fires off tool call one, pings the model, fires off tool call two, pings the model again, and just the tool manifest starts eating your context.

Cloudflare hit this running 2,500 endpoints with the old approach, burning 1.17 million tokens on a single workflow. So they built code mode.

MCP tools get exposed as a TypeScript API. The model writes one script that chains them, and the whole thing runs inside a sandbox.

Same job, two tools, around 1,000 tokens. Pretty freaking cool. Anthropic is already baking this into Claude under programmatic tool calling, and Block Goose is going the same way.

MCP, as we knew it, is done. DM link and I'll send you Cloudflare's full breakdown plus access to Claude Code Club.

来源:TikTok · 搜「ai tools」 · tiktok.com