BL-121 Ideas

DM sessions run with 727 MCP tools loaded — 240k tokens of dead weight from unrelated connectors

Session 40, checked via /context: this project’s own .mcp.json only declares 4 servers (txtavern, pixellab, txtavern-postgres, honeybadger). Everything else present in the session (WIN, ngk, Gmail, Google Calendar/Drive, Microsoft 365, flowbite, playwright) is a Claude.ai account-level connector or user-level server attached regardless of project, contributing ~240k tokens (24% of the 1M context window) just in deferred-tool listing overhead, before any full schema is even loaded. None of those servers were called once during a 5-hour live session.

This is a real, measured contributor to “the assistant feels slow” during live play: every turn’s prompt processing scales with total context, and a quarter of it is inert.

Update (2026-11-02): the original note said this was not fixable from inside a session and needed per-project connector scoping. It is. Claude Code has a disableClaudeAiConnectors setting and a deniedMcpServers list, both usable in a project’s git-ignored .claude/settings.local.json. Applied to the three worktrees (develop, worldbuilding, txt_game): disableClaudeAiConnectors: true plus deny entries for the user-level servers google-play-developer, tailscale, uptimerobot, flowbite and playwright. The project’s own .mcp.json servers are unaffected. Pending verification: after a restart, /mcp and /context should show only txtavern, pixellab, txtavern-postgres and honeybadger, and total tools should drop sharply from 727. Server names in the deny list were inferred from tool prefixes, so any that still appear need toggling off in /mcp or renaming in the list. Because the file is git-ignored, a fresh clone or new worktree needs the same file added by hand.

Related, same session: even without the connector bloat, a single long-running conversation that carries an entire live session end-to-end reaches hundreds of thousands of tokens in messages alone (694.9k / 69.5% of context in this session). Still open: establish a convention of resetting context (/compact or a fresh conversation) at a natural act break during a long session, not just at session-open.