
barriletechapin/fcc-mcp-course
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
barriletechapin / fcc-mcp-course - кандидат на сервер MCP, импортированный из https://github.com/barriletechapin/fcc-mcp-course.
Обзор
barriletechapin / fcc-mcp-course - кандидат на сервер MCP, импортированный из https://github.com/barriletechapin/fcc-mcp-course.
Обзор (машинный перевод)
Этот репозиторий содержит код и примеры для курса FreeCodeCamp по протоколу Model Context Protocol (MCP). Хранилище структурировано, чтобы обеспечить как справочный код курса, так и практические материалы.
Репозиторная структура
Репозиторий организован в два основных раздела:
###1 Основной код Этот каталог содержит оригинальный код, используемый во время учебного курса. Он включает в себя:
- [[Т0]]: Основная реализация калькулятора MCP
- [[Т1]]: Интеграция FastAPI с MCP
Scenario3/: FreeCodeCamp RSS feed reader- [[Т3]]: Примеры конфигурации развертывания
###2 Практика Этот каталог содержит учебные версии того же кода, с:
- Подробные пошаговые комментарии
- Комплексная документация Четкое объяснение понятий
- Использовать примеры и инструкции Идеально подходит для обучения и экспериментов самостоятельно!
Начало работы с MCP
Чтобы использовать MCP в Visual Studio Code, необходимо правильно настроить его:
-
Создайте папку
.vscodeв корне вашего проекта: -
Создайте файл
mcp.jsonвнутри папки.vscodeс этим шаблоном:
Начало работы
- Клонировать это хранилище 2.Настройка виртуальной среды Python
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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