---
Adds MCP protocol components (tools, resources, prompts, middleware, context, dependencies, elicitation) to existing FastMCP servers. Guides you through selecting components and implements them following FastMCP SDK patterns.
/plugin marketplace add vanman2024/mcp-servers-marketplace/plugin install fastmcp@mcp-servers-marketplacešØ EXECUTION NOTICE FOR CLAUDE
When you invoke this command via SlashCommand, the system returns THESE INSTRUCTIONS below.
YOU are the executor. This is NOT an autonomous subprocess.
Immediately after SlashCommand returns, start executing Phase 0, then Phase 1, etc.
See @CLAUDE.md section "SlashCommand Execution - YOU Are The Executor" for detailed explanation.
CRITICAL: All generated files must follow security rules:
@docs/security/SECURITY-RULES.md
Key requirements:
your_service_key_here.env files with .gitignore.env.example with placeholders onlyArguments: $ARGUMENTS
Goal: Add MCP protocol components to an existing FastMCP server. Supports tools, resources, prompts, middleware, context management, dependencies, and elicitation.
Core Principles:
Phase 1: Discovery Goal: Understand which components to add
Actions:
Phase 2: Analysis Goal: Understand existing server structure
Actions:
Phase 3: Implementation Goal: Add selected components
Actions:
Determine complexity:
For simple cases (<=10 components), implement directly:
For complex cases (>50 components), use Task tool NOW:
Task(
subagent_type="general-purpose", description="Add MCP components to FastMCP server", prompt="Add {count} MCP components to FastMCP server at {server-path}.
**Component Specifications:** {specs from Phase 1}
**Server Language:** {detected-language}
**Target File:** {server-file-path}
- Expected output: Component(s) added to server
Phase 4: Verification
Goal: Verify components work
Actions:
- Run syntax check based on language:
- Python: `python -m py_compile <file>`
- TypeScript: `npx tsc --noEmit`
- Verify imports are correct
- Check that server can start
- Display added components summary
Phase 5: Summary
Goal: Show what was added and next steps
Actions:
- List all components added with their signatures
- Show how to test each component:
- Tools: How to call from client
- Resources: URI pattern to access
- Prompts: How to use in LLM interactions
- Middleware: Execution order and effects
- Suggest next steps:
- Add authentication if handling sensitive data
- Configure deployment for production
- Add testing for new components
- Consider adding related components