@contentful/mcp-tools 0.2.5 → 0.3.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 +26 -22
- package/dist/index.js +521 -363
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,10 @@ import * as _modelcontextprotocol_sdk_shared_protocol_js from '@modelcontextprot
|
|
|
4
4
|
import * as _modelcontextprotocol_sdk_types_js from '@modelcontextprotocol/sdk/types.js';
|
|
5
5
|
import * as zod from 'zod';
|
|
6
6
|
|
|
7
|
+
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
8
|
+
[key: string]: JsonValue;
|
|
9
|
+
};
|
|
10
|
+
|
|
7
11
|
/**
|
|
8
12
|
* Response type for tool handlers
|
|
9
13
|
*/
|
|
@@ -4302,15 +4306,15 @@ declare class ContentfulMcpTools {
|
|
|
4302
4306
|
contentTypeId: zod.ZodString;
|
|
4303
4307
|
fields: zod.ZodRecord<zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean, zod.ZodObject<{
|
|
4304
4308
|
nodeType: zod.ZodLiteral<_contentful_rich_text_types.BLOCKS.DOCUMENT>;
|
|
4305
|
-
data: zod.
|
|
4306
|
-
content: zod.ZodArray<zod.
|
|
4309
|
+
data: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
|
|
4310
|
+
content: zod.ZodArray<zod.ZodTypeAny, "many">;
|
|
4307
4311
|
}, "strip", zod.ZodTypeAny, {
|
|
4308
|
-
content:
|
|
4309
|
-
data:
|
|
4312
|
+
content: any[];
|
|
4313
|
+
data: {};
|
|
4310
4314
|
nodeType: _contentful_rich_text_types.BLOCKS.DOCUMENT;
|
|
4311
4315
|
}, {
|
|
4312
|
-
content:
|
|
4313
|
-
data:
|
|
4316
|
+
content: any[];
|
|
4317
|
+
data: {};
|
|
4314
4318
|
nodeType: _contentful_rich_text_types.BLOCKS.DOCUMENT;
|
|
4315
4319
|
}>, zod.ZodObject<{
|
|
4316
4320
|
sys: zod.ZodObject<{
|
|
@@ -4425,7 +4429,7 @@ declare class ContentfulMcpTools {
|
|
|
4425
4429
|
linkType: string;
|
|
4426
4430
|
urn: string;
|
|
4427
4431
|
};
|
|
4428
|
-
}>, "many">, zod.
|
|
4432
|
+
}>, "many">, zod.ZodType<JsonValue, zod.ZodTypeDef, JsonValue>]>>>;
|
|
4429
4433
|
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
4430
4434
|
tags: zod.ZodArray<zod.ZodObject<{
|
|
4431
4435
|
sys: zod.ZodObject<{
|
|
@@ -4522,9 +4526,9 @@ declare class ContentfulMcpTools {
|
|
|
4522
4526
|
tool: (params: {
|
|
4523
4527
|
spaceId: string;
|
|
4524
4528
|
environmentId: string;
|
|
4525
|
-
fields: Record<string, Record<string, string
|
|
4526
|
-
content:
|
|
4527
|
-
data:
|
|
4529
|
+
fields: Record<string, Record<string, string[] | {
|
|
4530
|
+
content: any[];
|
|
4531
|
+
data: {};
|
|
4528
4532
|
nodeType: _contentful_rich_text_types.BLOCKS.DOCUMENT;
|
|
4529
4533
|
} | {
|
|
4530
4534
|
sys: {
|
|
@@ -4541,7 +4545,7 @@ declare class ContentfulMcpTools {
|
|
|
4541
4545
|
} | {
|
|
4542
4546
|
lat: number;
|
|
4543
4547
|
lon: number;
|
|
4544
|
-
} | {
|
|
4548
|
+
} | JsonValue | {
|
|
4545
4549
|
sys: {
|
|
4546
4550
|
type: "Link";
|
|
4547
4551
|
id: string;
|
|
@@ -4602,15 +4606,15 @@ declare class ContentfulMcpTools {
|
|
|
4602
4606
|
entryId: zod.ZodString;
|
|
4603
4607
|
fields: zod.ZodRecord<zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean, zod.ZodObject<{
|
|
4604
4608
|
nodeType: zod.ZodLiteral<_contentful_rich_text_types.BLOCKS.DOCUMENT>;
|
|
4605
|
-
data: zod.
|
|
4606
|
-
content: zod.ZodArray<zod.
|
|
4609
|
+
data: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
|
|
4610
|
+
content: zod.ZodArray<zod.ZodTypeAny, "many">;
|
|
4607
4611
|
}, "strip", zod.ZodTypeAny, {
|
|
4608
|
-
content:
|
|
4609
|
-
data:
|
|
4612
|
+
content: any[];
|
|
4613
|
+
data: {};
|
|
4610
4614
|
nodeType: _contentful_rich_text_types.BLOCKS.DOCUMENT;
|
|
4611
4615
|
}, {
|
|
4612
|
-
content:
|
|
4613
|
-
data:
|
|
4616
|
+
content: any[];
|
|
4617
|
+
data: {};
|
|
4614
4618
|
nodeType: _contentful_rich_text_types.BLOCKS.DOCUMENT;
|
|
4615
4619
|
}>, zod.ZodObject<{
|
|
4616
4620
|
sys: zod.ZodObject<{
|
|
@@ -4725,7 +4729,7 @@ declare class ContentfulMcpTools {
|
|
|
4725
4729
|
linkType: string;
|
|
4726
4730
|
urn: string;
|
|
4727
4731
|
};
|
|
4728
|
-
}>, "many">, zod.
|
|
4732
|
+
}>, "many">, zod.ZodType<JsonValue, zod.ZodTypeDef, JsonValue>]>>>;
|
|
4729
4733
|
metadata: zod.ZodOptional<zod.ZodObject<{
|
|
4730
4734
|
tags: zod.ZodArray<zod.ZodObject<{
|
|
4731
4735
|
sys: zod.ZodObject<{
|
|
@@ -4822,9 +4826,9 @@ declare class ContentfulMcpTools {
|
|
|
4822
4826
|
tool: (params: {
|
|
4823
4827
|
spaceId: string;
|
|
4824
4828
|
environmentId: string;
|
|
4825
|
-
fields: Record<string, Record<string, string
|
|
4826
|
-
content:
|
|
4827
|
-
data:
|
|
4829
|
+
fields: Record<string, Record<string, string[] | {
|
|
4830
|
+
content: any[];
|
|
4831
|
+
data: {};
|
|
4828
4832
|
nodeType: _contentful_rich_text_types.BLOCKS.DOCUMENT;
|
|
4829
4833
|
} | {
|
|
4830
4834
|
sys: {
|
|
@@ -4841,7 +4845,7 @@ declare class ContentfulMcpTools {
|
|
|
4841
4845
|
} | {
|
|
4842
4846
|
lat: number;
|
|
4843
4847
|
lon: number;
|
|
4844
|
-
} | {
|
|
4848
|
+
} | JsonValue | {
|
|
4845
4849
|
sys: {
|
|
4846
4850
|
type: "Link";
|
|
4847
4851
|
id: string;
|