Skip to content

Commit 66ef4df

Browse files
committed
chore(server): add zod dep for McpServer migration (Phase 0)
Phase 0 of the Server→McpServer + valibot→Zod migration. A throwaway POC (deleted) validated the target pattern over raw stdio: McpServer with a registration loop + shared dispatch callback, Zod raw-shape inputSchema auto-generating the tools/list JSON Schema with field descriptions (.describe() preserved) and required/optional/min-max intact, registerPrompt for figma_to_code, edge validation rejecting bad args (-32602), and no deprecated Server symbol. zod is pinned to ^4.4.3 to match the SDK's resolved peer (no dual version).
1 parent 8de7066 commit 66ef4df

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

packages/server/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"@msgpack/msgpack": "^3.1.3",
3131
"oxc-parser": "^0.133.0",
3232
"valibot": "^1.4.0",
33-
"ws": "^8.20.1"
33+
"ws": "^8.20.1",
34+
"zod": "^4.4.3"
3435
},
3536
"devDependencies": {
3637
"@types/ws": "^8.18.1",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)