xmcp 0.1.10 → 0.1.11

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,3 +39,10 @@ export declare const DEFAULT_STDIO_CONFIG: {
39
39
  export declare const DEFAULT_PATHS_CONFIG: {
40
40
  tools: string;
41
41
  };
42
+ /**
43
+ * Default values for the template config
44
+ */
45
+ export declare const DEFAULT_TEMPLATE_CONFIG: {
46
+ name: string;
47
+ description: string;
48
+ };
@@ -163,6 +163,16 @@ export declare const configSchema: z.ZodObject<{
163
163
  tools?: string | undefined;
164
164
  }>>;
165
165
  webpack: z.ZodOptional<z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodAny>>>;
166
+ template: z.ZodOptional<z.ZodObject<{
167
+ name: z.ZodDefault<z.ZodString>;
168
+ description: z.ZodDefault<z.ZodString>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ name: string;
171
+ description: string;
172
+ }, {
173
+ name?: string | undefined;
174
+ description?: string | undefined;
175
+ }>>;
166
176
  }, "strip", z.ZodTypeAny, {
167
177
  stdio?: boolean | {
168
178
  debug: boolean;
@@ -203,6 +213,10 @@ export declare const configSchema: z.ZodObject<{
203
213
  tools: string;
204
214
  } | undefined;
205
215
  webpack?: ((args_0: any, ...args: unknown[]) => any) | undefined;
216
+ template?: {
217
+ name: string;
218
+ description: string;
219
+ } | undefined;
206
220
  }, {
207
221
  stdio?: boolean | {
208
222
  debug?: boolean | undefined;
@@ -243,6 +257,10 @@ export declare const configSchema: z.ZodObject<{
243
257
  tools?: string | undefined;
244
258
  } | undefined;
245
259
  webpack?: ((args_0: any, ...args: unknown[]) => any) | undefined;
260
+ template?: {
261
+ name?: string | undefined;
262
+ description?: string | undefined;
263
+ } | undefined;
246
264
  }>;
247
265
  type WebpackConfig = {
248
266
  webpack?: (config: Configuration) => Configuration;
@@ -4,3 +4,4 @@ export { oauthConfigSchema, type OAuthConfig } from "./experimental/oauth";
4
4
  export { experimentalConfigSchema, type ExperimentalConfig, } from "./experimental";
5
5
  export { pathsConfigSchema, type PathsConfig } from "./paths";
6
6
  export { webpackConfigSchema, type WebpackConfig } from "./webpack";
7
+ export { templateConfigSchema, type TemplateConfig } from "./template";
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export declare const templateConfigSchema: z.ZodObject<{
3
+ name: z.ZodDefault<z.ZodString>;
4
+ description: z.ZodDefault<z.ZodString>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ name: string;
7
+ description: string;
8
+ }, {
9
+ name?: string | undefined;
10
+ description?: string | undefined;
11
+ }>;
12
+ export type TemplateConfig = z.infer<typeof templateConfigSchema>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { type XmcpMiddleware } from "./types/middleware";
1
+ export { type Middleware } from "./types/middleware";
2
2
  export type { ToolMetadata, ToolSchema, ToolExtraArguments, InferSchema, } from "./types/tool";
3
3
  export type { XmcpConfigOuputSchema as XmcpConfig } from "./compiler/config";
4
4
  export type { OAuthConfigOptions } from "./auth/oauth";