weather-agent-mcp 0.1.3 → 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 (2) hide show
  1. package/README.md +17 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -32,39 +32,43 @@ 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.3`).
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 как GUI-приложение часто **не видит** `npx` из Volta/nvm (ошибка `Connection closed`). Укажите **абсолютный** путь: `which npx`.
39
-
40
- ### Cursor
41
-
42
- Файл `~/.cursor/mcp.json` (или MCP config проекта):
38
+ ### Cursor через npm (`npx`)
43
39
 
44
40
  ```json
45
41
  {
46
42
  "mcpServers": {
47
43
  "open-meteo-weather": {
48
- "command": "/Users/mac/.volta/bin/npx",
49
- "args": ["-y", "weather-agent-mcp@0.1.3"]
44
+ "command": "npx",
45
+ "args": ["-y", "weather-agent-mcp"]
50
46
  }
51
47
  }
52
48
  }
53
49
  ```
54
50
 
55
- Перезапустите Cursor (или Reload MCP). Tools: `geocode`, `getCurrentWeather`, `getForecast`, `compareWeather`.
51
+ Cursor (GUI) по умолчанию не видит Volta. Один раз для macOS:
56
52
 
57
- ### GitHub Copilot / VS Code
53
+ ```bash
54
+ sudo launchctl config user path "$HOME/.volta/bin:/usr/bin:/bin:/usr/sbin:/sbin"
55
+ ```
58
56
 
59
- `.vscode/mcp.json` или настройки MCP:
57
+ Затем **полный выход из Cursor и macOS logout/login** (или reboot). После этого обычный `npx` находит пакет с npm.
58
+
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
60
64
 
61
65
  ```json
62
66
  {
63
67
  "servers": {
64
68
  "open-meteo-weather": {
65
69
  "type": "stdio",
66
- "command": "/Users/mac/.volta/bin/npx",
67
- "args": ["-y", "weather-agent-mcp@0.1.3"]
70
+ "command": "npx",
71
+ "args": ["-y", "weather-agent-mcp"]
68
72
  }
69
73
  }
70
74
  }
@@ -88,8 +92,6 @@ npm install && npm run build
88
92
  }
89
93
  ```
90
94
 
91
- Без сборки: `npm run mcp` или `"args": ["src/mcp-server/index.ts"]` (Node ≥20, type-stripping).
92
-
93
95
  Подробности: [`docs/13-poc-readiness.md`](docs/13-poc-readiness.md).
94
96
 
95
97
  ## Архитектура
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weather-agent-mcp",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Model-agnostic AI agent with MCP tools over Open-Meteo",
5
5
  "type": "module",
6
6
  "engines": {