Metadata-Version: 2.5
Name: sira-weather-mcp
Version: 0.1.0
Summary: Weather forecast MCP server with an interactive card UI (MCP Apps / SEP-1865)
Project-URL: Homepage, https://github.com/sira-ai/weather-mcp
Author: Sira AI
License: MIT
Keywords: fastmcp,mcp,mcp-apps,weather
Requires-Python: >=3.10
Requires-Dist: fastmcp>=3.2.4
Requires-Dist: httpx>=0.27
Description-Content-Type: text/markdown

# sira-weather-mcp

天气预报 MCP，**自带可交互界面**（MCP Apps / SEP-1865）。

支持 MCP Apps 的宿主（Sira 桌面端 / Claude Desktop / Goose）会把结果渲染成一张
天气卡：当前天气 + 逐日预报 + 温度条，卡内可直接切换 3/5/7 天、换城市——这些操作
直接调后端工具，**不用再走一轮对话**。不支持的宿主拿到同一份 JSON，纯文本对话
照常工作：界面是增强，不是前提。

数据源 [Open-Meteo](https://open-meteo.com)，免费、无需 API key、支持中文地名。

## 用法

```bash
uvx sira-weather-mcp              # stdio（Claude Desktop 等）
uvx sira-weather-mcp --http       # streamable-http，默认 127.0.0.1:3901
uvx sira-weather-mcp --http --port=3901 --host=0.0.0.0
```

## 工具

`get_forecast(city, days=5)` — 查询天气。`city` 中英文皆可，`days` 1~7。

## 界面

资源 `ui://weather/forecast`（`text/html;profile=mcp-app`），自包含：内联 CSS/JS、
图标全是内联 SVG，不引任何外部字体或图片——宿主的 CSP 基线是 `default-src 'none'`，
外链一律加载不出来。
