@kentico/management-api-mcp 31.2.1-preview → 31.2.3-preview

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/dist/index.js +7 -2
  2. package/package.json +6 -1
package/dist/index.js CHANGED
@@ -1796,11 +1796,16 @@ var StdioTransport = class {
1796
1796
  if (line.trim()) {
1797
1797
  try {
1798
1798
  const message = JSON.parse(line);
1799
+ const is_init = message.method === "initialize";
1800
+ const session_info = is_init ? {
1801
+ clientCapabilities: message.params?.capabilities,
1802
+ clientInfo: message.params?.clientInfo
1803
+ } : this.#session_info;
1799
1804
  const response = await this.#server.receive(message, {
1800
1805
  custom: ctx,
1801
1806
  sessionInfo: (
1802
1807
  /** @type {Context["sessionInfo"]} */
1803
- this.#session_info
1808
+ session_info
1804
1809
  )
1805
1810
  });
1806
1811
  if (response) {
@@ -3346,7 +3351,7 @@ var ImplementationSchema = object({
3346
3351
  websiteUrl: optional(string()),
3347
3352
  ...IconsSchema.entries
3348
3353
  });
3349
- var ClientCapabilitiesSchema = object({
3354
+ var ClientCapabilitiesSchema = looseObject({
3350
3355
  /**
3351
3356
  * Experimental, non-standard capabilities that the client supports.
3352
3357
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kentico/management-api-mcp",
3
- "version": "31.2.1-preview",
3
+ "version": "31.2.3-preview",
4
4
  "description": "Model Context Protocol server for Xperience by Kentico Management API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -50,6 +50,11 @@
50
50
  "typescript-eslint": "^8.54.0",
51
51
  "clean-pkg-json": "^1.3.0"
52
52
  },
53
+ "overrides": {
54
+ "serve-handler": {
55
+ "minimatch": "3.1.3"
56
+ }
57
+ },
53
58
  "engines": {
54
59
  "node": ">= 22.0.0"
55
60
  }