@mintlify/validation 0.1.941 → 0.1.943

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 (42) hide show
  1. package/dist/editor-navigation/conversion/common.d.ts +2 -2
  2. package/dist/editor-navigation/conversion/common.js +7 -1
  3. package/dist/editor-navigation/conversion/docsjson-to-tree.js +3 -0
  4. package/dist/index.js +2 -0
  5. package/dist/mint-config/schemas/v2/index.d.ts +88 -0
  6. package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +6 -0
  7. package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +2 -1
  8. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +6 -0
  9. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +2 -1
  10. package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +42 -0
  11. package/dist/mint-config/schemas/v2/properties/navigation/groups.js +2 -1
  12. package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +120 -0
  13. package/dist/mint-config/schemas/v2/properties/navigation/index.js +2 -1
  14. package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +6 -0
  15. package/dist/mint-config/schemas/v2/properties/navigation/languages.js +2 -1
  16. package/dist/mint-config/schemas/v2/properties/navigation/menu.d.ts +6 -0
  17. package/dist/mint-config/schemas/v2/properties/navigation/menu.js +2 -1
  18. package/dist/mint-config/schemas/v2/properties/navigation/pages.d.ts +24 -0
  19. package/dist/mint-config/schemas/v2/properties/navigation/products.d.ts +6 -0
  20. package/dist/mint-config/schemas/v2/properties/navigation/products.js +2 -1
  21. package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +21 -0
  22. package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +29 -4
  23. package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +6 -0
  24. package/dist/mint-config/schemas/v2/properties/navigation/version.js +2 -1
  25. package/dist/mint-config/schemas/v2/properties/reusable/index.d.ts +1 -0
  26. package/dist/mint-config/schemas/v2/properties/reusable/index.js +1 -0
  27. package/dist/mint-config/schemas/v2/properties/reusable/mcp.d.ts +24 -0
  28. package/dist/mint-config/schemas/v2/properties/reusable/mcp.js +21 -0
  29. package/dist/mint-config/schemas/v2/themes/almond.d.ts +88 -0
  30. package/dist/mint-config/schemas/v2/themes/aspen.d.ts +88 -0
  31. package/dist/mint-config/schemas/v2/themes/linden.d.ts +88 -0
  32. package/dist/mint-config/schemas/v2/themes/luma.d.ts +88 -0
  33. package/dist/mint-config/schemas/v2/themes/maple.d.ts +88 -0
  34. package/dist/mint-config/schemas/v2/themes/mint.d.ts +88 -0
  35. package/dist/mint-config/schemas/v2/themes/palm.d.ts +88 -0
  36. package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +56 -0
  37. package/dist/mint-config/schemas/v2/themes/sequoia.d.ts +88 -0
  38. package/dist/mint-config/schemas/v2/themes/willow.d.ts +88 -0
  39. package/dist/mint-config/validateConfig.d.ts +289 -0
  40. package/dist/mint-config/validateConfig.js +17 -0
  41. package/dist/tsconfig.build.tsbuildinfo +1 -1
  42. package/package.json +2 -2
@@ -62,6 +62,7 @@ export declare const baseMenuItemSchema: z.ZodObject<{
62
62
  directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
63
63
  item: z.ZodString;
64
64
  graphql: z.ZodOptional<z.ZodNever>;
65
+ mcp: z.ZodOptional<z.ZodNever>;
65
66
  sdk: z.ZodOptional<z.ZodNever>;
66
67
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
67
68
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -87,6 +88,7 @@ export declare const baseMenuItemSchema: z.ZodObject<{
87
88
  } | undefined;
88
89
  directory?: "none" | "card" | "accordion" | undefined;
89
90
  description?: string | undefined;
91
+ mcp?: undefined;
90
92
  graphql?: undefined;
91
93
  hidden?: boolean | undefined;
92
94
  thumbnail?: {
@@ -106,6 +108,7 @@ export declare const baseMenuItemSchema: z.ZodObject<{
106
108
  } | undefined;
107
109
  directory?: "none" | "card" | "accordion" | undefined;
108
110
  description?: string | undefined;
111
+ mcp?: undefined;
109
112
  graphql?: undefined;
110
113
  hidden?: boolean | undefined;
111
114
  thumbnail?: {
@@ -180,6 +183,7 @@ export declare const nonRecursiveMenuItemSchema: z.ZodObject<{
180
183
  directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
181
184
  item: z.ZodString;
182
185
  graphql: z.ZodOptional<z.ZodNever>;
186
+ mcp: z.ZodOptional<z.ZodNever>;
183
187
  sdk: z.ZodOptional<z.ZodNever>;
184
188
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
185
189
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -208,6 +212,7 @@ export declare const nonRecursiveMenuItemSchema: z.ZodObject<{
208
212
  } | undefined;
209
213
  directory?: "none" | "card" | "accordion" | undefined;
210
214
  description?: string | undefined;
215
+ mcp?: undefined;
211
216
  graphql?: undefined;
212
217
  hidden?: boolean | undefined;
213
218
  thumbnail?: {
@@ -228,6 +233,7 @@ export declare const nonRecursiveMenuItemSchema: z.ZodObject<{
228
233
  } | undefined;
229
234
  directory?: "none" | "card" | "accordion" | undefined;
230
235
  description?: string | undefined;
236
+ mcp?: undefined;
231
237
  graphql?: undefined;
232
238
  hidden?: boolean | undefined;
233
239
  thumbnail?: {
@@ -4,6 +4,7 @@ import { graphqlNotSupportedSchema } from '../reusable/graphql.js';
4
4
  import { hiddenSchema } from '../reusable/hidden.js';
5
5
  import { hrefSchema } from '../reusable/href.js';
6
6
  import { iconSchema } from '../reusable/icon.js';
7
+ import { mcpNotSupportedSchema } from '../reusable/mcp.js';
7
8
  import { openApiSchema } from '../reusable/openapi.js';
8
9
  import { sdkNotSupportedSchema } from '../reusable/sdk.js';
9
10
  import { thumbnailField } from '../thumbnails.js';
@@ -16,7 +17,7 @@ import { decoratedPagesSchema, pagesSchema } from './pages.js';
16
17
  import { decoratedProductsSchema, productsSchema } from './products.js';
17
18
  import { decoratedTabsSchema, tabsSchema } from './tabs.js';
18
19
  import { decoratedVersionsSchema, versionsSchema } from './version.js';
19
- export const baseMenuItemSchema = z.object(Object.assign(Object.assign({ item: z.string().nonempty().describe('The name of the menu item'), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema, icon: iconSchema.optional(), description: z.string().optional().describe('The description of the menu item'), hidden: hiddenSchema.optional() }, directoryField), thumbnailField));
20
+ export const baseMenuItemSchema = z.object(Object.assign(Object.assign({ item: z.string().nonempty().describe('The name of the menu item'), graphql: graphqlNotSupportedSchema, mcp: mcpNotSupportedSchema, sdk: sdkNotSupportedSchema, icon: iconSchema.optional(), description: z.string().optional().describe('The description of the menu item'), hidden: hiddenSchema.optional() }, directoryField), thumbnailField));
20
21
  export const nonRecursiveMenuItemSchema = baseMenuItemSchema.extend({ href: hrefSchema });
21
22
  export const menuItemSchema = z.union([
22
23
  baseMenuItemSchema.extend({
@@ -19,6 +19,10 @@ export declare const pagesSchema: z.ZodArray<z.ZodType<string | NavigationLinkCo
19
19
  expanded?: boolean | undefined;
20
20
  public?: boolean | undefined;
21
21
  directory?: "none" | "card" | "accordion" | undefined;
22
+ mcp?: string | {
23
+ source: string;
24
+ directory?: string | undefined;
25
+ } | undefined;
22
26
  tag?: string | undefined;
23
27
  searchable?: boolean | undefined;
24
28
  boost?: number | undefined;
@@ -59,6 +63,10 @@ export declare const pagesSchema: z.ZodArray<z.ZodType<string | NavigationLinkCo
59
63
  expanded?: boolean | undefined;
60
64
  public?: boolean | undefined;
61
65
  directory?: "none" | "card" | "accordion" | undefined;
66
+ mcp?: string | {
67
+ source: string;
68
+ directory?: string | undefined;
69
+ } | undefined;
62
70
  tag?: string | undefined;
63
71
  searchable?: boolean | undefined;
64
72
  boost?: number | undefined;
@@ -314,6 +322,10 @@ export declare const decoratedPagesSchema: z.ZodArray<z.ZodType<z.objectInputTyp
314
322
  expanded?: boolean | undefined;
315
323
  public?: boolean | undefined;
316
324
  directory?: "none" | "card" | "accordion" | undefined;
325
+ mcp?: string | {
326
+ source: string;
327
+ directory?: string | undefined;
328
+ } | undefined;
317
329
  tag?: string | undefined;
318
330
  searchable?: boolean | undefined;
319
331
  boost?: number | undefined;
@@ -551,6 +563,10 @@ export declare const decoratedPagesSchema: z.ZodArray<z.ZodType<z.objectInputTyp
551
563
  expanded?: boolean | undefined;
552
564
  public?: boolean | undefined;
553
565
  directory?: "none" | "card" | "accordion" | undefined;
566
+ mcp?: string | {
567
+ source: string;
568
+ directory?: string | undefined;
569
+ } | undefined;
554
570
  tag?: string | undefined;
555
571
  searchable?: boolean | undefined;
556
572
  boost?: number | undefined;
@@ -1003,6 +1019,10 @@ export declare const decoratedPagesSchema: z.ZodArray<z.ZodType<z.objectInputTyp
1003
1019
  expanded?: boolean | undefined;
1004
1020
  public?: boolean | undefined;
1005
1021
  directory?: "none" | "card" | "accordion" | undefined;
1022
+ mcp?: string | {
1023
+ source: string;
1024
+ directory?: string | undefined;
1025
+ } | undefined;
1006
1026
  tag?: string | undefined;
1007
1027
  searchable?: boolean | undefined;
1008
1028
  boost?: number | undefined;
@@ -1240,6 +1260,10 @@ export declare const decoratedPagesSchema: z.ZodArray<z.ZodType<z.objectInputTyp
1240
1260
  expanded?: boolean | undefined;
1241
1261
  public?: boolean | undefined;
1242
1262
  directory?: "none" | "card" | "accordion" | undefined;
1263
+ mcp?: string | {
1264
+ source: string;
1265
+ directory?: string | undefined;
1266
+ } | undefined;
1243
1267
  tag?: string | undefined;
1244
1268
  searchable?: boolean | undefined;
1245
1269
  boost?: number | undefined;
@@ -62,6 +62,7 @@ export declare const baseProductSchema: z.ZodObject<{
62
62
  directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
63
63
  product: z.ZodString;
64
64
  graphql: z.ZodOptional<z.ZodNever>;
65
+ mcp: z.ZodOptional<z.ZodNever>;
65
66
  sdk: z.ZodOptional<z.ZodNever>;
66
67
  name: z.ZodOptional<z.ZodString>;
67
68
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
@@ -103,6 +104,7 @@ export declare const baseProductSchema: z.ZodObject<{
103
104
  } | undefined;
104
105
  directory?: "none" | "card" | "accordion" | undefined;
105
106
  description?: string | undefined;
107
+ mcp?: undefined;
106
108
  graphql?: undefined;
107
109
  hidden?: boolean | undefined;
108
110
  thumbnail?: {
@@ -127,6 +129,7 @@ export declare const baseProductSchema: z.ZodObject<{
127
129
  } | undefined;
128
130
  directory?: "none" | "card" | "accordion" | undefined;
129
131
  description?: string | undefined;
132
+ mcp?: undefined;
130
133
  graphql?: undefined;
131
134
  hidden?: boolean | undefined;
132
135
  thumbnail?: {
@@ -205,6 +208,7 @@ export declare const nonRecursiveProductSchema: z.ZodObject<{
205
208
  directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
206
209
  product: z.ZodString;
207
210
  graphql: z.ZodOptional<z.ZodNever>;
211
+ mcp: z.ZodOptional<z.ZodNever>;
208
212
  sdk: z.ZodOptional<z.ZodNever>;
209
213
  name: z.ZodOptional<z.ZodString>;
210
214
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
@@ -249,6 +253,7 @@ export declare const nonRecursiveProductSchema: z.ZodObject<{
249
253
  } | undefined;
250
254
  directory?: "none" | "card" | "accordion" | undefined;
251
255
  description?: string | undefined;
256
+ mcp?: undefined;
252
257
  graphql?: undefined;
253
258
  hidden?: boolean | undefined;
254
259
  thumbnail?: {
@@ -274,6 +279,7 @@ export declare const nonRecursiveProductSchema: z.ZodObject<{
274
279
  } | undefined;
275
280
  directory?: "none" | "card" | "accordion" | undefined;
276
281
  description?: string | undefined;
282
+ mcp?: undefined;
277
283
  graphql?: undefined;
278
284
  hidden?: boolean | undefined;
279
285
  thumbnail?: {
@@ -5,6 +5,7 @@ import { graphqlNotSupportedSchema } from '../reusable/graphql.js';
5
5
  import { hiddenSchema } from '../reusable/hidden.js';
6
6
  import { hrefSchema } from '../reusable/href.js';
7
7
  import { iconSchema } from '../reusable/icon.js';
8
+ import { mcpNotSupportedSchema } from '../reusable/mcp.js';
8
9
  import { openApiSchema } from '../reusable/openapi.js';
9
10
  import { sdkNotSupportedSchema } from '../reusable/sdk.js';
10
11
  import { thumbnailField } from '../thumbnails.js';
@@ -17,7 +18,7 @@ import { decoratedMenuSchema, menuSchema } from './menu.js';
17
18
  import { pagesSchema, decoratedPagesSchema } from './pages.js';
18
19
  import { tabsSchema, decoratedTabsSchema } from './tabs.js';
19
20
  import { versionsSchema, decoratedVersionsSchema } from './version.js';
20
- export const baseProductSchema = z.object(Object.assign(Object.assign({ product: z.string().nonempty().describe('The name of the product'), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema, name: z.string().optional().describe('Display name for the product'), icon: iconSchema.optional(), color: colorSchemaWithOptionalLightAndDark.optional(), description: z.string().optional().describe('The description of the product'), hidden: hiddenSchema.optional() }, directoryField), thumbnailField));
21
+ export const baseProductSchema = z.object(Object.assign(Object.assign({ product: z.string().nonempty().describe('The name of the product'), graphql: graphqlNotSupportedSchema, mcp: mcpNotSupportedSchema, sdk: sdkNotSupportedSchema, name: z.string().optional().describe('Display name for the product'), icon: iconSchema.optional(), color: colorSchemaWithOptionalLightAndDark.optional(), description: z.string().optional().describe('The description of the product'), hidden: hiddenSchema.optional() }, directoryField), thumbnailField));
21
22
  export const productSchema = z.union([
22
23
  baseProductSchema.extend({
23
24
  href: hrefSchema,
@@ -63,6 +63,16 @@ export declare const baseTabSchema: z.ZodObject<{
63
63
  }>>;
64
64
  directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
65
65
  tab: z.ZodString;
66
+ mcp: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodObject<{
67
+ source: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
68
+ directory: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
69
+ }, "strict", z.ZodTypeAny, {
70
+ source: string;
71
+ directory?: string | undefined;
72
+ }, {
73
+ source: string;
74
+ directory?: string | undefined;
75
+ }>]>>;
66
76
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
67
77
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
68
78
  name: z.ZodEffects<z.ZodString, string, string>;
@@ -87,6 +97,10 @@ export declare const baseTabSchema: z.ZodObject<{
87
97
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
88
98
  } | undefined;
89
99
  directory?: "none" | "card" | "accordion" | undefined;
100
+ mcp?: string | {
101
+ source: string;
102
+ directory?: string | undefined;
103
+ } | undefined;
90
104
  searchable?: boolean | undefined;
91
105
  hidden?: boolean | undefined;
92
106
  thumbnail?: {
@@ -105,6 +119,10 @@ export declare const baseTabSchema: z.ZodObject<{
105
119
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
106
120
  } | undefined;
107
121
  directory?: "none" | "card" | "accordion" | undefined;
122
+ mcp?: string | {
123
+ source: string;
124
+ directory?: string | undefined;
125
+ } | undefined;
108
126
  searchable?: boolean | undefined;
109
127
  hidden?: boolean | undefined;
110
128
  thumbnail?: {
@@ -197,6 +215,7 @@ export declare const nonRecursiveTabSchema: z.ZodObject<{
197
215
  } & {
198
216
  href: z.ZodEffects<z.ZodString, string, string>;
199
217
  graphql: z.ZodOptional<z.ZodNever>;
218
+ mcp: z.ZodOptional<z.ZodNever>;
200
219
  sdk: z.ZodOptional<z.ZodNever>;
201
220
  }, "strip", z.ZodTypeAny, {
202
221
  href: string;
@@ -207,6 +226,7 @@ export declare const nonRecursiveTabSchema: z.ZodObject<{
207
226
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
208
227
  } | undefined;
209
228
  directory?: "none" | "card" | "accordion" | undefined;
229
+ mcp?: undefined;
210
230
  graphql?: undefined;
211
231
  searchable?: boolean | undefined;
212
232
  hidden?: boolean | undefined;
@@ -228,6 +248,7 @@ export declare const nonRecursiveTabSchema: z.ZodObject<{
228
248
  library?: "fontawesome" | "lucide" | "tabler" | undefined;
229
249
  } | undefined;
230
250
  directory?: "none" | "card" | "accordion" | undefined;
251
+ mcp?: undefined;
231
252
  graphql?: undefined;
232
253
  searchable?: boolean | undefined;
233
254
  hidden?: boolean | undefined;
@@ -4,6 +4,7 @@ import { graphqlNotSupportedSchema, graphqlSchema } from '../reusable/graphql.js
4
4
  import { hiddenSchema } from '../reusable/hidden.js';
5
5
  import { hrefSchema } from '../reusable/href.js';
6
6
  import { iconSchema } from '../reusable/icon.js';
7
+ import { mcpNotSupportedSchema, mcpSchema } from '../reusable/mcp.js';
7
8
  import { openApiSchema } from '../reusable/openapi.js';
8
9
  import { sdkNotSupportedSchema, sdkSchema } from '../reusable/sdk.js';
9
10
  import { searchableSchema } from '../reusable/searchable.js';
@@ -18,30 +19,41 @@ import { decoratedPagesSchema, pagesSchema } from './pages.js';
18
19
  import { decoratedProductsSchema, productsSchema } from './products.js';
19
20
  import { decoratedVersionsSchema, versionsSchema } from './version.js';
20
21
  export const tabAlignSchema = z.enum(['start', 'end']).describe('Tab alignment in the navigation');
21
- export const baseTabSchema = z.object(Object.assign(Object.assign({ tab: z.string().nonempty().describe('The name of the tab'), icon: iconSchema.optional(), hidden: hiddenSchema.optional(), searchable: searchableSchema.optional(), align: tabAlignSchema.optional() }, directoryField), thumbnailField));
22
+ export const baseTabSchema = z.object(Object.assign(Object.assign({ tab: z.string().nonempty().describe('The name of the tab'), mcp: mcpSchema.optional(), icon: iconSchema.optional(), hidden: hiddenSchema.optional(), searchable: searchableSchema.optional(), align: tabAlignSchema.optional() }, directoryField), thumbnailField));
22
23
  export const nonRecursiveTabSchema = baseTabSchema.extend({
23
24
  href: hrefSchema,
24
25
  graphql: graphqlNotSupportedSchema,
26
+ mcp: mcpNotSupportedSchema,
25
27
  sdk: sdkNotSupportedSchema,
26
28
  });
27
29
  export const tabSchema = z.union([
28
- baseTabSchema.extend({ graphql: graphqlSchema }).strict(),
30
+ baseTabSchema.extend({ graphql: graphqlSchema, mcp: mcpNotSupportedSchema }).strict(),
29
31
  baseTabSchema
30
32
  .extend({
31
33
  groups: z.lazy(() => groupsSchema),
32
34
  graphql: graphqlSchema,
35
+ mcp: mcpNotSupportedSchema,
33
36
  })
34
37
  .strict(),
35
- baseTabSchema.extend({ sdk: sdkSchema }).strict(),
38
+ baseTabSchema.extend({ mcp: mcpSchema }).strict(),
39
+ baseTabSchema
40
+ .extend({
41
+ groups: z.lazy(() => groupsSchema),
42
+ mcp: mcpSchema,
43
+ })
44
+ .strict(),
45
+ baseTabSchema.extend({ sdk: sdkSchema, mcp: mcpNotSupportedSchema }).strict(),
36
46
  baseTabSchema
37
47
  .extend({
38
48
  groups: z.lazy(() => groupsSchema),
39
49
  sdk: sdkSchema,
50
+ mcp: mcpNotSupportedSchema,
40
51
  })
41
52
  .strict(),
42
53
  baseTabSchema.extend({
43
54
  href: hrefSchema,
44
55
  graphql: graphqlNotSupportedSchema,
56
+ mcp: mcpNotSupportedSchema,
45
57
  sdk: sdkNotSupportedSchema,
46
58
  openapi: openApiSchema.optional(),
47
59
  asyncapi: asyncApiSchema.optional(),
@@ -50,6 +62,7 @@ export const tabSchema = z.union([
50
62
  baseTabSchema.extend({
51
63
  languages: z.lazy(() => languagesSchema),
52
64
  graphql: graphqlNotSupportedSchema,
65
+ mcp: mcpNotSupportedSchema,
53
66
  sdk: sdkNotSupportedSchema,
54
67
  openapi: openApiSchema.optional(),
55
68
  asyncapi: asyncApiSchema.optional(),
@@ -58,6 +71,7 @@ export const tabSchema = z.union([
58
71
  baseTabSchema.extend({
59
72
  versions: z.lazy(() => versionsSchema),
60
73
  graphql: graphqlNotSupportedSchema,
74
+ mcp: mcpNotSupportedSchema,
61
75
  sdk: sdkNotSupportedSchema,
62
76
  openapi: openApiSchema.optional(),
63
77
  asyncapi: asyncApiSchema.optional(),
@@ -66,6 +80,7 @@ export const tabSchema = z.union([
66
80
  baseTabSchema.extend({
67
81
  dropdowns: z.lazy(() => dropdownsSchema),
68
82
  graphql: graphqlNotSupportedSchema,
83
+ mcp: mcpNotSupportedSchema,
69
84
  sdk: sdkNotSupportedSchema,
70
85
  openapi: openApiSchema.optional(),
71
86
  asyncapi: asyncApiSchema.optional(),
@@ -74,6 +89,7 @@ export const tabSchema = z.union([
74
89
  baseTabSchema.extend({
75
90
  anchors: z.lazy(() => anchorsSchema),
76
91
  graphql: graphqlNotSupportedSchema,
92
+ mcp: mcpNotSupportedSchema,
77
93
  sdk: sdkNotSupportedSchema,
78
94
  openapi: openApiSchema.optional(),
79
95
  asyncapi: asyncApiSchema.optional(),
@@ -82,6 +98,7 @@ export const tabSchema = z.union([
82
98
  baseTabSchema.extend({
83
99
  products: z.lazy(() => productsSchema),
84
100
  graphql: graphqlNotSupportedSchema,
101
+ mcp: mcpNotSupportedSchema,
85
102
  sdk: sdkNotSupportedSchema,
86
103
  openapi: openApiSchema.optional(),
87
104
  asyncapi: asyncApiSchema.optional(),
@@ -90,6 +107,7 @@ export const tabSchema = z.union([
90
107
  baseTabSchema.extend({
91
108
  groups: z.lazy(() => groupsSchema),
92
109
  graphql: graphqlNotSupportedSchema,
110
+ mcp: mcpNotSupportedSchema,
93
111
  sdk: sdkNotSupportedSchema,
94
112
  openapi: openApiSchema.optional(),
95
113
  asyncapi: asyncApiSchema.optional(),
@@ -98,6 +116,7 @@ export const tabSchema = z.union([
98
116
  baseTabSchema.extend({
99
117
  pages: z.lazy(() => pagesSchema),
100
118
  graphql: graphqlNotSupportedSchema,
119
+ mcp: mcpNotSupportedSchema,
101
120
  sdk: sdkNotSupportedSchema,
102
121
  openapi: openApiSchema.optional(),
103
122
  asyncapi: asyncApiSchema.optional(),
@@ -106,6 +125,7 @@ export const tabSchema = z.union([
106
125
  baseTabSchema.extend({
107
126
  menu: z.lazy(() => menuSchema),
108
127
  graphql: graphqlNotSupportedSchema,
128
+ mcp: mcpNotSupportedSchema,
109
129
  sdk: sdkNotSupportedSchema,
110
130
  openapi: openApiSchema.optional(),
111
131
  asyncapi: asyncApiSchema.optional(),
@@ -113,6 +133,7 @@ export const tabSchema = z.union([
113
133
  }),
114
134
  baseTabSchema.extend({
115
135
  graphql: graphqlNotSupportedSchema,
136
+ mcp: mcpNotSupportedSchema,
116
137
  sdk: sdkNotSupportedSchema,
117
138
  openapi: openApiSchema.optional(),
118
139
  asyncapi: asyncApiSchema.optional(),
@@ -120,7 +141,11 @@ export const tabSchema = z.union([
120
141
  }),
121
142
  ]);
122
143
  export const decoratedTabSchema = baseTabSchema
123
- .and(z.object({ graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema }))
144
+ .and(z.object({
145
+ graphql: graphqlNotSupportedSchema,
146
+ mcp: mcpNotSupportedSchema,
147
+ sdk: sdkNotSupportedSchema,
148
+ }))
124
149
  .and(z.union([
125
150
  z.object({ href: hrefSchema }),
126
151
  z.lazy(() => z.object({ languages: decoratedLanguagesSchema, global: globalSchema.optional() })),
@@ -62,6 +62,7 @@ export declare const baseVersionSchema: z.ZodObject<{
62
62
  directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
63
63
  version: z.ZodString;
64
64
  graphql: z.ZodOptional<z.ZodNever>;
65
+ mcp: z.ZodOptional<z.ZodNever>;
65
66
  sdk: z.ZodOptional<z.ZodNever>;
66
67
  default: z.ZodOptional<z.ZodBoolean>;
67
68
  tag: z.ZodOptional<z.ZodString>;
@@ -70,6 +71,7 @@ export declare const baseVersionSchema: z.ZodObject<{
70
71
  version: string;
71
72
  default?: boolean | undefined;
72
73
  directory?: "none" | "card" | "accordion" | undefined;
74
+ mcp?: undefined;
73
75
  graphql?: undefined;
74
76
  tag?: string | undefined;
75
77
  hidden?: boolean | undefined;
@@ -85,6 +87,7 @@ export declare const baseVersionSchema: z.ZodObject<{
85
87
  version: string;
86
88
  default?: boolean | undefined;
87
89
  directory?: "none" | "card" | "accordion" | undefined;
90
+ mcp?: undefined;
88
91
  graphql?: undefined;
89
92
  tag?: string | undefined;
90
93
  hidden?: boolean | undefined;
@@ -160,6 +163,7 @@ export declare const nonRecursiveVersionSchema: z.ZodObject<{
160
163
  directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
161
164
  version: z.ZodString;
162
165
  graphql: z.ZodOptional<z.ZodNever>;
166
+ mcp: z.ZodOptional<z.ZodNever>;
163
167
  sdk: z.ZodOptional<z.ZodNever>;
164
168
  default: z.ZodOptional<z.ZodBoolean>;
165
169
  tag: z.ZodOptional<z.ZodString>;
@@ -171,6 +175,7 @@ export declare const nonRecursiveVersionSchema: z.ZodObject<{
171
175
  href: string;
172
176
  default?: boolean | undefined;
173
177
  directory?: "none" | "card" | "accordion" | undefined;
178
+ mcp?: undefined;
174
179
  graphql?: undefined;
175
180
  tag?: string | undefined;
176
181
  hidden?: boolean | undefined;
@@ -187,6 +192,7 @@ export declare const nonRecursiveVersionSchema: z.ZodObject<{
187
192
  href: string;
188
193
  default?: boolean | undefined;
189
194
  directory?: "none" | "card" | "accordion" | undefined;
195
+ mcp?: undefined;
190
196
  graphql?: undefined;
191
197
  tag?: string | undefined;
192
198
  hidden?: boolean | undefined;
@@ -3,6 +3,7 @@ import { asyncApiSchema } from '../reusable/asyncapi.js';
3
3
  import { graphqlNotSupportedSchema } from '../reusable/graphql.js';
4
4
  import { hiddenSchema } from '../reusable/hidden.js';
5
5
  import { hrefSchema } from '../reusable/href.js';
6
+ import { mcpNotSupportedSchema } from '../reusable/mcp.js';
6
7
  import { openApiSchema } from '../reusable/openapi.js';
7
8
  import { sdkNotSupportedSchema } from '../reusable/sdk.js';
8
9
  import { thumbnailField } from '../thumbnails.js';
@@ -14,7 +15,7 @@ import { decoratedLanguagesSchema, languagesSchema } from './languages.js';
14
15
  import { decoratedPagesSchema, pagesSchema } from './pages.js';
15
16
  import { decoratedProductsSchema, productsSchema } from './products.js';
16
17
  import { decoratedTabsSchema, tabsSchema } from './tabs.js';
17
- export const baseVersionSchema = z.object(Object.assign(Object.assign({ version: z.string().nonempty().describe('The name of the version'), graphql: graphqlNotSupportedSchema, sdk: sdkNotSupportedSchema, default: z.boolean().optional().describe('Whether this version is the default version'), tag: z.string().optional().describe('Tag for the version'), hidden: hiddenSchema.optional() }, directoryField), thumbnailField));
18
+ export const baseVersionSchema = z.object(Object.assign(Object.assign({ version: z.string().nonempty().describe('The name of the version'), graphql: graphqlNotSupportedSchema, mcp: mcpNotSupportedSchema, sdk: sdkNotSupportedSchema, default: z.boolean().optional().describe('Whether this version is the default version'), tag: z.string().optional().describe('Tag for the version'), hidden: hiddenSchema.optional() }, directoryField), thumbnailField));
18
19
  export const nonRecursiveVersionSchema = baseVersionSchema.extend({ href: hrefSchema });
19
20
  export const versionSchema = z.union([
20
21
  baseVersionSchema.extend({
@@ -4,6 +4,7 @@ export * from './pageGroups.js';
4
4
  export * from './page.js';
5
5
  export * from './openapi.js';
6
6
  export * from './graphql.js';
7
+ export * from './mcp.js';
7
8
  export * from './sdk.js';
8
9
  export * from './color.js';
9
10
  export * from './asyncapi.js';
@@ -4,6 +4,7 @@ export * from './pageGroups.js';
4
4
  export * from './page.js';
5
5
  export * from './openapi.js';
6
6
  export * from './graphql.js';
7
+ export * from './mcp.js';
7
8
  export * from './sdk.js';
8
9
  export * from './color.js';
9
10
  export * from './asyncapi.js';
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ export declare const mcpStringSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
3
+ export declare const mcpObjSchema: z.ZodObject<{
4
+ source: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
5
+ directory: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ source: string;
8
+ directory?: string | undefined;
9
+ }, {
10
+ source: string;
11
+ directory?: string | undefined;
12
+ }>;
13
+ export declare const mcpSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodObject<{
14
+ source: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
15
+ directory: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
16
+ }, "strict", z.ZodTypeAny, {
17
+ source: string;
18
+ directory?: string | undefined;
19
+ }, {
20
+ source: string;
21
+ directory?: string | undefined;
22
+ }>]>;
23
+ export type McpConfig = z.infer<typeof mcpSchema>;
24
+ export declare const mcpNotSupportedSchema: z.ZodOptional<z.ZodNever>;
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ import { isAbsoluteUrl } from '../../../../isAbsoluteUrl.js';
3
+ import { normalizeRelativePath } from '../../../../transforms/normalizeRelativePath.js';
4
+ export const mcpStringSchema = z
5
+ .string()
6
+ .trim()
7
+ .nonempty()
8
+ .refine((value) => !isAbsoluteUrl(value), {
9
+ message: 'Must be a local path to an MCP definition JSON file.',
10
+ })
11
+ .transform(normalizeRelativePath);
12
+ export const mcpObjSchema = z
13
+ .object({
14
+ source: mcpStringSchema,
15
+ directory: z.string().trim().nonempty().transform(normalizeRelativePath).optional(),
16
+ })
17
+ .strict();
18
+ export const mcpSchema = z
19
+ .union([mcpStringSchema, mcpObjSchema])
20
+ .describe('A local path to an MCP definition JSON file with tools and resources');
21
+ export const mcpNotSupportedSchema = z.never().optional();