@contentful/mcp-tools 0.7.0 → 0.12.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.
package/dist/index.d.ts CHANGED
@@ -63,6 +63,8 @@ interface ContentfulConfig {
63
63
  hostDelivery?: string;
64
64
  /** Environment IDs that are protected from write/delete operations */
65
65
  protectedEnvironments?: string[];
66
+ /** Maximum number of IDs allowed in a single bulk-operation tool call. Defaults to 10 when unset. */
67
+ maxBulkSize?: number;
66
68
  }
67
69
 
68
70
  /**
@@ -994,6 +996,7 @@ declare class ContentfulMcpTools {
994
996
  environmentId: zod.ZodString;
995
997
  } & {
996
998
  assetId: zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>;
999
+ dryRun: zod.ZodOptional<zod.ZodBoolean>;
997
1000
  };
998
1001
  annotations: {
999
1002
  readOnlyHint: boolean;
@@ -1005,6 +1008,7 @@ declare class ContentfulMcpTools {
1005
1008
  spaceId: string;
1006
1009
  environmentId: string;
1007
1010
  assetId: string | string[];
1011
+ dryRun?: boolean | undefined;
1008
1012
  }, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
1009
1013
  };
1010
1014
  unpublishAsset: {
@@ -1015,6 +1019,7 @@ declare class ContentfulMcpTools {
1015
1019
  environmentId: zod.ZodString;
1016
1020
  } & {
1017
1021
  assetId: zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>;
1022
+ dryRun: zod.ZodOptional<zod.ZodBoolean>;
1018
1023
  };
1019
1024
  annotations: {
1020
1025
  readOnlyHint: boolean;
@@ -1026,6 +1031,7 @@ declare class ContentfulMcpTools {
1026
1031
  spaceId: string;
1027
1032
  environmentId: string;
1028
1033
  assetId: string | string[];
1034
+ dryRun?: boolean | undefined;
1029
1035
  }, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
1030
1036
  };
1031
1037
  archiveAsset: {
@@ -1036,6 +1042,7 @@ declare class ContentfulMcpTools {
1036
1042
  environmentId: zod.ZodString;
1037
1043
  } & {
1038
1044
  assetId: zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>;
1045
+ dryRun: zod.ZodOptional<zod.ZodBoolean>;
1039
1046
  };
1040
1047
  annotations: {
1041
1048
  readOnlyHint: boolean;
@@ -1047,6 +1054,7 @@ declare class ContentfulMcpTools {
1047
1054
  spaceId: string;
1048
1055
  environmentId: string;
1049
1056
  assetId: string | string[];
1057
+ dryRun?: boolean | undefined;
1050
1058
  }, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
1051
1059
  };
1052
1060
  unarchiveAsset: {
@@ -1057,6 +1065,7 @@ declare class ContentfulMcpTools {
1057
1065
  environmentId: zod.ZodString;
1058
1066
  } & {
1059
1067
  assetId: zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>;
1068
+ dryRun: zod.ZodOptional<zod.ZodBoolean>;
1060
1069
  };
1061
1070
  annotations: {
1062
1071
  readOnlyHint: boolean;
@@ -1068,6 +1077,7 @@ declare class ContentfulMcpTools {
1068
1077
  spaceId: string;
1069
1078
  environmentId: string;
1070
1079
  assetId: string | string[];
1080
+ dryRun?: boolean | undefined;
1071
1081
  }, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
1072
1082
  };
1073
1083
  };
@@ -4389,6 +4399,27 @@ declare class ContentfulMcpTools {
4389
4399
  };
4390
4400
  }, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
4391
4401
  };
4402
+ semanticSearch: {
4403
+ title: string;
4404
+ description: string;
4405
+ inputParams: {
4406
+ spaceId: zod.ZodString;
4407
+ environmentId: zod.ZodString;
4408
+ } & {
4409
+ query: zod.ZodString;
4410
+ contentTypeIds: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
4411
+ };
4412
+ annotations: {
4413
+ readOnlyHint: boolean;
4414
+ openWorldHint: boolean;
4415
+ };
4416
+ tool: (params: {
4417
+ spaceId: string;
4418
+ environmentId: string;
4419
+ query: string;
4420
+ contentTypeIds?: string[] | undefined;
4421
+ }, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
4422
+ };
4392
4423
  createEntry: {
4393
4424
  title: string;
4394
4425
  description: string;
@@ -4689,6 +4720,48 @@ declare class ContentfulMcpTools {
4689
4720
  entryId: string;
4690
4721
  }, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
4691
4722
  };
4723
+ resolveEntryReferences: {
4724
+ title: string;
4725
+ description: string;
4726
+ inputParams: {
4727
+ spaceId: zod.ZodString;
4728
+ environmentId: zod.ZodString;
4729
+ } & {
4730
+ entryId: zod.ZodString;
4731
+ include: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
4732
+ };
4733
+ annotations: {
4734
+ readOnlyHint: boolean;
4735
+ openWorldHint: boolean;
4736
+ };
4737
+ tool: (params: {
4738
+ spaceId: string;
4739
+ environmentId: string;
4740
+ entryId: string;
4741
+ include?: number | undefined;
4742
+ }, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
4743
+ };
4744
+ getEntrySnapshot: {
4745
+ title: string;
4746
+ description: string;
4747
+ inputParams: {
4748
+ spaceId: zod.ZodString;
4749
+ environmentId: zod.ZodString;
4750
+ } & {
4751
+ entryId: zod.ZodString;
4752
+ snapshotId: zod.ZodOptional<zod.ZodString>;
4753
+ };
4754
+ annotations: {
4755
+ readOnlyHint: boolean;
4756
+ openWorldHint: boolean;
4757
+ };
4758
+ tool: (params: {
4759
+ spaceId: string;
4760
+ environmentId: string;
4761
+ entryId: string;
4762
+ snapshotId?: string | undefined;
4763
+ }, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
4764
+ };
4692
4765
  updateEntry: {
4693
4766
  title: string;
4694
4767
  description: string;
@@ -4697,6 +4770,7 @@ declare class ContentfulMcpTools {
4697
4770
  environmentId: zod.ZodString;
4698
4771
  } & {
4699
4772
  entryId: zod.ZodString;
4773
+ version: zod.ZodNumber;
4700
4774
  fields: zod.ZodRecord<zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean, zod.ZodObject<{
4701
4775
  nodeType: zod.ZodLiteral<_contentful_rich_text_types.BLOCKS.DOCUMENT>;
4702
4776
  data: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
@@ -4917,6 +4991,7 @@ declare class ContentfulMcpTools {
4917
4991
  openWorldHint: boolean;
4918
4992
  };
4919
4993
  tool: (params: {
4994
+ version: number;
4920
4995
  spaceId: string;
4921
4996
  environmentId: string;
4922
4997
  fields: Record<string, Record<string, string[] | {
@@ -5003,6 +5078,7 @@ declare class ContentfulMcpTools {
5003
5078
  environmentId: zod.ZodString;
5004
5079
  } & {
5005
5080
  entryId: zod.ZodArray<zod.ZodString, "many">;
5081
+ dryRun: zod.ZodOptional<zod.ZodBoolean>;
5006
5082
  };
5007
5083
  annotations: {
5008
5084
  readOnlyHint: boolean;
@@ -5014,6 +5090,7 @@ declare class ContentfulMcpTools {
5014
5090
  spaceId: string;
5015
5091
  environmentId: string;
5016
5092
  entryId: string[];
5093
+ dryRun?: boolean | undefined;
5017
5094
  }, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
5018
5095
  };
5019
5096
  unpublishEntry: {
@@ -5024,6 +5101,7 @@ declare class ContentfulMcpTools {
5024
5101
  environmentId: zod.ZodString;
5025
5102
  } & {
5026
5103
  entryId: zod.ZodArray<zod.ZodString, "many">;
5104
+ dryRun: zod.ZodOptional<zod.ZodBoolean>;
5027
5105
  };
5028
5106
  annotations: {
5029
5107
  readOnlyHint: boolean;
@@ -5035,6 +5113,7 @@ declare class ContentfulMcpTools {
5035
5113
  spaceId: string;
5036
5114
  environmentId: string;
5037
5115
  entryId: string[];
5116
+ dryRun?: boolean | undefined;
5038
5117
  }, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
5039
5118
  };
5040
5119
  archiveEntry: {
@@ -5045,6 +5124,7 @@ declare class ContentfulMcpTools {
5045
5124
  environmentId: zod.ZodString;
5046
5125
  } & {
5047
5126
  entryId: zod.ZodArray<zod.ZodString, "many">;
5127
+ dryRun: zod.ZodOptional<zod.ZodBoolean>;
5048
5128
  };
5049
5129
  annotations: {
5050
5130
  readOnlyHint: boolean;
@@ -5056,6 +5136,7 @@ declare class ContentfulMcpTools {
5056
5136
  spaceId: string;
5057
5137
  environmentId: string;
5058
5138
  entryId: string[];
5139
+ dryRun?: boolean | undefined;
5059
5140
  }, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
5060
5141
  };
5061
5142
  unarchiveEntry: {
@@ -5066,6 +5147,7 @@ declare class ContentfulMcpTools {
5066
5147
  environmentId: zod.ZodString;
5067
5148
  } & {
5068
5149
  entryId: zod.ZodArray<zod.ZodString, "many">;
5150
+ dryRun: zod.ZodOptional<zod.ZodBoolean>;
5069
5151
  };
5070
5152
  annotations: {
5071
5153
  readOnlyHint: boolean;
@@ -5077,6 +5159,7 @@ declare class ContentfulMcpTools {
5077
5159
  spaceId: string;
5078
5160
  environmentId: string;
5079
5161
  entryId: string[];
5162
+ dryRun?: boolean | undefined;
5080
5163
  }, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
5081
5164
  };
5082
5165
  };