File tree Expand file tree Collapse file tree 8 files changed +16
-8
lines changed
Expand file tree Collapse file tree 8 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 4747 "is-type-of" : " ^1.2.1" ,
4848 "path-to-regexp" : " ^1.8.0" ,
4949 "reflect-metadata" : " ^0.1.13" ,
50- "undici" : " ^5.26.5"
50+ "undici" : " ^5.26.5" ,
51+ "zod" : " ^3.24.4"
5152 },
5253 "devDependencies" : {
5354 "@types/mocha" : " ^10.0.1" ,
Original file line number Diff line number Diff line change 5252 "@eggjs/tegg-runtime" : " ^3.57.4" ,
5353 "@eggjs/tegg-schedule-decorator" : " ^3.57.4" ,
5454 "@eggjs/tegg-transaction-decorator" : " ^3.57.4" ,
55- "@eggjs/tegg-types" : " ^3.57.4"
55+ "@eggjs/tegg-types" : " ^3.57.4" ,
56+ "zod" : " ^3.24.4"
5657 },
5758 "publishConfig" : {
5859 "access" : " public"
Original file line number Diff line number Diff line change 1+ export * from 'zod' ;
Original file line number Diff line number Diff line change 1- import type { ZodTypeAny , objectOutputType } from 'zod' ;
1+ import * as z from '@eggjs/tegg/ zod' ;
22import type { GetPromptResult } from '@modelcontextprotocol/sdk/types.js' ;
33import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js' ;
44
5- export type PromptArgs < T extends Parameters < McpServer [ 'prompt' ] > [ '2' ] > = objectOutputType < T , ZodTypeAny > ;
5+ export type PromptArgs < T extends Parameters < McpServer [ 'prompt' ] > [ '2' ] > = z . objectOutputType < T , z . ZodTypeAny > ;
66export type PromptExtra = Parameters < Parameters < McpServer [ 'prompt' ] > [ '3' ] > [ '1' ] ;
77
88export type MCPPromptResponse = GetPromptResult ;
Original file line number Diff line number Diff line change 1- import type { ZodTypeAny , objectOutputType } from 'zod' ;
1+ import * as z from '@eggjs/tegg/ zod' ;
22import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js' ;
33import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js' ;
44
5- export type ToolArgs < T extends Parameters < McpServer [ 'tool' ] > [ '2' ] > = objectOutputType < T , ZodTypeAny > ;
5+ export type ToolArgs < T extends Parameters < McpServer [ 'tool' ] > [ '2' ] > = z . objectOutputType < T , z . ZodTypeAny > ;
66export type ToolExtra = Parameters < Parameters < McpServer [ 'tool' ] > [ '4' ] > [ '1' ] ;
77
88export type MCPToolResponse = CallToolResult ;
Original file line number Diff line number Diff line change 3636 "publishConfig" : {
3737 "access" : " public"
3838 },
39+ "dependencies" : {
40+ "@eggjs/tegg" : " ^3.57.4"
41+ },
3942 "devDependencies" : {
4043 "@eggjs/mcp-proxy" : " ^3.57.4" ,
4144 "@eggjs/tegg-controller-plugin" : " ^3.57.4" ,
Original file line number Diff line number Diff line change 6464 "koa-compose" : " ^3.2.1" ,
6565 "path-to-regexp" : " ^1.8.0" ,
6666 "raw-body" : " ^2.5.2" ,
67- "sdk-base" : " ^4.2.0"
67+ "sdk-base" : " ^4.2.0" ,
68+ "zod" : " ^3.24.4"
6869 },
6970 "devDependencies" : {
7071 "@eggjs/module-test-util" : " ^3.57.4" ,
Original file line number Diff line number Diff line change 5959 "content-type" : " ^1.0.5" ,
6060 "eventsource-parser" : " ^3.0.1" ,
6161 "raw-body" : " ^2.5.2" ,
62- "sdk-base" : " ^5.0.1"
62+ "sdk-base" : " ^5.0.1" ,
63+ "zod" : " ^3.24.4"
6364 },
6465 "devDependencies" : {
6566 "@eggjs/egg-module-common" : " ^3.57.4" ,
You can’t perform that action at this time.
0 commit comments