test_mcpServer
Testen Sie den MCP -Server, der mehrere Dinge tun kann
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
相关推荐
I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.
I find academic articles and books for research and literature reviews.
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.
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Converts Figma frames into front-end code for various mobile frameworks.
Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.
Die All-in-One-Desktop & Docker-AI-Anwendung mit integriertem Lappen, AI-Agenten, No-Code-Agent Builder, MCP-Kompatibilität und vielem mehr.
Fair-Code-Workflow-Automatisierungsplattform mit nativen KI-Funktionen. Kombinieren Sie visuelles Gebäude mit benutzerdefiniertem Code, SelbstHost oder Cloud, 400+ Integrationen.
🧑🚀 全世界最好的 llm 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Zusammenfassung der weltbesten LLM -Ressourcen.
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!