weather-agent-mcp 0.1.2 → 0.1.4

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 (3) hide show
  1. package/README.md +13 -9
  2. package/dist/weather-mcp.js +34498 -104
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -32,12 +32,10 @@ npm run ask -- --provider=claude "Стоит ли брать дождевик в
32
32
 
33
33
  ## MCP в Cursor / Copilot
34
34
 
35
- Пакет на npm: [`weather-agent-mcp`](https://www.npmjs.com/package/weather-agent-mcp) (`0.1.2`).
35
+ Пакет на npm: [`weather-agent-mcp`](https://www.npmjs.com/package/weather-agent-mcp).
36
36
  Хост получает **tools** (geocode / current / forecast / compare); agent loop остаётся у Cursor/Copilot.
37
37
 
38
- ### Cursor
39
-
40
- Файл `~/.cursor/mcp.json` (или MCP config проекта):
38
+ ### Cursor через npm (`npx`)
41
39
 
42
40
  ```json
43
41
  {
@@ -50,11 +48,19 @@ npm run ask -- --provider=claude "Стоит ли брать дождевик в
50
48
  }
51
49
  ```
52
50
 
53
- Перезапустите Cursor (или Reload MCP). В списке tools должны появиться `geocode`, `getCurrentWeather`, `getForecast`, `compareWeather`.
51
+ Cursor (GUI) по умолчанию не видит Volta. Один раз для macOS:
54
52
 
55
- ### GitHub Copilot / VS Code
53
+ ```bash
54
+ sudo launchctl config user path "$HOME/.volta/bin:/usr/bin:/bin:/usr/sbin:/sbin"
55
+ ```
56
+
57
+ Затем **полный выход из Cursor и macOS logout/login** (или reboot). После этого обычный `npx` находит пакет с npm.
56
58
 
57
- `.vscode/mcp.json` или настройки MCP:
59
+ Без `sudo`: можно `launchctl setenv PATH "$HOME/.volta/bin:/usr/bin:/bin:/usr/sbin:/sbin"` и перезапустить Cursor (сбросится после reboot).
60
+
61
+ Reload MCP. Tools: `geocode`, `getCurrentWeather`, `getForecast`, `compareWeather`.
62
+
63
+ ### GitHub Copilot / VS Code
58
64
 
59
65
  ```json
60
66
  {
@@ -86,8 +92,6 @@ npm install && npm run build
86
92
  }
87
93
  ```
88
94
 
89
- Без сборки: `npm run mcp` или `"args": ["src/mcp-server/index.ts"]` (Node ≥20, type-stripping).
90
-
91
95
  Подробности: [`docs/13-poc-readiness.md`](docs/13-poc-readiness.md).
92
96
 
93
97
  ## Архитектура