Back to list
cloudflare_blog 2026年3月1日

コードモード:すべてのAPIを1,000トークンで1つのモジュールに圧縮

Code Mode: give agents an entire API in 1,000 tokens

Translated: 2026/3/1 14:22:59

Japanese Translation

クラウドファイアウォールのAPIには約2,500のエンドポイントがあります。それら全てをMCPツールとして公開するだけでも約200万トークンが必要となります。コードモードでは、これらすべてを約1千トークンのコンテキスト内で2つのモジュールに整理しました。

Original Content

The Cloudflare API has over 2,500 endpoints. Exposing each one as an MCP tool would consume over 2 million tokens. With Code Mode, we collapsed all of it into two tools and roughly 1,000 tokens of context.