What problem does it solve?
This Skill provides expert guidance to build reliable MCP servers using FastMCP 2.x, focusing on crucial aspects like token budget management, tool consolidation, and Opus compatibility to prevent common LLM integration failures.
Core Features & Use Cases
- FastMCP 2.x Server Setup: Scaffolds modern async MCP servers with stdio and SSE transports.
- Token Budget Management: Prevents context overflow and model crashes with safe output limits.
- Tool Consolidation: Reduces tool count using action-based and provider-based patterns.
- Output Truncation: Enforces safe character limits on all tool outputs.
- Execute Pattern: Implements a code-execution tool for Opus compatibility.
- Async Subprocess: Handles non-blocking command execution with timeouts.
- Troubleshooting: Diagnoses connection failures, context overflow, and platform-specific issues.
- Use Case: When creating new MCP servers, debugging tool overload, optimizing token usage, or fixing silent failures in Claude Opus.
Quick Start
Use the build-mcp-servers skill to set up a new FastMCP 2.x server, ensuring token budgets and tool consolidation are optimized.