xmcp 0.2.1 → 0.2.2-canary.1

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.
@@ -39,6 +39,7 @@ export declare const DEFAULT_STDIO_CONFIG: {
39
39
  export declare const DEFAULT_PATHS_CONFIG: {
40
40
  tools: string;
41
41
  prompts: string;
42
+ resources: string;
42
43
  };
43
44
  /**
44
45
  * Default values for the template config
@@ -158,12 +158,15 @@ export declare const configSchema: z.ZodObject<{
158
158
  paths: z.ZodOptional<z.ZodObject<{
159
159
  tools: z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
160
160
  prompts: z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
161
+ resources: z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
161
162
  }, "strip", z.ZodTypeAny, {
162
163
  tools: string | boolean;
163
164
  prompts: string | boolean;
165
+ resources: string | boolean;
164
166
  }, {
165
167
  tools?: string | boolean | undefined;
166
168
  prompts?: string | boolean | undefined;
169
+ resources?: string | boolean | undefined;
167
170
  }>>;
168
171
  webpack: z.ZodOptional<z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodAny>>>;
169
172
  template: z.ZodOptional<z.ZodObject<{
@@ -215,6 +218,7 @@ export declare const configSchema: z.ZodObject<{
215
218
  paths?: {
216
219
  tools: string | boolean;
217
220
  prompts: string | boolean;
221
+ resources: string | boolean;
218
222
  } | undefined;
219
223
  webpack?: ((args_0: any, ...args: unknown[]) => any) | undefined;
220
224
  template?: {
@@ -260,6 +264,7 @@ export declare const configSchema: z.ZodObject<{
260
264
  paths?: {
261
265
  tools?: string | boolean | undefined;
262
266
  prompts?: string | boolean | undefined;
267
+ resources?: string | boolean | undefined;
263
268
  } | undefined;
264
269
  webpack?: ((args_0: any, ...args: unknown[]) => any) | undefined;
265
270
  template?: {
@@ -2,11 +2,14 @@ import { z } from "zod";
2
2
  export declare const pathsConfigSchema: z.ZodObject<{
3
3
  tools: z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
4
4
  prompts: z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
5
+ resources: z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
5
6
  }, "strip", z.ZodTypeAny, {
6
7
  tools: string | boolean;
7
8
  prompts: string | boolean;
9
+ resources: string | boolean;
8
10
  }, {
9
11
  tools?: string | boolean | undefined;
10
12
  prompts?: string | boolean | undefined;
13
+ resources?: string | boolean | undefined;
11
14
  }>;
12
15
  export type PathsConfig = z.infer<typeof pathsConfigSchema>;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { type Middleware } from "./types/middleware";
2
2
  export type { ToolMetadata, ToolSchema, ToolExtraArguments, InferSchema, } from "./types/tool";
3
3
  export type { PromptMetadata } from "./types/prompt";
4
+ export type { ResourceMetadata } from "./types/resource";
4
5
  export type { XmcpConfigOuputSchema as XmcpConfig } from "./compiler/config";
5
6
  export type { OAuthConfigOptions } from "./auth/oauth";
6
7
  import "./types/declarations";