@contentful/mcp-tools 0.4.5 → 0.7.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 +121 -16
- package/dist/index.js +1052 -521
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,8 @@ interface ContentfulConfig {
|
|
|
61
61
|
deliveryToken?: string;
|
|
62
62
|
/** Contentful Delivery API host (used with deliveryToken for custom CDA endpoints) */
|
|
63
63
|
hostDelivery?: string;
|
|
64
|
+
/** Environment IDs that are protected from write/delete operations */
|
|
65
|
+
protectedEnvironments?: string[];
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
/**
|
|
@@ -396,6 +398,8 @@ declare class ContentfulMcpTools {
|
|
|
396
398
|
environmentId: zod.ZodString;
|
|
397
399
|
} & {
|
|
398
400
|
aiActionId: zod.ZodString;
|
|
401
|
+
confirm: zod.ZodOptional<zod.ZodBoolean>;
|
|
402
|
+
confirmToken: zod.ZodOptional<zod.ZodString>;
|
|
399
403
|
};
|
|
400
404
|
annotations: {
|
|
401
405
|
readOnlyHint: boolean;
|
|
@@ -407,6 +411,8 @@ declare class ContentfulMcpTools {
|
|
|
407
411
|
spaceId: string;
|
|
408
412
|
environmentId: string;
|
|
409
413
|
aiActionId: string;
|
|
414
|
+
confirmToken?: string | undefined;
|
|
415
|
+
confirm?: boolean | undefined;
|
|
410
416
|
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
411
417
|
};
|
|
412
418
|
getAiAction: {
|
|
@@ -649,12 +655,12 @@ declare class ContentfulMcpTools {
|
|
|
649
655
|
contentType: zod.ZodString;
|
|
650
656
|
upload: zod.ZodOptional<zod.ZodString>;
|
|
651
657
|
}, "strip", zod.ZodTypeAny, {
|
|
652
|
-
fileName: string;
|
|
653
658
|
contentType: string;
|
|
659
|
+
fileName: string;
|
|
654
660
|
upload?: string | undefined;
|
|
655
661
|
}, {
|
|
656
|
-
fileName: string;
|
|
657
662
|
contentType: string;
|
|
663
|
+
fileName: string;
|
|
658
664
|
upload?: string | undefined;
|
|
659
665
|
}>;
|
|
660
666
|
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -756,8 +762,8 @@ declare class ContentfulMcpTools {
|
|
|
756
762
|
spaceId: string;
|
|
757
763
|
environmentId: string;
|
|
758
764
|
file: {
|
|
759
|
-
fileName: string;
|
|
760
765
|
contentType: string;
|
|
766
|
+
fileName: string;
|
|
761
767
|
upload?: string | undefined;
|
|
762
768
|
};
|
|
763
769
|
metadata?: {
|
|
@@ -802,12 +808,12 @@ declare class ContentfulMcpTools {
|
|
|
802
808
|
tool: (params: {
|
|
803
809
|
spaceId: string;
|
|
804
810
|
environmentId: string;
|
|
811
|
+
locale?: string | undefined;
|
|
805
812
|
skip?: number | undefined;
|
|
806
813
|
limit?: number | undefined;
|
|
807
814
|
select?: string | undefined;
|
|
808
815
|
include?: number | undefined;
|
|
809
816
|
order?: string | undefined;
|
|
810
|
-
locale?: string | undefined;
|
|
811
817
|
links_to_entry?: string | undefined;
|
|
812
818
|
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
813
819
|
};
|
|
@@ -963,6 +969,8 @@ declare class ContentfulMcpTools {
|
|
|
963
969
|
environmentId: zod.ZodString;
|
|
964
970
|
} & {
|
|
965
971
|
assetId: zod.ZodString;
|
|
972
|
+
confirm: zod.ZodOptional<zod.ZodBoolean>;
|
|
973
|
+
confirmToken: zod.ZodOptional<zod.ZodString>;
|
|
966
974
|
};
|
|
967
975
|
annotations: {
|
|
968
976
|
readOnlyHint: boolean;
|
|
@@ -974,6 +982,8 @@ declare class ContentfulMcpTools {
|
|
|
974
982
|
spaceId: string;
|
|
975
983
|
environmentId: string;
|
|
976
984
|
assetId: string;
|
|
985
|
+
confirmToken?: string | undefined;
|
|
986
|
+
confirm?: boolean | undefined;
|
|
977
987
|
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
978
988
|
};
|
|
979
989
|
publishAsset: {
|
|
@@ -3953,6 +3963,8 @@ declare class ContentfulMcpTools {
|
|
|
3953
3963
|
environmentId: zod.ZodString;
|
|
3954
3964
|
} & {
|
|
3955
3965
|
contentTypeId: zod.ZodString;
|
|
3966
|
+
confirm: zod.ZodOptional<zod.ZodBoolean>;
|
|
3967
|
+
confirmToken: zod.ZodOptional<zod.ZodString>;
|
|
3956
3968
|
};
|
|
3957
3969
|
annotations: {
|
|
3958
3970
|
readOnlyHint: boolean;
|
|
@@ -3964,6 +3976,8 @@ declare class ContentfulMcpTools {
|
|
|
3964
3976
|
spaceId: string;
|
|
3965
3977
|
environmentId: string;
|
|
3966
3978
|
contentTypeId: string;
|
|
3979
|
+
confirmToken?: string | undefined;
|
|
3980
|
+
confirm?: boolean | undefined;
|
|
3967
3981
|
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
3968
3982
|
};
|
|
3969
3983
|
publishContentType: {
|
|
@@ -4008,6 +4022,81 @@ declare class ContentfulMcpTools {
|
|
|
4008
4022
|
contentTypeId: string;
|
|
4009
4023
|
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
4010
4024
|
};
|
|
4025
|
+
omitContentTypeField: {
|
|
4026
|
+
title: string;
|
|
4027
|
+
description: string;
|
|
4028
|
+
inputParams: {
|
|
4029
|
+
spaceId: zod.ZodString;
|
|
4030
|
+
environmentId: zod.ZodString;
|
|
4031
|
+
} & {
|
|
4032
|
+
contentTypeId: zod.ZodString;
|
|
4033
|
+
fieldId: zod.ZodString;
|
|
4034
|
+
omitted: zod.ZodDefault<zod.ZodBoolean>;
|
|
4035
|
+
};
|
|
4036
|
+
annotations: {
|
|
4037
|
+
readOnlyHint: boolean;
|
|
4038
|
+
destructiveHint: boolean;
|
|
4039
|
+
idempotentHint: boolean;
|
|
4040
|
+
openWorldHint: boolean;
|
|
4041
|
+
};
|
|
4042
|
+
tool: (params: {
|
|
4043
|
+
spaceId: string;
|
|
4044
|
+
environmentId: string;
|
|
4045
|
+
contentTypeId: string;
|
|
4046
|
+
omitted: boolean;
|
|
4047
|
+
fieldId: string;
|
|
4048
|
+
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
4049
|
+
};
|
|
4050
|
+
deleteContentTypeField: {
|
|
4051
|
+
title: string;
|
|
4052
|
+
description: string;
|
|
4053
|
+
inputParams: {
|
|
4054
|
+
spaceId: zod.ZodString;
|
|
4055
|
+
environmentId: zod.ZodString;
|
|
4056
|
+
} & {
|
|
4057
|
+
contentTypeId: zod.ZodString;
|
|
4058
|
+
fieldId: zod.ZodString;
|
|
4059
|
+
};
|
|
4060
|
+
annotations: {
|
|
4061
|
+
readOnlyHint: boolean;
|
|
4062
|
+
destructiveHint: boolean;
|
|
4063
|
+
idempotentHint: boolean;
|
|
4064
|
+
openWorldHint: boolean;
|
|
4065
|
+
};
|
|
4066
|
+
tool: (params: {
|
|
4067
|
+
spaceId: string;
|
|
4068
|
+
environmentId: string;
|
|
4069
|
+
contentTypeId: string;
|
|
4070
|
+
fieldId: string;
|
|
4071
|
+
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
4072
|
+
};
|
|
4073
|
+
disableContentTypeField: {
|
|
4074
|
+
title: string;
|
|
4075
|
+
description: string;
|
|
4076
|
+
inputParams: {
|
|
4077
|
+
spaceId: zod.ZodString;
|
|
4078
|
+
environmentId: zod.ZodString;
|
|
4079
|
+
} & {
|
|
4080
|
+
contentTypeId: zod.ZodString;
|
|
4081
|
+
fieldId: zod.ZodString;
|
|
4082
|
+
disabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
4083
|
+
omitted: zod.ZodOptional<zod.ZodBoolean>;
|
|
4084
|
+
};
|
|
4085
|
+
annotations: {
|
|
4086
|
+
readOnlyHint: boolean;
|
|
4087
|
+
destructiveHint: boolean;
|
|
4088
|
+
idempotentHint: boolean;
|
|
4089
|
+
openWorldHint: boolean;
|
|
4090
|
+
};
|
|
4091
|
+
tool: (params: {
|
|
4092
|
+
spaceId: string;
|
|
4093
|
+
environmentId: string;
|
|
4094
|
+
contentTypeId: string;
|
|
4095
|
+
fieldId: string;
|
|
4096
|
+
disabled?: boolean | undefined;
|
|
4097
|
+
omitted?: boolean | undefined;
|
|
4098
|
+
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
4099
|
+
};
|
|
4011
4100
|
};
|
|
4012
4101
|
/**
|
|
4013
4102
|
* Get context tools
|
|
@@ -4889,6 +4978,8 @@ declare class ContentfulMcpTools {
|
|
|
4889
4978
|
environmentId: zod.ZodString;
|
|
4890
4979
|
} & {
|
|
4891
4980
|
entryId: zod.ZodString;
|
|
4981
|
+
confirm: zod.ZodOptional<zod.ZodBoolean>;
|
|
4982
|
+
confirmToken: zod.ZodOptional<zod.ZodString>;
|
|
4892
4983
|
};
|
|
4893
4984
|
annotations: {
|
|
4894
4985
|
readOnlyHint: boolean;
|
|
@@ -4900,6 +4991,8 @@ declare class ContentfulMcpTools {
|
|
|
4900
4991
|
spaceId: string;
|
|
4901
4992
|
environmentId: string;
|
|
4902
4993
|
entryId: string;
|
|
4994
|
+
confirmToken?: string | undefined;
|
|
4995
|
+
confirm?: boolean | undefined;
|
|
4903
4996
|
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
4904
4997
|
};
|
|
4905
4998
|
publishEntry: {
|
|
@@ -4909,7 +5002,7 @@ declare class ContentfulMcpTools {
|
|
|
4909
5002
|
spaceId: zod.ZodString;
|
|
4910
5003
|
environmentId: zod.ZodString;
|
|
4911
5004
|
} & {
|
|
4912
|
-
entryId: zod.
|
|
5005
|
+
entryId: zod.ZodArray<zod.ZodString, "many">;
|
|
4913
5006
|
};
|
|
4914
5007
|
annotations: {
|
|
4915
5008
|
readOnlyHint: boolean;
|
|
@@ -4920,7 +5013,7 @@ declare class ContentfulMcpTools {
|
|
|
4920
5013
|
tool: (params: {
|
|
4921
5014
|
spaceId: string;
|
|
4922
5015
|
environmentId: string;
|
|
4923
|
-
entryId: string
|
|
5016
|
+
entryId: string[];
|
|
4924
5017
|
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
4925
5018
|
};
|
|
4926
5019
|
unpublishEntry: {
|
|
@@ -4930,7 +5023,7 @@ declare class ContentfulMcpTools {
|
|
|
4930
5023
|
spaceId: zod.ZodString;
|
|
4931
5024
|
environmentId: zod.ZodString;
|
|
4932
5025
|
} & {
|
|
4933
|
-
entryId: zod.
|
|
5026
|
+
entryId: zod.ZodArray<zod.ZodString, "many">;
|
|
4934
5027
|
};
|
|
4935
5028
|
annotations: {
|
|
4936
5029
|
readOnlyHint: boolean;
|
|
@@ -4941,7 +5034,7 @@ declare class ContentfulMcpTools {
|
|
|
4941
5034
|
tool: (params: {
|
|
4942
5035
|
spaceId: string;
|
|
4943
5036
|
environmentId: string;
|
|
4944
|
-
entryId: string
|
|
5037
|
+
entryId: string[];
|
|
4945
5038
|
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
4946
5039
|
};
|
|
4947
5040
|
archiveEntry: {
|
|
@@ -4951,7 +5044,7 @@ declare class ContentfulMcpTools {
|
|
|
4951
5044
|
spaceId: zod.ZodString;
|
|
4952
5045
|
environmentId: zod.ZodString;
|
|
4953
5046
|
} & {
|
|
4954
|
-
entryId: zod.
|
|
5047
|
+
entryId: zod.ZodArray<zod.ZodString, "many">;
|
|
4955
5048
|
};
|
|
4956
5049
|
annotations: {
|
|
4957
5050
|
readOnlyHint: boolean;
|
|
@@ -4962,7 +5055,7 @@ declare class ContentfulMcpTools {
|
|
|
4962
5055
|
tool: (params: {
|
|
4963
5056
|
spaceId: string;
|
|
4964
5057
|
environmentId: string;
|
|
4965
|
-
entryId: string
|
|
5058
|
+
entryId: string[];
|
|
4966
5059
|
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
4967
5060
|
};
|
|
4968
5061
|
unarchiveEntry: {
|
|
@@ -4972,7 +5065,7 @@ declare class ContentfulMcpTools {
|
|
|
4972
5065
|
spaceId: zod.ZodString;
|
|
4973
5066
|
environmentId: zod.ZodString;
|
|
4974
5067
|
} & {
|
|
4975
|
-
entryId: zod.
|
|
5068
|
+
entryId: zod.ZodArray<zod.ZodString, "many">;
|
|
4976
5069
|
};
|
|
4977
5070
|
annotations: {
|
|
4978
5071
|
readOnlyHint: boolean;
|
|
@@ -4983,7 +5076,7 @@ declare class ContentfulMcpTools {
|
|
|
4983
5076
|
tool: (params: {
|
|
4984
5077
|
spaceId: string;
|
|
4985
5078
|
environmentId: string;
|
|
4986
|
-
entryId: string
|
|
5079
|
+
entryId: string[];
|
|
4987
5080
|
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
4988
5081
|
};
|
|
4989
5082
|
};
|
|
@@ -5046,6 +5139,8 @@ declare class ContentfulMcpTools {
|
|
|
5046
5139
|
spaceId: zod.ZodString;
|
|
5047
5140
|
} & {
|
|
5048
5141
|
environmentId: zod.ZodString;
|
|
5142
|
+
confirm: zod.ZodOptional<zod.ZodBoolean>;
|
|
5143
|
+
confirmToken: zod.ZodOptional<zod.ZodString>;
|
|
5049
5144
|
};
|
|
5050
5145
|
annotations: {
|
|
5051
5146
|
readOnlyHint: boolean;
|
|
@@ -5056,6 +5151,8 @@ declare class ContentfulMcpTools {
|
|
|
5056
5151
|
tool: (params: {
|
|
5057
5152
|
spaceId: string;
|
|
5058
5153
|
environmentId: string;
|
|
5154
|
+
confirmToken?: string | undefined;
|
|
5155
|
+
confirm?: boolean | undefined;
|
|
5059
5156
|
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
5060
5157
|
};
|
|
5061
5158
|
};
|
|
@@ -5201,6 +5298,8 @@ declare class ContentfulMcpTools {
|
|
|
5201
5298
|
environmentId: zod.ZodString;
|
|
5202
5299
|
} & {
|
|
5203
5300
|
localeId: zod.ZodString;
|
|
5301
|
+
confirm: zod.ZodOptional<zod.ZodBoolean>;
|
|
5302
|
+
confirmToken: zod.ZodOptional<zod.ZodString>;
|
|
5204
5303
|
};
|
|
5205
5304
|
annotations: {
|
|
5206
5305
|
readOnlyHint: boolean;
|
|
@@ -5212,6 +5311,8 @@ declare class ContentfulMcpTools {
|
|
|
5212
5311
|
spaceId: string;
|
|
5213
5312
|
environmentId: string;
|
|
5214
5313
|
localeId: string;
|
|
5314
|
+
confirmToken?: string | undefined;
|
|
5315
|
+
confirm?: boolean | undefined;
|
|
5215
5316
|
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
5216
5317
|
};
|
|
5217
5318
|
};
|
|
@@ -5622,7 +5723,8 @@ declare class ContentfulMcpTools {
|
|
|
5622
5723
|
inputParams: {
|
|
5623
5724
|
organizationId: zod.ZodString;
|
|
5624
5725
|
conceptId: zod.ZodString;
|
|
5625
|
-
|
|
5726
|
+
confirm: zod.ZodOptional<zod.ZodBoolean>;
|
|
5727
|
+
confirmToken: zod.ZodOptional<zod.ZodString>;
|
|
5626
5728
|
};
|
|
5627
5729
|
annotations: {
|
|
5628
5730
|
readOnlyHint: boolean;
|
|
@@ -5631,9 +5733,10 @@ declare class ContentfulMcpTools {
|
|
|
5631
5733
|
openWorldHint: boolean;
|
|
5632
5734
|
};
|
|
5633
5735
|
tool: (params: {
|
|
5634
|
-
version: number;
|
|
5635
5736
|
organizationId: string;
|
|
5636
5737
|
conceptId: string;
|
|
5738
|
+
confirmToken?: string | undefined;
|
|
5739
|
+
confirm?: boolean | undefined;
|
|
5637
5740
|
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
5638
5741
|
};
|
|
5639
5742
|
createConceptScheme: {
|
|
@@ -5850,7 +5953,8 @@ declare class ContentfulMcpTools {
|
|
|
5850
5953
|
inputParams: {
|
|
5851
5954
|
organizationId: zod.ZodString;
|
|
5852
5955
|
conceptSchemeId: zod.ZodString;
|
|
5853
|
-
|
|
5956
|
+
confirm: zod.ZodOptional<zod.ZodBoolean>;
|
|
5957
|
+
confirmToken: zod.ZodOptional<zod.ZodString>;
|
|
5854
5958
|
};
|
|
5855
5959
|
annotations: {
|
|
5856
5960
|
readOnlyHint: boolean;
|
|
@@ -5859,9 +5963,10 @@ declare class ContentfulMcpTools {
|
|
|
5859
5963
|
openWorldHint: boolean;
|
|
5860
5964
|
};
|
|
5861
5965
|
tool: (params: {
|
|
5862
|
-
version: number;
|
|
5863
5966
|
organizationId: string;
|
|
5864
5967
|
conceptSchemeId: string;
|
|
5968
|
+
confirmToken?: string | undefined;
|
|
5969
|
+
confirm?: boolean | undefined;
|
|
5865
5970
|
}, extra?: _modelcontextprotocol_sdk_shared_protocol_js.RequestHandlerExtra<_modelcontextprotocol_sdk_types_js.ServerRequest, _modelcontextprotocol_sdk_types_js.ServerNotification>) => Promise<ToolResponse>;
|
|
5866
5971
|
};
|
|
5867
5972
|
};
|