xmcp 0.6.5 → 0.6.6

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.
@@ -6,14 +6,19 @@ import type { RspackOptions } from "@rspack/core";
6
6
  export declare const configSchema: z.ZodObject<{
7
7
  stdio: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
8
8
  debug: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
9
+ silent: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
9
10
  }, "strip", z.ZodTypeAny, {
10
11
  debug?: boolean | undefined;
12
+ silent?: boolean | undefined;
11
13
  }, {
12
14
  debug?: boolean | undefined;
15
+ silent?: boolean | undefined;
13
16
  }>, {
14
17
  debug: boolean;
18
+ silent: boolean;
15
19
  }, {
16
20
  debug?: boolean | undefined;
21
+ silent?: boolean | undefined;
17
22
  }>]>>>;
18
23
  http: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
19
24
  port: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
@@ -146,22 +151,62 @@ export declare const configSchema: z.ZodObject<{
146
151
  template: z.ZodOptional<z.ZodEffects<z.ZodObject<{
147
152
  name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
148
153
  description: z.ZodOptional<z.ZodDefault<z.ZodString>>;
154
+ icons: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
155
+ src: z.ZodString;
156
+ mimeType: z.ZodOptional<z.ZodString>;
157
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
158
+ theme: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ src: string;
161
+ mimeType?: string | undefined;
162
+ sizes?: string[] | undefined;
163
+ theme?: "light" | "dark" | undefined;
164
+ }, {
165
+ src: string;
166
+ mimeType?: string | undefined;
167
+ sizes?: string[] | undefined;
168
+ theme?: "light" | "dark" | undefined;
169
+ }>, "many">>>;
149
170
  homePage: z.ZodOptional<z.ZodOptional<z.ZodString>>;
150
171
  }, "strip", z.ZodTypeAny, {
151
172
  name?: string | undefined;
152
173
  description?: string | undefined;
174
+ icons?: {
175
+ src: string;
176
+ mimeType?: string | undefined;
177
+ sizes?: string[] | undefined;
178
+ theme?: "light" | "dark" | undefined;
179
+ }[] | undefined;
153
180
  homePage?: string | undefined;
154
181
  }, {
155
182
  name?: string | undefined;
156
183
  description?: string | undefined;
184
+ icons?: {
185
+ src: string;
186
+ mimeType?: string | undefined;
187
+ sizes?: string[] | undefined;
188
+ theme?: "light" | "dark" | undefined;
189
+ }[] | undefined;
157
190
  homePage?: string | undefined;
158
191
  }>, {
159
192
  name: string;
160
193
  description: string;
194
+ icons?: {
195
+ src: string;
196
+ mimeType?: string | undefined;
197
+ sizes?: string[] | undefined;
198
+ theme?: "light" | "dark" | undefined;
199
+ }[] | undefined;
161
200
  homePage?: string | undefined;
162
201
  }, {
163
202
  name?: string | undefined;
164
203
  description?: string | undefined;
204
+ icons?: {
205
+ src: string;
206
+ mimeType?: string | undefined;
207
+ sizes?: string[] | undefined;
208
+ theme?: "light" | "dark" | undefined;
209
+ }[] | undefined;
165
210
  homePage?: string | undefined;
166
211
  }>>;
167
212
  typescript: z.ZodOptional<z.ZodEffects<z.ZodObject<{
@@ -178,6 +223,7 @@ export declare const configSchema: z.ZodObject<{
178
223
  }, "strip", z.ZodTypeAny, {
179
224
  stdio?: boolean | {
180
225
  debug: boolean;
226
+ silent: boolean;
181
227
  } | undefined;
182
228
  http?: boolean | {
183
229
  cors: {
@@ -206,6 +252,12 @@ export declare const configSchema: z.ZodObject<{
206
252
  template?: {
207
253
  name: string;
208
254
  description: string;
255
+ icons?: {
256
+ src: string;
257
+ mimeType?: string | undefined;
258
+ sizes?: string[] | undefined;
259
+ theme?: "light" | "dark" | undefined;
260
+ }[] | undefined;
209
261
  homePage?: string | undefined;
210
262
  } | undefined;
211
263
  typescript?: {
@@ -214,6 +266,7 @@ export declare const configSchema: z.ZodObject<{
214
266
  }, {
215
267
  stdio?: boolean | {
216
268
  debug?: boolean | undefined;
269
+ silent?: boolean | undefined;
217
270
  } | undefined;
218
271
  http?: boolean | {
219
272
  cors?: {
@@ -242,6 +295,12 @@ export declare const configSchema: z.ZodObject<{
242
295
  template?: {
243
296
  name?: string | undefined;
244
297
  description?: string | undefined;
298
+ icons?: {
299
+ src: string;
300
+ mimeType?: string | undefined;
301
+ sizes?: string[] | undefined;
302
+ theme?: "light" | "dark" | undefined;
303
+ }[] | undefined;
245
304
  homePage?: string | undefined;
246
305
  } | undefined;
247
306
  typescript?: {
@@ -2,22 +2,62 @@ import { z } from "zod/v3";
2
2
  export declare const templateConfigSchema: z.ZodEffects<z.ZodObject<{
3
3
  name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
4
4
  description: z.ZodOptional<z.ZodDefault<z.ZodString>>;
5
+ icons: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
6
+ src: z.ZodString;
7
+ mimeType: z.ZodOptional<z.ZodString>;
8
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
+ theme: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ src: string;
12
+ mimeType?: string | undefined;
13
+ sizes?: string[] | undefined;
14
+ theme?: "light" | "dark" | undefined;
15
+ }, {
16
+ src: string;
17
+ mimeType?: string | undefined;
18
+ sizes?: string[] | undefined;
19
+ theme?: "light" | "dark" | undefined;
20
+ }>, "many">>>;
5
21
  homePage: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6
22
  }, "strip", z.ZodTypeAny, {
7
23
  name?: string | undefined;
8
24
  description?: string | undefined;
25
+ icons?: {
26
+ src: string;
27
+ mimeType?: string | undefined;
28
+ sizes?: string[] | undefined;
29
+ theme?: "light" | "dark" | undefined;
30
+ }[] | undefined;
9
31
  homePage?: string | undefined;
10
32
  }, {
11
33
  name?: string | undefined;
12
34
  description?: string | undefined;
35
+ icons?: {
36
+ src: string;
37
+ mimeType?: string | undefined;
38
+ sizes?: string[] | undefined;
39
+ theme?: "light" | "dark" | undefined;
40
+ }[] | undefined;
13
41
  homePage?: string | undefined;
14
42
  }>, {
15
43
  name: string;
16
44
  description: string;
45
+ icons?: {
46
+ src: string;
47
+ mimeType?: string | undefined;
48
+ sizes?: string[] | undefined;
49
+ theme?: "light" | "dark" | undefined;
50
+ }[] | undefined;
17
51
  homePage?: string | undefined;
18
52
  }, {
19
53
  name?: string | undefined;
20
54
  description?: string | undefined;
55
+ icons?: {
56
+ src: string;
57
+ mimeType?: string | undefined;
58
+ sizes?: string[] | undefined;
59
+ theme?: "light" | "dark" | undefined;
60
+ }[] | undefined;
21
61
  homePage?: string | undefined;
22
62
  }>;
23
63
  export type TemplateConfig = z.infer<typeof templateConfigSchema>;
@@ -1,13 +1,18 @@
1
1
  import { z } from "zod/v3";
2
2
  export declare const stdioTransportConfigSchema: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
3
3
  debug: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4
+ silent: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4
5
  }, "strip", z.ZodTypeAny, {
5
6
  debug?: boolean | undefined;
7
+ silent?: boolean | undefined;
6
8
  }, {
7
9
  debug?: boolean | undefined;
10
+ silent?: boolean | undefined;
8
11
  }>, {
9
12
  debug: boolean;
13
+ silent: boolean;
10
14
  }, {
11
15
  debug?: boolean | undefined;
16
+ silent?: boolean | undefined;
12
17
  }>]>>;
13
18
  export type StdioTransportConfig = z.infer<typeof stdioTransportConfigSchema>;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export type { Middleware, WebMiddleware, WebMiddlewareContext } from "./types/middleware";
2
- export type { ToolMetadata, ToolSchema, ToolExtraArguments, InferSchema, } from "./types/tool";
2
+ export type { ToolMetadata, ToolSchema, ToolOutputSchema, ToolExtraArguments, InferSchema, } from "./types/tool";
3
3
  export type { PromptMetadata } from "./types/prompt";
4
4
  export type { ResourceMetadata } from "./types/resource";
5
5
  export type { UIMetadata } from "./types/ui-meta";