Welcome to the CodingFantasy MCP Challenge! This repo contains a series of increasingly complex coding challenges that teach you the fundamentals of Model Context Protocol (MCP) - the standardized way for AI applications to interact with data sources and tools.
Through the 5 progressive acts, you'll master key MCP capabilities:
- Setting up the MCP SDK
- Creating a basic client
- Establishing connection with a server
- Handling requests and responses
- Implementing the Resources capability
- Creating and exposing data to clients
- Handling resource updates and subscriptions
- Building robust error handling
- Implementing the Prompts capability
- Creating standardized prompt templates
- Handling dynamic arguments
- Building multi-step interactions
- Implementing the Tools capability
- Creating executable functions
- Handling validation and error cases
- Building sophisticated tool implementations
- Combining all capabilities
- Creating a production-ready demo
- Connecting to Claude or other LLMs
- Advanced MCP implementation patterns
MIT License - see LICENSE file for details.