BF 

barriletechapin/fcc-mcp-course
Developer tools22 stars 0 forks Качество 55 Тренд 55
This repository contains the code and examples for the FreeCodeCamp course on Model Context Protocol (MCP).
Обзор
This repository contains the code and examples for the FreeCodeCamp course on Model Context Protocol (MCP).
README
FreeCodeCamp Model Context Protocol (MCP) Tutorial
This repository contains the code and examples for the FreeCodeCamp course on Model Context Protocol (MCP). The repository is structured to provide both the course reference code and practice materials.
Repository Structure
The repository is organized into two main sections:
1. MainCode/
This directory contains the original code used during the course tutorial. It includes:
Scenario1/: Basic MCP calculator implementationScenario2/: FastAPI integration with MCPScenario3/: FreeCodeCamp RSS feed readerdeployment/: Deployment configuration examples
2. Practice/
This directory contains tutorial-focused versions of the same code, with:
- Detailed step-by-step comments
- Comprehensive documentation
- Clear explanations of concepts
- Usage examples and instructions Perfect for learning and experimenting on your own!
Getting Started with MCP
To use MCP in Visual Studio Code, you need to configure it properly:
- Create a
.vscodefolder in your project root:
mkdir .vscode
- Create an
mcp.jsonfile inside the.vscodefolder with this template:
{
"servers": {
"Calculator-STDIO": {
"command": "python",
"args": [
"Scenario1/fastmcp_calculator.py"
]
},
"Calculator-HTTP": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8002/mcp"
]
}
}
}
Getting Started
- Clone this repository
- Set up your Python virtual environment
- Install the required packages:
pip install -r requirements.txt - Start with the Practice/ directory to learn the concepts
- Reference MainCode/ to see the production-ready implementations
Установка
npx mcp-remote http://localhost:8002/mcp