MCP gains ground as code mode addresses tool integration limits
MCP’s appeal for enterprise AI has grown as better model capabilities and protocol updates address early weaknesses. In enterprise ChatGPT deployments, it gave administrators a vocabulary for controlling employee access to connected services, such as allowing Gmail read actions while blocking writes. Its popularity also encouraged companies to reconsider how they approached AI integration.
Early implementations were inconsistent and difficult to operate reliably at scale. Lengthy tool descriptions strained model context windows, while weak tool-calling performance pushed developers to add even more detail. The protocol’s stateful design added operational complexity. Command-line interfaces offered an alternative because models could use familiar shell tools to compose operations without loading all intermediate data into context.
Code mode, pioneered by Cloudflare, shifted that balance by letting models compose tools and transform data through JavaScript rather than bash. Post-training improved reliability and token efficiency, while MCP tools could be exposed as functions. Models also became better at discovering which functions to call.
Command-line approaches still faced authentication and infrastructure challenges: tokens readable inside a sandbox could also be read by the model, and Linux containers were difficult to operate at mass scale. MCP now supports stateless HTTP, events and authentication gateways, making it better suited to large deployments. Core agentic primitives can also be expressed as MCP servers.