Skip to main content
Glama

Weekly Weather

by rossshannon
CLAUDE.md1.21 kB
# CLAUDE.md This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. ## Commands - Run server: `python3 weather_mcp_server.py` - Install dependencies: `pip3 install mcp-server requests pydantic` - Format code: `black --skip-string-normalization weather_mcp_server.py` - Typecheck: `mypy weather_mcp_server.py --strict` - Run test client: `python3 test_mcp_client.py` ## Style Guidelines - **Python Version**: 3.6+ - **Code Style**: PEP 8 compliant - **Imports**: Group standard library, third-party, and local imports with newlines between groups - **Type Hints**: Use type annotations for all function parameters and return values - **Error Handling**: Use try/except blocks with specific exception types - **Docstrings**: Use triple-quoted docstrings for all functions and classes - **Naming**: Use snake_case for variables and functions, PascalCase for classes - **API Key Handling**: Never hardcode API keys; use environment variables or parameters ## Architecture Notes - Single-file MCP server based on FastMCP for OpenWeatherMap API - Pydantic models for data validation and serialization - Functions handle API requests with proper error handling

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rossshannon/weekly-weather-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server