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.
- package/README.md +12 -20
- 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
|
|
33
|
+
## MCP в Cursor / Copilot
|
|
34
34
|
|
|
35
|
-
|
|
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
|
-
###
|
|
38
|
+
### Cursor
|
|
38
39
|
|
|
39
|
-
|
|
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
|
-
|
|
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
|
-
### Из клона (
|
|
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
|
-
|
|
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
|
|