Skip to content

Commit af15c68

Browse files
committed
upgrade everything-server to zod v4, latest MCP sdk
1 parent 4503e2d commit af15c68

5 files changed

Lines changed: 62 additions & 20 deletions

File tree

‎package-lock.json‎

Lines changed: 51 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/everything/package.json‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,19 @@
3030
"test": "vitest run --coverage"
3131
},
3232
"dependencies": {
33-
"@modelcontextprotocol/sdk": "^1.26.0",
33+
"@modelcontextprotocol/sdk": "^1.29.0",
3434
"cors": "^2.8.5",
3535
"express": "^5.2.1",
3636
"jszip": "^3.10.1",
37-
"zod": "^3.25.0",
38-
"zod-to-json-schema": "^3.23.5"
37+
"zod": "^4.0.0"
3938
},
4039
"devDependencies": {
4140
"@types/cors": "^2.8.19",
4241
"@types/express": "^5.0.6",
4342
"@vitest/coverage-v8": "^2.1.8",
43+
"prettier": "^2.8.8",
4444
"shx": "^0.3.4",
4545
"typescript": "^5.6.2",
46-
"prettier": "^2.8.8",
4746
"vitest": "^2.1.8"
4847
}
4948
}

‎src/everything/tools/gzip-file-as-resource.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const GZIP_ALLOWED_DOMAINS = (process.env.GZIP_ALLOWED_DOMAINS ?? "")
2727
const GZipFileAsResourceSchema = z.object({
2828
name: z.string().describe("Name of the output file").default("README.md.gz"),
2929
data: z
30-
.string()
3130
.url()
3231
.describe("URL or data URI of the file content to compress")
3332
.default(

‎src/everything/tools/trigger-elicitation-request-async.ts‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,10 @@ export const registerTriggerElicitationRequestAsyncTool = (
155155
method: "tasks/get",
156156
params: { taskId },
157157
},
158-
z
159-
.object({
160-
status: z.string(),
161-
statusMessage: z.string().optional(),
162-
})
163-
.passthrough()
158+
z.looseObject({
159+
status: z.string(),
160+
statusMessage: z.string().optional(),
161+
})
164162
);
165163

166164
taskStatus = pollResult.status;

‎src/everything/tools/trigger-sampling-request-async.ts‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,10 @@ export const registerTriggerSamplingRequestAsyncTool = (server: McpServer) => {
159159
method: "tasks/get",
160160
params: { taskId },
161161
},
162-
z
163-
.object({
164-
status: z.string(),
165-
statusMessage: z.string().optional(),
166-
})
167-
.passthrough()
162+
z.looseObject({
163+
status: z.string(),
164+
statusMessage: z.string().optional(),
165+
})
168166
);
169167

170168
taskStatus = pollResult.status;

0 commit comments

Comments
 (0)