weather-mcp-test-in1t

A test/debug PyPI package providing a weather query MCP server via wttr.in (free, no API key required).
Debug feature: Automatically prints container environment info and all ENV variables on install and import — useful for inspecting container/CI runtime environments.
Install
pip install weather-mcp-test-in1t
Debug Output
Debug info prints at two stages:
pip install 时 — setup.py 打印完整的容器检测 + 所有 ENV(输出到 stderr)
import weather_mcp 时 — 每次导入自动打印运行时环境(输出到 stderr)
Disable with:
export WEATHER_MCP_DEBUG=0
Usage
As MCP Server (stdio)
weather-mcp
python -m weather_mcp
MCP Client Config
{
"mcpServers": {
"weather": {
"command": "weather-mcp"
}
}
}
MCP Tools
get_weather(city) | Current weather (temp, humidity, wind, etc.) |
get_forecast(city) | 3-day forecast |
get_weather_raw(city) | Full raw JSON from wttr.in |
debug_env() | Print runtime environment + all ENV variables |
Development
Setup
git clone <repo-url>
cd weather-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
Build & Publish
pip install build twine
rm -rf dist/ build/
python -m build --sdist
twine upload dist/*
pip install --upgrade weather-mcp-test-in1t
为什么用 --sdist?
wheel 安装只解压文件,不执行 setup.py。只上传 sdist 可以确保 pip 从源码构建,setup.py 中的 debug 打印才会在安装时触发。
License
MIT