cto-legends · engineering dispatches
How to Choose MCP vs CLI Tools Without Context Bloat
By Benjamin (@avalonreset) · Published November 5, 2026
Connecting 19 eager MCP servers injects 38,000 tokens of JSON schema definitions into Turn 0 before your agent reads a single line of code. Reserve MCP for cross-tenant OAuth and shell-less hosts, and route local workstation automation through progressive Markdown skills and a 5-point Agent-Safe CLI contract.
Architectural Scope & Key Sections
- The Turn-0 Context Tax: How 19 Eager MCP Servers Burn 38,000 Tokens Before You Type
- Progressive Disclosure: Markdown Skills + On-Demand CLI Execution
- The 4-Axis Architectural Decision Matrix: When MCP Wins vs When CLI Wins
- Why Human CLIs Break AI Agents and the 5-Point Agent-Safe CLI Contract
- How the 19-Module cto-legends Capability Router Eliminates Context Bloat
- Reclaim Your Context Window and Standardize Agent Tooling
Referenced cto-legends CLI Modules: cto-legends, legends-github, legends-empire, legends-dataforseo
Frequently Asked Questions
- How many tokens do background MCP servers actually consume in Claude Code or Cursor at startup?
- Each connected MCP server registers its full JSON Schema tool definitions into the system context at session initialization. A single server exposing 12 to 20 tools typically consumes 1,800 to 3,200 tokens depending on nested input schemas. Enabling 15 to 19 background MCP servers burns 30,000 to 42,000 tokens before Turn 1, and that schema payload is re-billed on every turn and tool round-trip.
- When should I still build or keep an MCP server instead of replacing it with a CLI command?
- Keep or build an MCP server when your workflow crosses one of three boundaries: first, when the agent runs inside a hosted cloud or browser sandbox lacking a local POSIX shell; second, when the tool must maintain persistent in-memory state across turns, such as a live Playwright browser DOM session; and third, when a multi-tenant platform must broker delegated OAuth tokens on behalf of remote users.
- How do I stop an AI agent from hanging forever when a CLI tool asks an interactive [y/N] question?
- Enforce a three-layer non-interactive shell wrapper inside your skill contract. First, export CI=true, PAGER=cat, GIT_PAGER=cat, and NO_COLOR=1 to disable interactive prompts and pagers. Second, pass explicit flags such as --yes and --non-interactive. Third, redirect standard input from /dev/null (< /dev/null) so any unexpected prompt receives an immediate EOF instead of blocking the worker subshell at 2:00 AM.
- Can I combine a lightweight startup index with on-demand CLI documentation so the agent only loads what it needs?
- Yes, and that progressive disclosure pattern is how the cto-legends router eliminates startup bloat. Instead of injecting 19 full tool schemas at Turn 0, the agent loads a single ~650-token capability index listing module names and trigger verbs. When a task requires a specific tool, the agent runs cto-legends handoff <module> to load the ~800-token CLI recipe for that turn alone.
All 8 cto-legends Engineering Dispatches
- Routing Cursor vs Claude Code by Blast Radius and Cost: Route 1 to 3 file interactive edits to Cursor IDE, delegate 4+ file refactors and test loops to Claude Code CLI, and enforce 15-turn context-hygiene locks.
- The 60-Minute AI Visibility Audit and Fix Scorecard: Run a 60-minute kitchen-table AI visibility audit across ChatGPT, Perplexity, Claude, and Google AI Overviews using five buyer prompts and four diagnostic gates to fix entity and pricing errors.
- AI Agent Governance With Green-Yellow-Red Tool Gates: Replace 80-page governance binders with a 5-second reversibility matrix that sorts every agent tool into Green, Yellow, or Red execution gates backed by four 48-hour sandbox locks.
- How to Choose MCP vs CLI Tools Without Context Bloat: Loading 19 eager MCP servers burns 38,000 tokens before your first prompt. Use our 4-axis decision matrix to reserve MCP for remote OAuth and route local tools through progressive CLI skills.
- Hetzner vs DigitalOcean: The $850 Cloud Invoice Audit: Audit why a $24 entry droplet balloons into an $868/month production DigitalOcean invoice once managed Postgres, load balancers, and bandwidth kick in, versus $142/month on Hetzner + Coolify.
- Why AI Voice Agents for Business Pause and Cost 5x More: Why browser Wi-Fi demos sound effortless at 400ms while real mobile calls pause for 2.1 seconds and stack five billing layers to $0.28/minute, plus a 5-stage warm-transfer receptionist script.
- How to Vet an AI Implementation Consultant in 15 Minutes: Separate genuine builders from slide-deck brokers in 15 minutes on Zoom using five visual screen-share checks any non-technical founder can run, backed by a 6-clause SOW protection rider.
- How Zapier Alternatives Bill a 500-Item Webhook Loop: Compare how Zapier, Make, n8n, Pipedream, and Windmill meter a single 500-item daily webhook batch over 30 days, then sort every company automation across three reliability buckets.