@contentful/mcp-tools 0.4.0 → 0.4.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.
Files changed (2) hide show
  1. package/dist/index.js +14 -15
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -642,7 +642,7 @@ function createAiActionTools(config) {
642
642
  inputParams: PublishAiActionToolParams.shape,
643
643
  annotations: {
644
644
  readOnlyHint: false,
645
- destructiveHint: false,
645
+ destructiveHint: true,
646
646
  idempotentHint: true,
647
647
  // Publishing same item multiple times has same effect
648
648
  openWorldHint: false
@@ -655,7 +655,7 @@ function createAiActionTools(config) {
655
655
  inputParams: UnpublishAiActionToolParams.shape,
656
656
  annotations: {
657
657
  readOnlyHint: false,
658
- destructiveHint: false,
658
+ destructiveHint: true,
659
659
  idempotentHint: true,
660
660
  // Unpublishing same item multiple times has same effect
661
661
  openWorldHint: false
@@ -1348,7 +1348,7 @@ function createAssetTools(config) {
1348
1348
  inputParams: PublishAssetToolParams.shape,
1349
1349
  annotations: {
1350
1350
  readOnlyHint: false,
1351
- destructiveHint: false,
1351
+ destructiveHint: true,
1352
1352
  idempotentHint: true,
1353
1353
  openWorldHint: false
1354
1354
  },
@@ -1360,7 +1360,7 @@ function createAssetTools(config) {
1360
1360
  inputParams: UnpublishAssetToolParams.shape,
1361
1361
  annotations: {
1362
1362
  readOnlyHint: false,
1363
- destructiveHint: false,
1363
+ destructiveHint: true,
1364
1364
  idempotentHint: true,
1365
1365
  openWorldHint: false
1366
1366
  },
@@ -1372,7 +1372,7 @@ function createAssetTools(config) {
1372
1372
  inputParams: ArchiveAssetToolParams.shape,
1373
1373
  annotations: {
1374
1374
  readOnlyHint: false,
1375
- destructiveHint: false,
1375
+ destructiveHint: true,
1376
1376
  idempotentHint: true,
1377
1377
  openWorldHint: false
1378
1378
  },
@@ -1800,7 +1800,7 @@ function createContentTypeTools(config) {
1800
1800
  inputParams: PublishContentTypeToolParams.shape,
1801
1801
  annotations: {
1802
1802
  readOnlyHint: false,
1803
- destructiveHint: false,
1803
+ destructiveHint: true,
1804
1804
  idempotentHint: true,
1805
1805
  openWorldHint: false
1806
1806
  },
@@ -1812,7 +1812,7 @@ function createContentTypeTools(config) {
1812
1812
  inputParams: UnpublishContentTypeToolParams.shape,
1813
1813
  annotations: {
1814
1814
  readOnlyHint: false,
1815
- destructiveHint: false,
1815
+ destructiveHint: true,
1816
1816
  idempotentHint: true,
1817
1817
  openWorldHint: false
1818
1818
  },
@@ -2891,7 +2891,7 @@ function createEntryTools(config) {
2891
2891
  inputParams: PublishEntryToolParams.shape,
2892
2892
  annotations: {
2893
2893
  readOnlyHint: false,
2894
- destructiveHint: false,
2894
+ destructiveHint: true,
2895
2895
  idempotentHint: true,
2896
2896
  openWorldHint: false
2897
2897
  },
@@ -2903,7 +2903,7 @@ function createEntryTools(config) {
2903
2903
  inputParams: UnpublishEntryToolParams.shape,
2904
2904
  annotations: {
2905
2905
  readOnlyHint: false,
2906
- destructiveHint: false,
2906
+ destructiveHint: true,
2907
2907
  idempotentHint: true,
2908
2908
  openWorldHint: false
2909
2909
  },
@@ -2915,7 +2915,7 @@ function createEntryTools(config) {
2915
2915
  inputParams: ArchiveEntryToolParams.shape,
2916
2916
  annotations: {
2917
2917
  readOnlyHint: false,
2918
- destructiveHint: false,
2918
+ destructiveHint: true,
2919
2919
  idempotentHint: true,
2920
2920
  openWorldHint: false
2921
2921
  },
@@ -4333,8 +4333,6 @@ function createTaxonomyTools(config) {
4333
4333
 
4334
4334
  // src/tools/jobs/space-to-space-migration/exportSpace.ts
4335
4335
  import { z as z72 } from "zod";
4336
- import * as contentfulExportModule from "contentful-export";
4337
- import { join } from "path";
4338
4336
 
4339
4337
  // src/types/querySchema.ts
4340
4338
  import { z as z71 } from "zod";
@@ -4356,7 +4354,6 @@ var AssetQuerySchema = z71.object({
4356
4354
  });
4357
4355
 
4358
4356
  // src/tools/jobs/space-to-space-migration/exportSpace.ts
4359
- var contentfulExport = contentfulExportModule.default ?? contentfulExportModule;
4360
4357
  var ExportSpaceToolParams = BaseToolSchema.extend({
4361
4358
  exportDir: z72.string().optional().describe(
4362
4359
  "Directory to save the exported space data (optional, defaults to current directory)"
@@ -4406,8 +4403,10 @@ function createExportSpaceTool(config) {
4406
4403
  contentFile: args.contentFile || `contentful-export-${args.spaceId}.json`
4407
4404
  };
4408
4405
  try {
4409
- const result = await contentfulExport(exportOptions);
4410
- const exportPath = join(
4406
+ const contentfulExport = await import("contentful-export");
4407
+ const path = await import("path");
4408
+ const result = await contentfulExport.default(exportOptions);
4409
+ const exportPath = path.join(
4411
4410
  exportOptions.exportDir,
4412
4411
  exportOptions.contentFile
4413
4412
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/mcp-tools",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",