integram-mcp 0.7.25 → 0.7.26

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 +4 -4
  2. package/index.js +4 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -15,7 +15,7 @@ claude mcp add integram \
15
15
  -e INTEGRAM_URL=https://ai2o.online \
16
16
  -e INTEGRAM_EMAIL=you@example.com \
17
17
  -e INTEGRAM_PASSWORD=secret \
18
- -- npx -y integram-mcp@0.7.25
18
+ -- npx -y integram-mcp@0.7.26
19
19
  ```
20
20
 
21
21
  Ставить ничего не нужно: `npx` скачает пакет сам.
@@ -43,7 +43,7 @@ claude mcp add integram \
43
43
  -e INTEGRAM_URL=http://localhost:8081 \
44
44
  -e INTEGRAM_EMAIL=you@example.com \
45
45
  -e INTEGRAM_PASSWORD=secret \
46
- -- npx -y integram-mcp@0.7.25
46
+ -- npx -y integram-mcp@0.7.26
47
47
  ```
48
48
 
49
49
  Удалить: `claude mcp remove integram`
@@ -57,7 +57,7 @@ claude mcp add integram \
57
57
  "mcpServers": {
58
58
  "integram": {
59
59
  "command": "npx",
60
- "args": ["-y", "integram-mcp@0.7.25"],
60
+ "args": ["-y", "integram-mcp@0.7.26"],
61
61
  "env": {
62
62
  "INTEGRAM_URL": "https://ai2o.online",
63
63
  "INTEGRAM_EMAIL": "you@example.com",
@@ -77,7 +77,7 @@ claude mcp add integram \
77
77
  "mcpServers": {
78
78
  "integram": {
79
79
  "command": "npx",
80
- "args": ["-y", "integram-mcp@0.7.25"],
80
+ "args": ["-y", "integram-mcp@0.7.26"],
81
81
  "env": {
82
82
  "INTEGRAM_URL": "https://ai2o.online",
83
83
  "INTEGRAM_EMAIL": "you@example.com",
package/index.js CHANGED
@@ -142,7 +142,6 @@ function log(msg) {
142
142
  const UPDATE_CHECK_INTERVAL_MS = 24 * 60 * 60 * 1000;
143
143
  const NPM_REGISTRY = (process.env.npm_config_registry || 'https://registry.npmjs.org').replace(/\/$/, '');
144
144
  let updateNotice = null; // текст приписки, когда есть версия новее
145
- let updateNoticeDelivered = false; // приписка отдаётся один раз за процесс
146
145
 
147
146
  // Сравнение версий: >0 если a новее b. Предвыпуск (0.8.0-beta.1) считается
148
147
  // старше своего релиза и не поднимает сигнал.
@@ -201,11 +200,12 @@ async function checkForUpdate() {
201
200
  } catch { /* нет сети, реестр недоступен, прокси — работе сервера не мешает */ }
202
201
  }
203
202
 
204
- // Приписывает сигнал к результату первого вызова инструмента — один раз.
203
+ // Приписывает сигнал к КАЖДОМУ ответу инструмента, пока юзер не обновится:
204
+ // одноразовая приписка в длинной сессии теряется, а устаревшая сборка — это
205
+ // дыра против юзера (нет новых тулов и фиксов до ручного обновления).
205
206
  function withUpdateNotice(result) {
206
- if (!updateNotice || updateNoticeDelivered) return result;
207
+ if (!updateNotice) return result;
207
208
  if (!result || !Array.isArray(result.content)) return result;
208
- updateNoticeDelivered = true;
209
209
  return { ...result, content: [...result.content, { type: 'text', text: updateNotice }] };
210
210
  }
211
211
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "integram-mcp",
3
- "version": "0.7.25",
3
+ "version": "0.7.26",
4
4
  "type": "module",
5
5
  "description": "MCP server for Integram — connect AI assistants to your workspace via Model Context Protocol",
6
6
  "mcpName": "io.github.judas-priest/integram",