I decided to pit two approaches against each other for driving a browser test with GitHub Copilot CLI: directly using Chrome DevTools MCP vs. a custom CLI skill built on top of mcp2cli.
The direct MCP loads a hefty 5k tokens of upfront context just to expose the browser control surface. That’s a significant chunk before the agent even starts working. The mcp2cli CLI wrapper avoids this by having the agent discover commands progressively—listing, probing, and learning on the fly—which keeps the startup leaner.
In practice, direct MCP runs finished faster but came with noisy, larger token overhead and occasional long waits. The CLI skill runs were steadier, with smoother context growth and easier debugging.
For quick, repeatable browser smoke tests, wrapping MCP in CLI feels cleaner. But for deep debugging, I still want full native MCP access. Tool discovery cost shifts depending on your path, and context bloat remains a tricky beast.
It’s a neat experiment if you’re wrestling with how to optimize agent-browser interactions. Curious—how do others handle tooling surface discovery in your agent setups?
#AgentDev #BrowserAutomation #MCP #TokenEfficiency #CopilotCLI
