diff --git a/src/everything/everything.ts b/src/everything/everything.ts index a8a439e1..9f4095f3 100644 --- a/src/everything/everything.ts +++ b/src/everything/everything.ts @@ -20,7 +20,6 @@ import { ServerRequest, SubscribeRequestSchema, Tool, - ToolSchema, UnsubscribeRequestSchema, type Root } from "@modelcontextprotocol/sdk/types.js"; @@ -35,11 +34,8 @@ const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const instructions = readFileSync(join(__dirname, "instructions.md"), "utf-8"); -const ToolInputSchema = ToolSchema.shape.inputSchema; -type ToolInput = z.infer; - -const ToolOutputSchema = ToolSchema.shape.outputSchema; -type ToolOutput = z.infer; +type ToolInput = Tool['inputSchema']; +type ToolOutput = Tool['outputSchema']; type SendRequest = RequestHandlerExtra["sendRequest"];