I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

test_mcpServer
Tester le serveur MCP qui peut faire plusieurs choses
3 years
Works with Finder
1
Github Watches
1
Github Forks
0
Github Stars
MCP Server
MCP сервер на Python, предоставляющий текущий курс доллара, прогноз погоды и новости за последнюю неделю.
Установка
-
Клонируйте репозиторий:
git clone https://github.com/Cavumnigrum/mcp_server_project.git cd mcp_server_project
-
Создайте виртуальное окружение:
python -m venv venv source venv/bin/activate # Linux/Mac venv\Scripts\activate # Windows
-
Установите зависимости:
pip install -r requirements.txt
-
Настройте API ключи:
- Зарегистрируйтесь на:
- exchangerate-api.com для курса доллара.
- openweathermap.org для погоды.
- newsapi.org для новостей.
- Скопируйте
.env.example
в.env
и заполните своими ключами:cp .env.example .env
- Зарегистрируйтесь на:
-
Запустите сервер:
python mcp_server.py
Сервер будет доступен по адресу
http://localhost:8000
.
Тестирование
Запустите тесты с помощью pytest
:
pytest test_mcp_server.py -v
Подключение клиента
Самописный клиент:
python mcp_client.py
- При запуске клиента есть инструкция как им пользоваться
Дополнительно
В репозитории есть docker-файлы для создания контейнеров. Порядок работы с докер-файлами:
- Убедиться, что установлены необходимые пакеты для docker и docker-compose
- Перейти в папку с проектом
cd path\to\project
- Запустить docker-compose файл в двух режимах для сервера и клиента
docker-compose up -d server docker-compose run --rm client
- После завершения работы можно уронить контейнеры с помощью
docker-compose down server client
相关推荐
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Advanced software engineer GPT that excels through nailing the basics.
Take an adjectivised noun, and create images making it progressively more adjective!
Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.
Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX
Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.
Miroir dehttps: //github.com/bitrefill/bitrefill-mcp-server
MCP Server pour récupérer le contenu de la page Web à l'aide du navigateur sans tête du dramwright.
Reviews

user_COyJQ4p4
The Gmail Plugin MCP Server by sanchisingh01 has been a game-changer for my email management on Claude Desktop. It's seamless and efficient, making my daily tasks so much easier. Highly recommend for anyone looking to streamline their email processes!