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

python-mcp-server
Weather MCP server in python
3 years
Works with Finder
1
Github Watches
1
Github Forks
0
Github Stars
MCP Server
Weather MCP server in python
# Create a new directory for our project
uv init
# Create virtual environment and activate it
uv venv
source .venv/bin/activate
# Install dependencies
uv add "mcp[cli]" httpx
# Create our server file
touch weather.py
Testing
This project includes a comprehensive test suite for the weather service API. The tests use pytest and pytest-asyncio to test the asynchronous functions that interact with the National Weather Service API.
Test Requirements
- Python 3.12+
- pytest
- pytest-asyncio
- pytest-cov
- httpx
Installing Development Dependencies
You can install all development dependencies using:
# Using uv
uv pip install -e ".[dev]"
# Or using pip
pip install -e ".[dev]"
Running the Tests
To run the tests:
# Run all tests
pytest
# Run with verbose output
pytest -v
# Run with code coverage
pytest --cov=weather
Test Coverage
The test suite covers:
-
Unit Tests for Helper Functions
-
format_alert
function for formatting alert data - Error handling in
make_nws_request
-
-
API Function Tests
-
get_alerts
: Testing successful retrieval, empty results, and API failures -
get_forecast
: Testing successful forecast retrieval and error handling for both API endpoints
-
-
Mock Responses
- All HTTP requests are mocked using
httpx.AsyncMock
- Multiple test scenarios with different API responses
- All HTTP requests are mocked using
Continuous Integration
When adding new features to the weather service, please ensure all tests pass by running the test suite before submitting changes.
相关推荐
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Converts Figma frames into front-end code for various mobile frameworks.
Advanced software engineer GPT that excels through nailing the basics.
Therapist adept at identifying core issues and offering practical advice with images.
Take an adjectivised noun, and create images making it progressively more adjective!
Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.
Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx
A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.
Mirror ofhttps://github.com/agentience/practices_mcp_server
Mirror ofhttps://github.com/bitrefill/bitrefill-mcp-server
Reviews

user_38WsqfLR
AzureDevOpsMCP is a remarkable tool for streamlining and managing development projects on Azure. Created by erinnmclaughlin, this product integrates seamlessly into workflows, ensuring efficient and organized project management. I highly recommend AzureDevOpsMCP for anyone looking to enhance their Azure DevOps experience. More details can be found at https://mcp.so/server/AzureDevOpsMCP/erinnmclaughlin.