@instantkom/mcp-server 3.163.1 → 3.165.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../../../src/tools/public/health.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,wBAAsB,SAAS,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,CAWlE;AAED,eAAO,MAAM,WAAW;;;;;;;;GAUvB,CAAC"}
1
+ {"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../../../src/tools/public/health.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,wBAAsB,SAAS,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,CAsBlE;AAED,eAAO,MAAM,WAAW;;;;;;;;GAUvB,CAAC"}
@@ -3,12 +3,24 @@
3
3
  * No authentication required
4
4
  */
5
5
  export async function getHealth(apiClient) {
6
- const response = await apiClient.get('/v1/health');
6
+ // /v1/health returns HTTP 503 when degraded/unhealthy (#4510); ApiClient.get
7
+ // throws on non-2xx. A degraded API is a valid, reportable state -- not a
8
+ // tool failure -- so surface the status instead of throwing.
9
+ let payload;
10
+ try {
11
+ payload = await apiClient.get('/v1/health');
12
+ }
13
+ catch (error) {
14
+ payload = {
15
+ status: 'unavailable',
16
+ error: error instanceof Error ? error.message : String(error),
17
+ };
18
+ }
7
19
  return {
8
20
  content: [
9
21
  {
10
22
  type: 'text',
11
- text: JSON.stringify(response, null, 2),
23
+ text: JSON.stringify(payload, null, 2),
12
24
  },
13
25
  ],
14
26
  };
@@ -1 +1 @@
1
- {"version":3,"file":"health.js","sourceRoot":"","sources":["../../../src/tools/public/health.ts"],"names":[],"mappings":"AAA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QACE,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,8CAA8C;QAC3D,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE;YACd,QAAQ,EAAE,EAAE;SACb;KACF;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instantkom/mcp-server",
3
- "version": "3.163.1",
3
+ "version": "3.165.0",
4
4
  "description": "Model Context Protocol Server for the instantKOM REST API. Lets Claude Code, Claude Desktop and other MCP-compatible AI assistants drive your instantKOM messengerzentrale.",
5
5
  "main": "dist/index.public.js",
6
6
  "types": "dist/index.public.d.ts",