使用说明
气象MCP服务器
用于天气信息的模型上下文协议(MCP)服务器。
项目结构
weather-mcp-server/
├── src/
│ └── weather_mcp_server/
│ ├── __init__.py
│ ├── server.py
│ └── weather/
│ ├── __init__.py
│ └── api.py
├── tests/
│ ├── __init__.py
│ └── test_weather.py
├── pyproject.toml
├── README.md
└── .gitignore
发展
这个项目使用uv进行依赖管理和Python 3.13+。
设置
-
如果您还没有安装uv:
curl -LsSf https://astral.sh/uv/install.sh | sh -
安装依赖项:
uv sync -
运行测试:
uv run pytest
运行服务器
uv run python -m weather_mcp_server.server