Session
Budget Before You Build: A Deterministic CI Gate for MCP Tool Surfaces
Every MCP server you add inflates your agent's tool surface, often thousands of tokens of schemas loaded before the agent does any real work. Most tools fight context bloat at runtime, trimming outputs in the request path. This talk is about the other end: measuring and capping tool-surface cost statically, before the agent starts, and enforcing it as a CI gate.
I'll walk through mcp-context-budget, an open-source, local-first CLI (MIT, zero runtime dependencies, nothing leaves your machine) that scans an MCP config, measures the token cost each server and tool adds, selects a lean tool set, and fails the build when the surface exceeds budget. No proxy, no hosted service, a deterministic gate you can vendor and trust.
We'll cover static token-cost estimation, deterministic tool selection, a CI check that re-validates on every change, and response-fixture snapshots that catch config drift. You'll see real output: per-server cost breakdown and a build failing when a bloated server pushes over budget.
The argument: MCP config quality is a production discipline, and it belongs in CI next to your other gates.
Dan Mercede
Operator and systems builder. I turn AI experiments into workflows teams can actually run.
San Diego, California, United States
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top