feat!: v2.0.0 Token Diet - 85% token reduction#57
Conversation
BREAKING CHANGE: Major rewrite of MCP tool layer for token efficiency. Token reduction: ~43,000 → ~6,600 tokens (85% reduction) Tool count: 77 → 33 tools (57% reduction) Consolidated tools with action parameters: - projects: list|get|create|update|delete - environments: list|get|create|delete - application: create_github|create_key|update|delete - database: create (8 types)|delete - service: create|update|delete - control: start|stop|restart for apps/dbs/services - env_vars: CRUD for app/service env vars - private_keys: list|get|create|update|delete - database_backups: list|get|list_executions|get_execution - deployment: get|cancel|list_for_app Removed: All 7 MCP prompts (unused) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
PR Review: v2.0.0 Token Diet - 85% token reductionThis is an excellent major release that significantly improves the MCP server's token efficiency. The consolidation strategy is well-executed and the documentation is thorough. Here's my detailed review: ✅ Strengths1. Impressive Token Reduction
2. Code Quality
3. Documentation
4. Backward Compatibility Consideration
|
…s-nocheck - Add missing validate_server tool to mcp-server.ts (was documented but not implemented) - Remove @ts-nocheck and fix type issues properly - McpServer constructor: remove unsupported capabilities option - createPrivateKey: add default value for optional name parameter - Update tool count to 34 across all documentation (was 33) - All tests passing, build clean, lint clean 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
@claude please re-review |
|
Claude finished @StuMason's task in 1m 17s —— View job Re-review: v2.0.0 Token Diet
✅ Review Feedback AddressedBoth issues from my initial review have been fixed in commit 1.
2.
✅ CI StatusAll checks passing - tests and build are green. 📊 Final AssessmentThis is a well-executed major release:
Verdict: Approve 👍 |
Summary
v2.0.0 is a complete rewrite of the MCP tool layer focused on drastically reducing token usage.
Why This Matters
The MCP tool definitions were consuming ~43,000 tokens in the AI context window just for tool schemas. This left limited room for actual conversation and responses. v2.0.0 consolidates related operations into single tools with action parameters, reducing token usage to ~6,600 (well under the 15,000 target).
Breaking Changes
create_project,delete_project→projectswithactionparam)Migration Guide
Most v1.x tool names still exist unchanged:
get_version,get_mcp_version,list_servers,get_server, etc.diagnose_app,diagnose_server,find_issuesrestart_project_apps,bulk_env_update,stop_all_apps,redeploy_projectConsolidated tools now use action parameter:
create_project→projectswithaction: 'create'start_application→controlwithresource: 'application', action: 'start'create_postgresql→databasewithaction: 'create', type: 'postgresql'See CHANGELOG.md for full migration guide.
Test plan
🤖 Generated with Claude Code