@kubb/mcp 5.0.0-beta.104 → 5.0.0-beta.106

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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as __name } from "./rolldown-runtime-G2anUtha.js";
1
+ import { n as __name } from "./rolldown-runtime-2jQ0FbkC.js";
2
2
  import { McpServer } from "tmcp";
3
3
  //#region src/server.d.ts
4
4
  /**
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as __toESM, r as __require, t as __commonJSMin } from "./rolldown-runtime-G2anUtha.js";
1
+ import { i as __toESM, r as __require, t as __commonJSMin } from "./rolldown-runtime-2jQ0FbkC.js";
2
2
  import { createRequire } from "node:module";
3
3
  import { ValibotJsonSchemaAdapter } from "@tmcp/adapter-valibot";
4
4
  import { StdioTransport } from "@tmcp/transport-stdio";
@@ -11,7 +11,7 @@ import fs, { existsSync } from "node:fs";
11
11
  import path from "node:path";
12
12
  import process$1 from "node:process";
13
13
  //#region package.json
14
- var version = "5.0.0-beta.104";
14
+ var version = "5.0.0-beta.106";
15
15
  //#endregion
16
16
  //#region src/schemas/generateSchema.ts
17
17
  const generateSchema = v.object({
@@ -6227,15 +6227,18 @@ const generateTool = defineTool({
6227
6227
  }
6228
6228
  });
6229
6229
  //#endregion
6230
+ //#region src/schemas/initSchema.ts
6231
+ const initSchema = v.object({
6232
+ input: v.optional(v.pipe(v.string(), v.minLength(1), v.description("Path to OpenAPI spec (default: ./openapi.yaml)"))),
6233
+ output: v.optional(v.pipe(v.string(), v.minLength(1), v.description("Output directory (default: ./src/gen)"))),
6234
+ plugins: v.optional(v.pipe(v.string(), v.minLength(1), v.description("Comma-separated list of plugins: plugin-ts,plugin-zod,...")))
6235
+ });
6236
+ //#endregion
6230
6237
  //#region src/tools/init.ts
6231
6238
  const initTool = defineTool({
6232
6239
  name: "init",
6233
6240
  description: "Scaffold a kubb.config.ts in the current directory (non-interactive). Does not install packages.",
6234
- schema: v.object({
6235
- input: v.optional(v.pipe(v.string(), v.minLength(1), v.description("Path to OpenAPI spec (default: ./openapi.yaml)"))),
6236
- output: v.optional(v.pipe(v.string(), v.minLength(1), v.description("Output directory (default: ./src/gen)"))),
6237
- plugins: v.optional(v.pipe(v.string(), v.minLength(1), v.description("Comma-separated list of plugins: plugin-ts,plugin-zod,...")))
6238
- })
6241
+ schema: initSchema
6239
6242
  }, async ({ input = "./openapi.yaml", output = "./src/gen", plugins }) => {
6240
6243
  const selected = resolvePlugins(plugins);
6241
6244
  const content = generateConfigFile({
@@ -6250,11 +6253,14 @@ const initTool = defineTool({
6250
6253
  return tool.text(`Created kubb.config.ts\n\nInstall packages:\n npm install ${packageList}\n\nThen run:\n npx kubb generate`);
6251
6254
  });
6252
6255
  //#endregion
6256
+ //#region src/schemas/validateSchema.ts
6257
+ const validateSchema = v.object({ input: v.pipe(v.string(), v.minLength(1), v.description("Path or URL to the OpenAPI/Swagger specification")) });
6258
+ //#endregion
6253
6259
  //#region src/tools/validate.ts
6254
6260
  const validateTool = defineTool({
6255
6261
  name: "validate",
6256
6262
  description: "Validate an OpenAPI/Swagger specification file or URL",
6257
- schema: v.object({ input: v.pipe(v.string(), v.minLength(1), v.description("Path or URL to the OpenAPI/Swagger specification")) })
6263
+ schema: validateSchema
6258
6264
  }, async ({ input }) => {
6259
6265
  let mod;
6260
6266
  try {