weather-agent-mcp 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -20
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -30,13 +30,14 @@ npm run ask -- --provider=openai "Сравни погоду в Москве и
30
30
  npm run ask -- --provider=claude "Стоит ли брать дождевик в Казань на следующую неделю?"
31
31
  ```
32
32
 
33
- ## MCP в Cursor / Copilot (PoC)
33
+ ## MCP в Cursor / Copilot
34
34
 
35
- Хост использует **tools** этого пакета; loop остаётся у Cursor/Copilot.
35
+ Пакет на npm: [`weather-agent-mcp`](https://www.npmjs.com/package/weather-agent-mcp) (`0.1.1`).
36
+ Хост получает **tools** (geocode / current / forecast / compare); agent loop остаётся у Cursor/Copilot.
36
37
 
37
- ### Через npm (`npx`) — предпочтительно
38
+ ### Cursor
38
39
 
39
- После публикации пакета `weather-agent-mcp@0.1.0`:
40
+ Файл `~/.cursor/mcp.json` (или MCP config проекта):
40
41
 
41
42
  ```json
42
43
  {
@@ -49,7 +50,11 @@ npm run ask -- --provider=claude "Стоит ли брать дождевик в
49
50
  }
50
51
  ```
51
52
 
52
- То же для Copilot / VS Code (поле `servers` + `"type": "stdio"`):
53
+ Перезапустите Cursor (или Reload MCP). В списке tools должны появиться `geocode`, `getCurrentWeather`, `getForecast`, `compareWeather`.
54
+
55
+ ### GitHub Copilot / VS Code
56
+
57
+ `.vscode/mcp.json` или настройки MCP:
53
58
 
54
59
  ```json
55
60
  {
@@ -63,7 +68,7 @@ npm run ask -- --provider=claude "Стоит ли брать дождевик в
63
68
  }
64
69
  ```
65
70
 
66
- ### Из клона (dev)
71
+ ### Из клона (разработка)
67
72
 
68
73
  ```bash
69
74
  npm install && npm run build
@@ -81,20 +86,7 @@ npm install && npm run build
81
86
  }
82
87
  ```
83
88
 
84
- Dev без сборки: `npm run mcp` или `"args": ["src/mcp-server/index.ts"]` (нужен Node ≥20 с type-stripping).
85
-
86
- ### Publish (maintainer)
87
-
88
- Нужен аккаунт npm с 2FA (или granular access token с bypass 2fa):
89
-
90
- ```bash
91
- npm login # при необходимости
92
- npm run build
93
- npm publish --access public
94
- npm view weather-agent-mcp version # ожидаем 0.1.0
95
- ```
96
-
97
- Cursor / Copilot после publish: `"command": "npx", "args": ["-y", "weather-agent-mcp"]`.
89
+ Без сборки: `npm run mcp` или `"args": ["src/mcp-server/index.ts"]` (Node ≥20, type-stripping).
98
90
 
99
91
  Подробности: [`docs/13-poc-readiness.md`](docs/13-poc-readiness.md).
100
92
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weather-agent-mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Model-agnostic AI agent with MCP tools over Open-Meteo",
5
5
  "type": "module",
6
6
  "engines": {