-
Notifications
You must be signed in to change notification settings - Fork 0
Context budget: tool and policy payload grows unbounded with plugins and MCP servers #451
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
The tool surface in a fully-configured workspace is enormous:
- 27+ Serena tools
- 50+ cloud MCP tools (Amplitude, Canva, Gmail, Calendar, Intercom, Invideo, Linear x2, Notion, Sentry, Figma)
- 30+ plugin-provided skills
- Built-in Claude Code tools
- Each tool includes its JSON schema + usage instructions in the system prompt
Even with deferred tool loading, the MCP server instructions (Pinecone usage guide, Microsoft Docs workflow, Figma design-to-code workflow, Amplitude context guide) are injected into every session regardless of whether those tools are called.
Proposed Solutions
- Per-project MCP allowlist — retort should support a
.retort/mcp-scope.yamlthat declares which MCP servers are relevant. Others are suppressed at the project level. - Tool budget audit command —
retort audit toolsshould count the token cost of all tool definitions + MCP instructions and flag the top offenders. - MCP instruction deferral — advocate upstream (Claude Code) for deferring MCP server instructions alongside tool schemas, not just the schemas.
- Document the disable pattern — retort docs should cover how to disable unused MCP servers and plugins at the project level via
settings.jsonoverrides.
Current State (mystira-workspace)
Disabled 16 plugins at project level. Cloud MCP servers (Amplitude, Canva, Gmail, etc.) require claude.ai account disconnection — can't be controlled locally.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request