{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_tf6cenexjadz","handle":"weather-mcp-test-in1t","url":"https://wellknown.network/agents/weather-mcp-test-in1t","links":{"self":"https://wellknown.network/agents/weather-mcp-test-in1t/record.json","html":"https://wellknown.network/agents/weather-mcp-test-in1t","markdown":"https://wellknown.network/agents/weather-mcp-test-in1t/record.md","api":"https://wellknown.network/api/v1/agents/weather-mcp-test-in1t","status":"https://wellknown.network/api/v1/agents/weather-mcp-test-in1t/status","claim":"https://wellknown.network/agents/weather-mcp-test-in1t/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/weather-mcp-test-in1t/claim.json","badge":"https://wellknown.network/agents/weather-mcp-test-in1t/badge.svg","openapi":"https://wellknown.network/openapi.json"},"ard":{"identifier":"urn:air::server:weather-mcp-test-in1t","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"weather-mcp-test-in1t","summary":"Test weather MCP server that debug-prints container environment on install/import","description":"# weather-mcp-test-in1t\n\n[![PyPI version](https://badge.fury.io/py/weather-mcp-test-in1t.svg)](https://pypi.org/project/weather-mcp-test-in1t/)\n[![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/downloads/)\n\nA test/debug PyPI package providing a weather query [MCP](https://modelcontextprotocol.io/) server via [wttr.in](https://wttr.in) (free, no API key required).\n\n**Debug feature**: Automatically prints container environment info and all ENV variables on install and import — useful for inspecting container/CI runtime environments.\n\n## Install\n\n```bash\npip install weather-mcp-test-in1t\n```\n\n## Debug Output\n\nDebug info prints at two stages:\n\n1. **`pip install` 时** — setup.py 打印完整的容器检测 + 所有 ENV（输出到 stderr）\n2. **`import weather_mcp` 时** — 每次导入自动打印运行时环境（输出到 stderr）\n\nDisable with:\n\n```bash\nexport WEATHER_MCP_DEBUG=0\n```\n\n## Usage\n\n### As MCP Server (stdio)\n\n```bash\nweather-mcp\n# or\npython -m weather_mcp\n```\n\n### MCP Client Config\n\n```json\n{\n  \"mcpServers\": {\n    \"weather\": {\n      \"command\": \"weather-mcp\"\n    }\n  }\n}\n```\n\n## MCP Tools\n\n| Tool | Description |\n|------|-------------|\n| `get_weather(city)` | Current weather (temp, humidity, wind, etc.) |\n| `get_forecast(city)` | 3-day forecast |\n| `get_weather_raw(city)` | Full raw JSON from wttr.in |\n| `debug_env()` | Print runtime environment + all ENV variables |\n\n## Development\n\n### Setup\n\n```bash\ngit clone <repo-url>\ncd weather-mcp\npython3 -m venv .venv\nsource .venv/bin/activate\npip install -e .\n```\n\n### Build & Publish\n\n```bash\n# 1. 改版本号（唯一需要改的地方）\n#    编辑 weather_mcp/__init__.py 中的 __version__\n\n# 2. 打包（只生成 sdist，不生成 wheel，确保安装时 setup.py debug 打印能触发）\npip install build twine\nrm -rf dist/ build/\npython -m build --sdist\n\n# 3. 上传到 PyPI\ntwine upload dist/*\n\n# 4. 验证\npip install --upgrade weather-mcp-test-in1t\n```\n\n> **为什么用 `--sdist`？**\n> wheel 安装只解压文件，不执行 setup.py。只上传 sdist 可以确保 pip 从源码构建，setup.py 中的 debug 打印才会在安装时触发。\n\n## License\n\nMIT","publisher":null,"homepage":"https://github.com/example/weather-mcp-test-in1t","repository":"https://github.com/example/weather-mcp-test-in1t","version":"0.2.0","license":"MIT License\n        \n        Copyright (c) 2025 Test\n        \n …","protocols":["mcp"],"tags":["mcp","weather","debug","container","environment"],"pricing":null,"endpoints":[{"url":"pypi:weather-mcp-test-in1t","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","license":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi"}},"derived":{"capabilities":[{"slug":"data.weather","name":"Weather","confidence":1,"provenance":"declared"},{"slug":"code.debugging","name":"Debugging","confidence":1,"provenance":"declared"},{"slug":"dev.package-management","name":"Packages & Dependencies","confidence":0.768,"provenance":"derived"},{"slug":"dev.ci-cd","name":"CI/CD & Deploy","confidence":0.688,"provenance":"derived"}],"categories":["code","data","dev"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"weather-mcp-test-in1t","registry":"pypi","observedAt":"2026-09-10T15:25:23.504Z","publishedAt":"2026-05-07T11:20:53.065354Z","latestVersion":"0.2.0"}},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"weather-mcp-test-in1t","url":"https://pypi.org/project/weather-mcp-test-in1t/","firstSeenAt":"2026-09-10T15:24:16.721Z","fetchedAt":"2026-09-10T15:24:16.721Z","normalizedAt":"2026-09-10T15:24:16.721Z"}]},"firstSeenAt":"2026-09-10T15:24:16.721Z","updatedAt":"2026-09-10T15:25:23.504Z"}