CONNECT WITH US
Tech

Tech

One MCP server used 18,000 tokens before doing anything. Here’s the workaround.

TheNewStack – Tech logo

Published on

Add as a preferred source on Google
One MCP server used 18,000 tokens before doing anything. Here’s the workaround.

Pi spent much of the past year leaving MCP out of its coding agent, even as the protocol became standard across developer tools. Its creator, Mario Zechner, had a concrete reason for resisting it. When he measured the context cost of popular browser-automation servers, Chrome DevTools MCP alone took up roughly 18,000 tokens, or about 9% of a 200,000-token context window, before the agent had done anything useful.

MCP is now built into Pi, but connecting a server doesn’t put all of its tools in front of the model. Pi leaves those definitions out of the prompt and uses Codemode to find tools as needed, call them from JavaScript and return only the useful output.

Zechner spelled out the problem last November. Playwright MCP needed about 13,700 tokens to describe its 21 tools, or 6.8% of a 200,000-token window, and each additional server added more overhead. He was also bothered by what happened after a tool was called. “MCP servers also aren’t composable,” he wrote. “Results returned by an MCP server have to go through the agent’s context to be persisted to disk or combined with other results.”

“Results returned by an MCP server have to go through the agent’s context to be persisted to disk or combined with other results.”

His answer was Bash and a handful of scripts. The model already knew how to use them, so there was little reason to teach it another large tool interface. His CLI-based browser tools needed only a 225-token README, and their output could be piped into another command, filtered or saved to disk without first passing through the model.


Source link

Disclaimer

We strive to uphold the highest ethical standards in all of our reporting and coverage. We TheMorningPulse.fyi want to be transparent with our readers about any potential conflicts of interest that may arise in our work. It's possible that some of the investors we feature may have connections to other businesses, including competitors or companies we write about. However, we want to assure our readers that this will not have any impact on the integrity or impartiality of our reporting. We are committed to delivering accurate, unbiased news and information to our audience, and we will continue to uphold our ethics and principles in all of our work. Thank you for your trust and support.