Artificial Intelligence Integration & Impact
Code Mode: give agents an entire API in 1,000 tokens

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

2/20/2026 · Matt Carey

What this post added

Introduced a new Model Context Protocol (MCP) server for the entire Cloudflare API that leverages 'Code Mode' to significantly reduce token usage. This server provides access to over 2,500 API endpoints through just two tools, `search()` and `execute()`, enabling AI agents to interact with Cloudflare services efficiently. Also open-sourced a Code Mode SDK for developers to implement similar patterns.

Read the original post ↗