@mcp-abap-adt/calm-server 0.4.0 → 0.4.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLogs.d.ts","sourceRoot":"","sources":["../../../src/tools/logs/getLogs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"getLogs.d.ts","sourceRoot":"","sources":["../../../src/tools/logs/getLogs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;CAClB;AAmED,eAAO,MAAM,WAAW,EAAE,iBAAiB,CAAC,YAAY,EAAE,cAAc,CAGvE,CAAC"}
|
|
@@ -12,16 +12,25 @@ const definition = {
|
|
|
12
12
|
provider: { type: 'string', description: 'Log provider name.' },
|
|
13
13
|
serviceId: {
|
|
14
14
|
type: 'string',
|
|
15
|
-
description: '
|
|
15
|
+
description: 'Service id filter, emitted as a plain `serviceId` query param. The live Logs API requires it alongside `provider` and rejects a request without it (HTTP 428).',
|
|
16
16
|
},
|
|
17
17
|
from: { type: 'string', description: 'ISO timestamp, inclusive start.' },
|
|
18
18
|
to: { type: 'string', description: 'ISO timestamp, exclusive end.' },
|
|
19
19
|
period: {
|
|
20
20
|
type: 'string',
|
|
21
|
-
description: 'Period shorthand (e.g. "
|
|
21
|
+
description: 'Period shorthand in the Logs API format `<n>M` minutes (e.g. "10M" = last 10 minutes), NOT "1h"/"24h". Alternative to from/to. Wide windows can exceed the server count cap (HTTP 403) — narrow the period.',
|
|
22
|
+
},
|
|
23
|
+
limit: {
|
|
24
|
+
type: 'integer',
|
|
25
|
+
minimum: 1,
|
|
26
|
+
maximum: 1000,
|
|
27
|
+
description: 'Max records to return. The Logs API only honours this together with the count-cap strategy — the client auto-sets `onLimit="truncate"` when `limit` is given, so paging works out of the box.',
|
|
22
28
|
},
|
|
23
|
-
limit: { type: 'integer', minimum: 1, maximum: 1000 },
|
|
24
29
|
offset: { type: 'integer', minimum: 0 },
|
|
30
|
+
onLimit: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
description: 'Server-side count-cap strategy. Defaults to "truncate" when `limit`/`offset` is set (the only value that returns data on a window over the cap; otherwise the API responds HTTP 403). Override only if you know another value the tenant accepts.',
|
|
33
|
+
},
|
|
25
34
|
},
|
|
26
35
|
},
|
|
27
36
|
};
|
|
@@ -41,6 +50,7 @@ const handler = async (ctx, args) => {
|
|
|
41
50
|
period: args.period,
|
|
42
51
|
limit: args.limit,
|
|
43
52
|
offset: args.offset,
|
|
53
|
+
onLimit: args.onLimit,
|
|
44
54
|
});
|
|
45
55
|
return { records };
|
|
46
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLogs.js","sourceRoot":"","sources":["../../../src/tools/logs/getLogs.ts"],"names":[],"mappings":";;;AAKA,uCAAiE;
|
|
1
|
+
{"version":3,"file":"getLogs.js","sourceRoot":"","sources":["../../../src/tools/logs/getLogs.ts"],"names":[],"mappings":";;;AAKA,uCAAiE;AAiBjE,MAAM,UAAU,GAAwB;IACtC,IAAI,EAAE,eAAe;IACrB,WAAW,EACT,ySAAyS;IAC3S,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,UAAU,CAAC;QACtB,UAAU,EAAE;YACV,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,oBAAoB,EAAE;YAC/D,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,gKAAgK;aACnK;YACD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,iCAAiC,EAAE;YACxE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,+BAA+B,EAAE;YACpE,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,6MAA6M;aAChN;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,IAAI;gBACb,WAAW,EACT,+LAA+L;aAClM;YACD,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE;YACvC,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,mPAAmP;aACtP;SACF;KACF;CACF,CAAC;AAEF,MAAM,OAAO,GAAkD,KAAK,EAClE,GAAG,EACH,IAAI,EACJ,EAAE;IACF,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC;QACpB,MAAM,IAAI,qBAAa,CAAC;YACtB,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE,sBAAsB;SAChC,CAAC,CAAC;IACL,CAAC;IACD,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC;YAC3C,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC,CAAC;QACH,OAAO,EAAE,OAAO,EAAE,CAAC;IACrB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAA,2BAAmB,EAAC,GAAG,CAAC,CAAC;IACjC,CAAC;AACH,CAAC,CAAC;AAEW,QAAA,WAAW,GAAoD;IAC1E,cAAc,EAAE,UAAU;IAC1B,OAAO;CACR,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/calm-server",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "MCP server + reusable tool primitives for SAP Cloud ALM, backed by @mcp-abap-adt/calm-client.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@mcp-abap-adt/auth-broker": "^1.0.5",
|
|
71
71
|
"@mcp-abap-adt/auth-providers": "^1.0.5",
|
|
72
72
|
"@mcp-abap-adt/auth-stores": "^1.0.4",
|
|
73
|
-
"@mcp-abap-adt/calm-client": "^0.4.
|
|
73
|
+
"@mcp-abap-adt/calm-client": "^0.4.2",
|
|
74
74
|
"@mcp-abap-adt/interfaces": "^7.1.0",
|
|
75
75
|
"@modelcontextprotocol/sdk": "^1.0.0"
|
|
76
76
|
},
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@mcp-abap-adt/auth-broker": "^1.0.5",
|
|
83
83
|
"@mcp-abap-adt/auth-providers": "^1.0.5",
|
|
84
84
|
"@mcp-abap-adt/auth-stores": "^1.0.4",
|
|
85
|
-
"@mcp-abap-adt/calm-client": "^0.4.
|
|
85
|
+
"@mcp-abap-adt/calm-client": "^0.4.2",
|
|
86
86
|
"@mcp-abap-adt/interfaces": "^7.1.0",
|
|
87
87
|
"@mcp-abap-adt/logger": "^0.1.4",
|
|
88
88
|
"@modelcontextprotocol/sdk": "^1.0.0",
|