@kubb/mcp 5.0.0-beta.11 → 5.0.0-beta.110
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/LICENSE +17 -10
- package/README.md +32 -23
- package/dist/index.cjs +6083 -385
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +13 -10
- package/dist/index.js +6085 -384
- package/dist/index.js.map +1 -1
- package/dist/rolldown-runtime-2jQ0FbkC.js +30 -0
- package/package.json +18 -28
- package/dist/chunk--u3MIqq1.js +0 -8
- package/src/constants.ts +0 -1
- package/src/index.ts +0 -8
- package/src/schemas/generateSchema.ts +0 -13
- package/src/schemas/initSchema.ts +0 -7
- package/src/schemas/validateSchema.ts +0 -5
- package/src/server.ts +0 -41
- package/src/tools/generate.ts +0 -146
- package/src/tools/init.ts +0 -37
- package/src/tools/validate.ts +0 -25
- package/src/types.ts +0 -23
- package/src/utils/loadUserConfig.ts +0 -78
- package/src/utils/resolveCwd.ts +0 -20
- package/src/utils/resolveUserConfig.ts +0 -13
package/LICENSE
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
This repository contains software under two licenses:
|
|
1
|
+
MIT License
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
MIT License — see licenses/LICENSE-MIT for the full license text.
|
|
3
|
+
Copyright (c) 2026 Stijn Van Hulle
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<h1>@kubb/mcp</h1>
|
|
3
2
|
<a href="https://kubb.dev" target="_blank" rel="noopener noreferrer">
|
|
4
|
-
<img
|
|
3
|
+
<img src="https://kubb.dev/og.png" alt="Kubb banner">
|
|
5
4
|
</a>
|
|
6
5
|
|
|
7
6
|
[![npm version][npm-version-src]][npm-version-href]
|
|
8
7
|
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
9
|
-
[![
|
|
8
|
+
[![Stars][stars-src]][stars-href]
|
|
10
9
|
[![License][license-src]][license-href]
|
|
11
|
-
[![
|
|
10
|
+
[![Node][node-src]][node-href]
|
|
12
11
|
|
|
13
12
|
<h4>
|
|
14
|
-
<a href="https://kubb.dev
|
|
13
|
+
<a href="https://kubb.dev" target="_blank">Documentation</a>
|
|
15
14
|
<span> · </span>
|
|
16
15
|
<a href="https://github.com/kubb-labs/kubb/issues/" target="_blank">Report Bug</a>
|
|
17
16
|
<span> · </span>
|
|
@@ -19,7 +18,13 @@
|
|
|
19
18
|
</h4>
|
|
20
19
|
</div>
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
<br />
|
|
22
|
+
|
|
23
|
+
# @kubb/mcp
|
|
24
|
+
|
|
25
|
+
### Model Context Protocol server for Kubb
|
|
26
|
+
|
|
27
|
+
MCP server for Kubb. Exposes code generation as a tool over the [Model Context Protocol](https://modelcontextprotocol.io) so AI assistants like [Claude](https://claude.ai), [Cursor](https://cursor.sh), and other MCP-compatible clients can generate TypeScript types, API clients, and more using natural language.
|
|
23
28
|
|
|
24
29
|
The server exposes a `generate` tool that runs a full Kubb build from a `kubb.config.ts`. It streams build events back to the client as real-time progress notifications. The server communicates over stdio and works with any MCP-compatible client.
|
|
25
30
|
|
|
@@ -111,7 +116,7 @@ Generate code from OpenAPI/Swagger specifications using Kubb configuration.
|
|
|
111
116
|
- `config` (string, optional): Path to kubb.config.ts file. If not provided, looks for kubb.config.ts in current directory
|
|
112
117
|
- `input` (string, optional): Path to OpenAPI/Swagger spec file (overrides config file setting)
|
|
113
118
|
- `output` (string, optional): Output directory path (overrides config file setting)
|
|
114
|
-
- `logLevel` (enum, optional): Control logging verbosity
|
|
119
|
+
- `logLevel` (enum, optional): Control logging verbosity, one of `'silent'`, `'info'`, `'verbose'` (default: 'info')
|
|
115
120
|
|
|
116
121
|
**Examples:**
|
|
117
122
|
|
|
@@ -150,26 +155,26 @@ Example `kubb.config.ts`:
|
|
|
150
155
|
|
|
151
156
|
```typescript
|
|
152
157
|
import { defineConfig } from 'kubb'
|
|
153
|
-
import {
|
|
158
|
+
import { adapterOas } from '@kubb/adapter-oas'
|
|
154
159
|
import { pluginTs } from '@kubb/plugin-ts'
|
|
155
|
-
import {
|
|
160
|
+
import { pluginAxios } from '@kubb/plugin-axios'
|
|
156
161
|
|
|
157
162
|
export default defineConfig({
|
|
158
|
-
input:
|
|
159
|
-
path: './petstore.yaml',
|
|
160
|
-
},
|
|
163
|
+
input: './petstore.yaml',
|
|
161
164
|
output: {
|
|
162
165
|
path: './src/generated',
|
|
163
166
|
},
|
|
164
|
-
|
|
167
|
+
adapter: adapterOas(),
|
|
168
|
+
plugins: [pluginTs(), pluginAxios()],
|
|
165
169
|
})
|
|
166
170
|
```
|
|
167
171
|
|
|
168
172
|
## Supporting Kubb
|
|
169
173
|
|
|
170
|
-
Kubb is an open source project
|
|
174
|
+
Kubb is an open source project, and its development is funded entirely by sponsors. If you would like to become a sponsor, please consider:
|
|
171
175
|
|
|
172
176
|
- [Become a Sponsor on GitHub](https://github.com/sponsors/stijnvanhulle)
|
|
177
|
+
- [See sponsorship tiers and our sponsors](https://kubb.dev/sponsors)
|
|
173
178
|
|
|
174
179
|
<p align="center">
|
|
175
180
|
<a href="https://github.com/sponsors/stijnvanhulle">
|
|
@@ -177,15 +182,19 @@ Kubb is an open source project with its ongoing development made possible entire
|
|
|
177
182
|
</a>
|
|
178
183
|
</p>
|
|
179
184
|
|
|
185
|
+
## License
|
|
186
|
+
|
|
187
|
+
[MIT](https://github.com/kubb-labs/kubb/blob/main/licenses/LICENSE-MIT)
|
|
188
|
+
|
|
180
189
|
<!-- Badges -->
|
|
181
190
|
|
|
182
|
-
[npm-version-src]: https://
|
|
183
|
-
[npm-version-href]: https://
|
|
184
|
-
[npm-downloads-src]: https://
|
|
185
|
-
[npm-downloads-href]: https://
|
|
186
|
-
[
|
|
191
|
+
[npm-version-src]: https://shieldcn.dev/npm/v/@kubb/mcp.svg?variant=secondary&size=xs&theme=zinc&mode=dark
|
|
192
|
+
[npm-version-href]: https://npmx.dev/package/@kubb/mcp
|
|
193
|
+
[npm-downloads-src]: https://shieldcn.dev/npm/dm/@kubb/mcp.svg?variant=secondary&size=xs&theme=zinc&mode=dark
|
|
194
|
+
[npm-downloads-href]: https://npmx.dev/package/@kubb/mcp
|
|
195
|
+
[stars-src]: https://shieldcn.dev/github/stars/kubb-labs/kubb.svg?variant=secondary&size=xs&theme=zinc&mode=dark
|
|
196
|
+
[stars-href]: https://github.com/kubb-labs/kubb
|
|
197
|
+
[license-src]: https://shieldcn.dev/npm/license/@kubb/mcp.svg?variant=secondary&size=xs&theme=zinc
|
|
187
198
|
[license-href]: https://github.com/kubb-labs/kubb/blob/main/LICENSE
|
|
188
|
-
[
|
|
189
|
-
[
|
|
190
|
-
[sponsors-src]: https://img.shields.io/github/sponsors/stijnvanhulle?style=flat&colorA=18181B&colorB=f58517
|
|
191
|
-
[sponsors-href]: https://github.com/sponsors/stijnvanhulle/
|
|
199
|
+
[node-src]: https://shieldcn.dev/npm/node/@kubb/mcp.svg?variant=secondary&size=xs&theme=zinc&mode=dark
|
|
200
|
+
[node-href]: https://npmx.dev/package/@kubb/mcp
|