
Product
Socket for ClickUp Is Now Available
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.
mcp-weather-query
Advanced tools
一个用于学习 MCP Server 设计、stdio 调试、结构化 Tool 输出、测试、打包与发布流程的 Python 小项目。项目将复现 Datawhale《第十章 智能体通信协议》的天气案例,但以 2026-07-28 MCP 规范和当前官方 Python SDK 为基线,不直接复制教程中的旧封装、数据源或发布叙述。
PYTHONPATH 安装与 stdio 验证;实时任务状态以 docs/project-management/current-task.md 为准。MCPServer 只注册 get_current_weather,并提供输入/输出 Schema、只读 annotations、结构化成功结果和稳定 Tool execution error。feat/f-001-local-weather-tool 合并到 main,原本地和远程功能分支已删除。85 passed, 1 skipped;唯一 skip 是显式 opt-in 的 live contract。此前 live contract 为 1 passed,Inspector 已完成唯一 Tool 的发现、成功和错误路径验证。mcp-weather-query console command;wheel 与 sdist 已分别在项目外独立环境安装,并在无 PYTHONPATH、非源码工作目录下启动同一 stdio Server。Client(mode="auto") 通过生产 stdio 入口完成 server/discover,协商 MCP 2026-07-28,且未执行 Legacy initialize;同一 Server 继续允许 Inspector 2.1.0 以 Legacy MCP 2025-11-25 调试。0.1.0、uv_build、console script、MIT LICENSE 和 Open-Meteo NOTICE 已转绿;Step 3 生成的本地 wheel/sdist 已完成制品审查,Step 4 双干净安装验证通过。mcp-weather-query==0.1.0,只发现 get_current_weather;生产 console 的 stdout 仅含 MCP 消息、退出码为 0,确定性离线调用返回合法 structuredContent。D-001 已在项目外生成并审查本地候选制品。获得已审查的 0.1.0 wheel 后,
可在包含 dist/ 的候选目录运行:
uv tool install ./dist/mcp_weather_query-0.1.0-py3-none-any.whl
mcp-weather-query
这会通过发行包提供的 console entry point 启动生产 stdio MCP Server,不需要
editable install、项目源码目录或 PYTHONPATH。mcp-weather-query 必须位于当前
PATH;可用 uv tool dir --bin 查看 uv 的工具命令目录。
当 PyPI 官方项目页已提供 0.1.0 时,可直接运行固定版本:
uvx --from mcp-weather-query==0.1.0 mcp-weather-query
本地 wheel 安装完成且 console command 已位于 PATH 后,Host 可使用以下最小配置:
{
"mcpServers": {
"weather": {
"command": "mcp-weather-query",
"args": []
}
}
}
Server 通过 stdin/stdout 交换 MCP 协议消息;普通诊断只写入 stderr。不同 Host 的
配置文件位置和外层字段可能不同,但 command 不应改为源码路径,也不应注入
PYTHONPATH。
mcp-weather-query==0.1.0 的公开可用性、文件和 attestation 以
PyPI 官方项目页 为准,不从本地候选推断。io.github.wcnm8888/mcp1-weather-query,尚未登记 MCP Registry。mcp-name 注释用于 PyPI ownership verification,不代表
Registry 条目已经存在。首个闭环提供一个只读 MCP Tool:get_current_weather。它接收地点名称和可选国家代码,通过固定天气数据源解析地点并返回带单位、时间、解析后地点和数据来源的结构化当前天气结果。
项目定义、架构、测试、发布和路线状态见 docs/README.md。
FAQs
A local, read-only MCP weather tool learning project.
We found that mcp-weather-query demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.

Product
Create and manage Asana tasks directly from Socket alerts, with manual task creation, automated ticketing rules, and two-way sync.

Security News
Open VSX has removed three extension IDs from its malicious-extension list as the legitimate publishers they impersonated move to claim the names for themselves.