@kubb/plugin-mcp 5.0.0-beta.95 → 5.0.0-beta.98
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.cjs +2 -2
- package/dist/index.d.ts +3 -12
- package/dist/index.js +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -24,12 +24,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
//#endregion
|
|
27
|
+
let node_path = require("node:path");
|
|
28
|
+
node_path = __toESM(node_path, 1);
|
|
27
29
|
let kubb_kit = require("kubb/kit");
|
|
28
30
|
let kubb_jsx = require("kubb/jsx");
|
|
29
31
|
let kubb_jsx_jsx_runtime = require("kubb/jsx/jsx-runtime");
|
|
30
32
|
let _kubb_plugin_ts = require("@kubb/plugin-ts");
|
|
31
|
-
let node_path = require("node:path");
|
|
32
|
-
node_path = __toESM(node_path, 1);
|
|
33
33
|
let _kubb_plugin_zod = require("@kubb/plugin-zod");
|
|
34
34
|
//#region ../../internals/utils/src/casing.ts
|
|
35
35
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
|
2
2
|
import { Exclude, Group, Include, Output, OutputOptions, Override, PluginFactoryOptions, Resolver, ResolverPatch, ast } from "kubb/kit";
|
|
3
3
|
import { KubbReactNode } from "kubb/jsx";
|
|
4
4
|
import { ResolverTs } from "@kubb/plugin-ts";
|
|
5
|
+
import "@kubb/plugin-zod";
|
|
5
6
|
//#region src/components/McpHandler.d.ts
|
|
6
7
|
type Props$1 = {
|
|
7
8
|
/**
|
|
@@ -21,12 +22,7 @@ type Props$1 = {
|
|
|
21
22
|
*/
|
|
22
23
|
resolver: ResolverTs;
|
|
23
24
|
};
|
|
24
|
-
declare function McpHandler({
|
|
25
|
-
name,
|
|
26
|
-
clientName,
|
|
27
|
-
node,
|
|
28
|
-
resolver
|
|
29
|
-
}: Props$1): KubbReactNode;
|
|
25
|
+
declare function McpHandler({ name, clientName, node, resolver }: Props$1): KubbReactNode;
|
|
30
26
|
//#endregion
|
|
31
27
|
//#region src/utils.d.ts
|
|
32
28
|
type ZodParam = {
|
|
@@ -78,12 +74,7 @@ type Props = {
|
|
|
78
74
|
node: ast.OperationNode;
|
|
79
75
|
}>;
|
|
80
76
|
};
|
|
81
|
-
declare function Server({
|
|
82
|
-
name,
|
|
83
|
-
serverName,
|
|
84
|
-
serverVersion,
|
|
85
|
-
operations
|
|
86
|
-
}: Props): KubbReactNode;
|
|
77
|
+
declare function Server({ name, serverName, serverVersion, operations }: Props): KubbReactNode;
|
|
87
78
|
//#endregion
|
|
88
79
|
//#region ../../internals/client/src/resolveClient.d.ts
|
|
89
80
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
+
import path from "node:path";
|
|
2
3
|
import { Resolver, ast, createResolver, defineGenerator, definePlugin } from "kubb/kit";
|
|
3
4
|
import { Const, File, Function, jsxRenderer } from "kubb/jsx";
|
|
4
5
|
import { Fragment, jsx, jsxs } from "kubb/jsx/jsx-runtime";
|
|
5
6
|
import { createFunctionParameter, createFunctionParameters, createObjectBindingPattern, functionPrinter, pluginTsName } from "@kubb/plugin-ts";
|
|
6
|
-
import path from "node:path";
|
|
7
7
|
import { pluginZodName } from "@kubb/plugin-zod";
|
|
8
8
|
//#region ../../internals/utils/src/casing.ts
|
|
9
9
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-mcp",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.98",
|
|
4
4
|
"description": "Generate Model Context Protocol (MCP) tool definitions with Kubb. Expose your REST APIs as AI-callable tools for LLMs, Claude, ChatGPT, and other AI assistants.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
"registry": "https://registry.npmjs.org/"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@kubb/plugin-
|
|
48
|
-
"@kubb/plugin-
|
|
47
|
+
"@kubb/plugin-ts": "5.0.0-beta.98",
|
|
48
|
+
"@kubb/plugin-zod": "5.0.0-beta.97"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"kubb": "5.0.0-beta.
|
|
51
|
+
"kubb": "5.0.0-beta.97",
|
|
52
52
|
"@internals/client": "0.0.0",
|
|
53
53
|
"@internals/shared": "0.0.0",
|
|
54
54
|
"@internals/utils": "0.0.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"kubb": "5.0.0-beta.
|
|
57
|
+
"kubb": "5.0.0-beta.97"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=22"
|