Chapter 11 Exercises
These exercises help you master local testing strategies for MCP servers.
AI-Guided Exercises
The following exercises are designed for AI-guided learning. Use an AI assistant with the course MCP server to get personalized guidance, hints, and feedback.
-
MCP Inspector Deep Dive ⭐⭐ Intermediate (40 min)
- Connect Inspector to your running server
- Explore server capabilities and schemas
- Execute tools and debug failures
- Learn when to use Inspector vs automated testing
-
Test Scenario Development ⭐⭐ Intermediate (35 min)
- Generate test scenarios with cargo pmcp
- Write custom edge case scenarios
- Build multi-step workflow tests
- Integrate tests into your development workflow
Prerequisites
Before starting these exercises, ensure you have:
- Completed ch02-ch03 exercises (basic MCP servers)
- npm/npx available for MCP Inspector
- A working MCP server to test
Next Steps
After completing these exercises, continue to:
- Remote Testing - Test deployed servers
- CI/CD Integration - Automate your testing