@kontent-ai/mcp-server 0.14.0 → 0.15.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.
@@ -20,6 +20,10 @@ export const filterVariantsSchema = z.object({
20
20
  .min(1)
21
21
  .optional()
22
22
  .describe("Array of references to users by their id or email"),
23
+ has_no_contributors: z
24
+ .boolean()
25
+ .optional()
26
+ .describe("Filter for content item language variants that have no contributors assigned"),
23
27
  completion_statuses: z
24
28
  .array(z.enum(["unfinished", "completed", "not_translated", "all_done"]))
25
29
  .min(1)
@@ -39,6 +43,19 @@ export const filterVariantsSchema = z.object({
39
43
  .min(1)
40
44
  .optional()
41
45
  .describe("Array of workflows with workflow steps"),
46
+ taxonomy_groups: z
47
+ .array(z.object({
48
+ taxonomy_identifier: referenceObjectSchema.describe("Reference to a taxonomy group by its id, codename, or external id"),
49
+ term_identifiers: z
50
+ .array(referenceObjectSchema)
51
+ .describe("Array of references to taxonomy terms by their id, codename, or external id"),
52
+ include_uncategorized: z
53
+ .boolean()
54
+ .describe("Whether to include content item language variants that don't have any taxonomy terms assigned in this taxonomy group"),
55
+ }))
56
+ .min(1)
57
+ .optional()
58
+ .describe("Array of taxonomy groups with taxonomy terms"),
42
59
  order_by: z
43
60
  .enum(["name", "due", "last_modified"])
44
61
  .optional()
@@ -3,16 +3,18 @@ import { handleMcpToolError } from "../utils/errorHandler.js";
3
3
  import { createMcpToolSuccessResponse } from "../utils/responseHelper.js";
4
4
  import { throwError } from "../utils/throwError.js";
5
5
  export const registerTool = (server) => {
6
- server.tool("filter-variants-mapi", "Search and filter Kontent.ai language variants of content items using Management API", filterVariantsSchema.shape, async ({ search_phrase, content_types, contributors, completion_statuses, language, workflow_steps, order_by, order_direction, continuation_token, }) => {
6
+ server.tool("filter-variants-mapi", "Search and filter Kontent.ai language variants of content items using Management API", filterVariantsSchema.shape, async ({ search_phrase, content_types, contributors, has_no_contributors, completion_statuses, language, workflow_steps, taxonomy_groups, order_by, order_direction, continuation_token, }) => {
7
7
  try {
8
8
  const requestPayload = {
9
9
  filters: {
10
10
  search_phrase,
11
11
  content_types,
12
12
  contributors,
13
+ has_no_contributors,
13
14
  completion_statuses,
14
15
  language,
15
16
  workflow_steps,
17
+ taxonomy_groups,
16
18
  },
17
19
  order: order_by
18
20
  ? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontent-ai/mcp-server",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "rimraf build && tsc",