@ttoss/http-server-mcp 0.12.0 → 0.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/dist/esm/index.js +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/esm/index.js
CHANGED
|
@@ -167,7 +167,7 @@ var registerToolFromSchema = /* @__PURE__ */__name((server, params) => {
|
|
|
167
167
|
registry.set(name, inputSchema);
|
|
168
168
|
server.registerTool(name, {
|
|
169
169
|
description,
|
|
170
|
-
inputSchema: z.record(z.unknown())
|
|
170
|
+
inputSchema: z.record(z.string(), z.unknown())
|
|
171
171
|
}, async args => {
|
|
172
172
|
return handler(args);
|
|
173
173
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as _koa_router from '@koa/router';
|
|
2
1
|
import * as koa from 'koa';
|
|
3
2
|
import { Context } from 'koa';
|
|
4
3
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
5
4
|
export { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
6
5
|
import { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
6
|
+
import { Router } from '@ttoss/http-server';
|
|
7
7
|
export { z } from 'zod';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -163,7 +163,7 @@ interface McpRouterOptions {
|
|
|
163
163
|
* app.listen(3000);
|
|
164
164
|
* ```
|
|
165
165
|
*/
|
|
166
|
-
declare const createMcpRouter: (server: McpServer, options?: McpRouterOptions) =>
|
|
166
|
+
declare const createMcpRouter: (server: McpServer, options?: McpRouterOptions) => Router<koa.DefaultState, koa.DefaultContext>;
|
|
167
167
|
/**
|
|
168
168
|
* A plain JSON Schema object (draft-07 compatible) describing the shape of a
|
|
169
169
|
* tool's input. Used with {@link registerToolFromSchema} as an alternative to
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as _koa_router from '@koa/router';
|
|
2
1
|
import * as koa from 'koa';
|
|
3
2
|
import { Context } from 'koa';
|
|
4
3
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
5
4
|
export { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
6
5
|
import { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
6
|
+
import { Router } from '@ttoss/http-server';
|
|
7
7
|
export { z } from 'zod';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -163,7 +163,7 @@ interface McpRouterOptions {
|
|
|
163
163
|
* app.listen(3000);
|
|
164
164
|
* ```
|
|
165
165
|
*/
|
|
166
|
-
declare const createMcpRouter: (server: McpServer, options?: McpRouterOptions) =>
|
|
166
|
+
declare const createMcpRouter: (server: McpServer, options?: McpRouterOptions) => Router<koa.DefaultState, koa.DefaultContext>;
|
|
167
167
|
/**
|
|
168
168
|
* A plain JSON Schema object (draft-07 compatible) describing the shape of a
|
|
169
169
|
* tool's input. Used with {@link registerToolFromSchema} as an alternative to
|
package/dist/index.js
CHANGED
|
@@ -199,7 +199,7 @@ var registerToolFromSchema = /* @__PURE__ */__name((server, params) => {
|
|
|
199
199
|
registry.set(name, inputSchema);
|
|
200
200
|
server.registerTool(name, {
|
|
201
201
|
description,
|
|
202
|
-
inputSchema: import_zod.z.record(import_zod.z.unknown())
|
|
202
|
+
inputSchema: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown())
|
|
203
203
|
}, async args => {
|
|
204
204
|
return handler(args);
|
|
205
205
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/http-server-mcp",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Model Context Protocol (MCP) server integration for @ttoss/http-server",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
29
|
-
"zod": "^3.
|
|
30
|
-
"@ttoss/http-server": "^0.5.
|
|
29
|
+
"zod": "^4.3.6",
|
|
30
|
+
"@ttoss/http-server": "^0.5.10"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@modelcontextprotocol/sdk": "^1.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@types/koa": "^3.0.
|
|
36
|
+
"@types/koa": "^3.0.2",
|
|
37
37
|
"jest": "^30.3.0",
|
|
38
|
-
"supertest": "^7.
|
|
38
|
+
"supertest": "^7.2.2",
|
|
39
39
|
"tsup": "^8.5.1",
|
|
40
|
-
"@ttoss/config": "^1.37.
|
|
40
|
+
"@ttoss/config": "^1.37.9"
|
|
41
41
|
},
|
|
42
42
|
"keywords": [
|
|
43
43
|
"ai",
|