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.
- package/dist/cli.js +2 -2
- package/dist/compiler/config/constants.d.ts +1 -0
- package/dist/compiler/config/index.d.ts +5 -0
- package/dist/compiler/config/schemas/paths.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/runtime/adapter-express.js +1 -1
- package/dist/runtime/adapter-nextjs.js +1 -1
- package/dist/runtime/http.js +1 -1
- package/dist/runtime/stdio.js +1 -1
- package/dist/types/resource.d.ts +7 -0
- package/package.json +1 -1
|
@@ -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";
|