@kubb/plugin-mcp 4.12.0 → 4.12.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-mcp",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.1",
|
|
4
4
|
"description": "Generator mcp",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
],
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@kubb/react-fabric": "0.7.0",
|
|
73
|
-
"@kubb/core": "4.12.
|
|
74
|
-
"@kubb/oas": "4.12.
|
|
75
|
-
"@kubb/plugin-client": "4.12.
|
|
76
|
-
"@kubb/plugin-oas": "4.12.
|
|
77
|
-
"@kubb/plugin-ts": "4.12.
|
|
78
|
-
"@kubb/plugin-zod": "4.12.
|
|
73
|
+
"@kubb/core": "4.12.1",
|
|
74
|
+
"@kubb/oas": "4.12.1",
|
|
75
|
+
"@kubb/plugin-client": "4.12.1",
|
|
76
|
+
"@kubb/plugin-oas": "4.12.1",
|
|
77
|
+
"@kubb/plugin-ts": "4.12.1",
|
|
78
|
+
"@kubb/plugin-zod": "4.12.1"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {},
|
|
81
81
|
"engines": {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ResponseErrorConfig } from './test/.kubb/fetch'
|
|
2
|
+
import type { CallToolResult } from '@modelcontextprotocol/sdk/types'
|
|
3
|
+
import { fetch } from './test/.kubb/fetch'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @description Returns all `pets` from the system \n that the user has access to
|
|
7
|
+
* @summary List all pets
|
|
8
|
+
* {@link /pets}
|
|
9
|
+
*/
|
|
10
|
+
export async function listPetsHandler({ params }: { params?: ListPetsQueryParams }): Promise<Promise<CallToolResult>> {
|
|
11
|
+
const res = await fetch<ListPetsQueryResponse, ResponseErrorConfig<Error>, unknown>({ method: 'GET', url: `/pets`, baseURL: `${123456}`, params })
|
|
12
|
+
}
|