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
# or
python -m weather_mcp
MCP Client Config
{
"mcpServers": {
"weather": {
"command": "weather-mcp"
}
}
}
MCP Tools
| Tool | Description |
|---|---|
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
# 1. 改版本号(唯一需要改的地方)
# 编辑 weather_mcp/__init__.py 中的 __version__
# 2. 打包(只生成 sdist,不生成 wheel,确保安装时 setup.py debug 打印能触发)
pip install build twine
rm -rf dist/ build/
python -m build --sdist
# 3. 上传到 PyPI
twine upload dist/*
# 4. 验证
pip install --upgrade weather-mcp-test-in1t
为什么用
--sdist? wheel 安装只解压文件,不执行 setup.py。只上传 sdist 可以确保 pip 从源码构建,setup.py 中的 debug 打印才会在安装时触发。
License
MIT
Metadata
Release files for weather-mcp-test-in1t 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| weather_mcp_test_in1t-0.2.0.tar.gz | 7.6 kB | Without provenance | Details for weather_mcp_test_in1t-0.2.0.tar.gz |
Release files / weather_mcp_test_in1t-0.2.0.tar.gz
| Download URL | weather_mcp_test_in1t-0.2.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1b8bab4d02afcdd745123a6fca367069b3def7943947578a2e7267591c760cb
|
|
BLAKE2b-256 checksum How to use checksums |
ec63010139ce05c19c0a4dc1e8474451ed6a59585d342ada2de6137ebe17feb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Security for weather-mcp-test-in1t 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.