@kontent-ai/mcp-server 0.23.1 → 0.23.2

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.
@@ -5,7 +5,7 @@ export const searchOperationSchema = z.object({
5
5
  .describe("Search phrase for AI-powered semantic search. Uses vector database to find content by meaning and similarity, not just exact keyword matching"),
6
6
  filter: z
7
7
  .object({
8
- variantId: z.uuid().describe("UUID of the language variant to filter by"),
8
+ variantId: z.guid().describe("UUID of the language variant to filter by"),
9
9
  })
10
10
  .describe("Mandatory content item variant filter to restrict search scope. Must specify a valid variant UUID"),
11
11
  });
@@ -2,25 +2,25 @@ import { z } from "zod";
2
2
  // Schema for a workflow step
3
3
  const workflowStepSchema = z.object({
4
4
  id: z
5
- .uuid()
5
+ .guid()
6
6
  .describe("The unique identifier of the workflow step in UUID format"),
7
7
  name: z.string().describe("The human-readable name of the workflow step"),
8
8
  codename: z
9
9
  .string()
10
10
  .describe("The codename of the workflow step used for API operations"),
11
11
  transitions_to: z
12
- .array(z.uuid())
12
+ .array(z.guid())
13
13
  .describe("Array of workflow step IDs that this step can transition to")
14
14
  .optional(),
15
15
  role_ids: z
16
- .array(z.uuid())
16
+ .array(z.guid())
17
17
  .describe("Array of role IDs that have permissions for this workflow step")
18
18
  .optional(),
19
19
  });
20
20
  // Schema for the published step
21
21
  const publishedStepSchema = z.object({
22
22
  id: z
23
- .uuid()
23
+ .guid()
24
24
  .describe("The unique identifier of the published step in UUID format"),
25
25
  name: z
26
26
  .string()
@@ -29,18 +29,18 @@ const publishedStepSchema = z.object({
29
29
  .string()
30
30
  .describe("The codename of the published step - typically 'published'"),
31
31
  unpublish_role_ids: z
32
- .array(z.uuid())
32
+ .array(z.guid())
33
33
  .describe("Array of role IDs that can unpublish content from this step")
34
34
  .optional(),
35
35
  create_new_version_role_ids: z
36
- .array(z.uuid())
36
+ .array(z.guid())
37
37
  .describe("Array of role IDs that can create new versions of content in this step")
38
38
  .optional(),
39
39
  });
40
40
  // Schema for the scheduled step
41
41
  const scheduledStepSchema = z.object({
42
42
  id: z
43
- .uuid()
43
+ .guid()
44
44
  .describe("The unique identifier of the scheduled step in UUID format"),
45
45
  name: z
46
46
  .string()
@@ -52,7 +52,7 @@ const scheduledStepSchema = z.object({
52
52
  // Schema for the archived step
53
53
  const archivedStepSchema = z.object({
54
54
  id: z
55
- .uuid()
55
+ .guid()
56
56
  .describe("The unique identifier of the archived step in UUID format"),
57
57
  name: z
58
58
  .string()
@@ -61,7 +61,7 @@ const archivedStepSchema = z.object({
61
61
  .string()
62
62
  .describe("The codename of the archived step - typically 'archived'"),
63
63
  role_ids: z
64
- .array(z.uuid())
64
+ .array(z.guid())
65
65
  .describe("Array of role IDs that can unarchive content from this step")
66
66
  .optional(),
67
67
  });
@@ -70,14 +70,14 @@ const workflowScopeSchema = z.object({
70
70
  content_types: z
71
71
  .array(z.object({
72
72
  id: z
73
- .uuid()
73
+ .guid()
74
74
  .describe("The unique identifier of the content type in UUID format"),
75
75
  }))
76
76
  .describe("Array of content types that this workflow applies to"),
77
77
  });
78
78
  // Main workflow schema
79
79
  export const workflowSchema = z.object({
80
- id: z.uuid().describe("The unique identifier of the workflow in UUID format"),
80
+ id: z.guid().describe("The unique identifier of the workflow in UUID format"),
81
81
  name: z.string().describe("The human-readable name of the workflow"),
82
82
  codename: z
83
83
  .string()
@@ -148,7 +148,7 @@ export function initializeApplicationInsights() {
148
148
  .setAutoCollectDependencies(false)
149
149
  .setAutoDependencyCorrelation(false)
150
150
  .setAutoCollectHeartbeat(false)
151
- .setAutoCollectPerformance(false, false)
151
+ .setAutoCollectPerformance(false)
152
152
  .setAutoCollectIncomingRequestAzureFunctions(false)
153
153
  .setAutoCollectPreAggregatedMetrics(false)
154
154
  .start();
@@ -4,12 +4,12 @@ import { handleMcpToolError } from "../utils/errorHandler.js";
4
4
  import { createMcpToolSuccessResponse } from "../utils/responseHelper.js";
5
5
  export const registerTool = (server) => {
6
6
  server.tool("change-variant-workflow-step-mapi", "Change Kontent.ai variant workflow step", {
7
- itemId: z.uuid().describe("Content item UUID"),
7
+ itemId: z.guid().describe("Content item UUID"),
8
8
  languageId: z
9
- .uuid()
9
+ .guid()
10
10
  .describe("Language variant UUID (default: 00000000-0000-0000-0000-000000000000)"),
11
- workflowId: z.uuid().describe("Workflow UUID"),
12
- workflowStepId: z.uuid().describe("Target workflow step UUID"),
11
+ workflowId: z.guid().describe("Workflow UUID"),
12
+ workflowStepId: z.guid().describe("Target workflow step UUID"),
13
13
  }, async ({ itemId, languageId, workflowId, workflowStepId }, { authInfo: { token, clientId } = {} }) => {
14
14
  const client = createMapiClient(clientId, token);
15
15
  try {
@@ -4,9 +4,9 @@ import { handleMcpToolError } from "../utils/errorHandler.js";
4
4
  import { createMcpToolSuccessResponse } from "../utils/responseHelper.js";
5
5
  export const registerTool = (server) => {
6
6
  server.tool("create-variant-version-mapi", "Create new version of Kontent.ai variant", {
7
- itemId: z.uuid().describe("Content item UUID"),
7
+ itemId: z.guid().describe("Content item UUID"),
8
8
  languageId: z
9
- .uuid()
9
+ .guid()
10
10
  .describe("Language variant UUID (default: 00000000-0000-0000-0000-000000000000)"),
11
11
  }, async ({ itemId, languageId }, { authInfo: { token, clientId } = {} }) => {
12
12
  const client = createMapiClient(clientId, token);
@@ -4,9 +4,9 @@ import { handleMcpToolError } from "../utils/errorHandler.js";
4
4
  import { createMcpToolSuccessResponse } from "../utils/responseHelper.js";
5
5
  export const registerTool = (server) => {
6
6
  server.tool("publish-variant-mapi", "Publish or schedule Kontent.ai variant. For scheduling, verify current UTC time before using scheduledTo.", {
7
- itemId: z.uuid().describe("Content item UUID"),
7
+ itemId: z.guid().describe("Content item UUID"),
8
8
  languageId: z
9
- .uuid()
9
+ .guid()
10
10
  .describe("Language variant UUID (default: 00000000-0000-0000-0000-000000000000)"),
11
11
  scheduledTo: z.iso
12
12
  .datetime({ offset: true })
@@ -4,9 +4,9 @@ import { handleMcpToolError } from "../utils/errorHandler.js";
4
4
  import { createMcpToolSuccessResponse } from "../utils/responseHelper.js";
5
5
  export const registerTool = (server) => {
6
6
  server.tool("unpublish-variant-mapi", "Unpublish or schedule unpublishing Kontent.ai variant. For scheduling, verify current UTC time before using scheduledTo.", {
7
- itemId: z.uuid().describe("Content item UUID"),
7
+ itemId: z.guid().describe("Content item UUID"),
8
8
  languageId: z
9
- .uuid()
9
+ .guid()
10
10
  .describe("Language variant UUID (default: 00000000-0000-0000-0000-000000000000)"),
11
11
  scheduledTo: z.iso
12
12
  .datetime({ offset: true })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontent-ai/mcp-server",
3
- "version": "0.23.1",
3
+ "version": "0.23.2",
4
4
  "type": "module",
5
5
  "mcpName": "io.github.kontent-ai/mcp-server",
6
6
  "repository": {
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "@kontent-ai/management-sdk": "^8.1.0",
33
33
  "@modelcontextprotocol/sdk": "^1.24.3",
34
- "applicationinsights": "^3.12.1",
34
+ "applicationinsights": "^2.9.8",
35
35
  "dotenv": "^17.2.3",
36
36
  "express": "^5.2.1",
37
37
  "p-retry": "^7.1.1",