Skip to content

Commit f9969ae

Browse files
authored
Ignore Zod v4 for MCP SDK compatibility (#111)
* Ignore Zod v4 for MCP SDK compatibility * Use Zod v3 * Update zod import
1 parent 0648944 commit f9969ae

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

.github/dependabot.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ updates:
55
schedule:
66
interval: weekly
77
timezone: Asia/Tokyo
8+
ignore:
9+
- dependency-name: "zod"
10+
versions:
11+
- ">=4.0.0"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@duckdb/node-api": "1.4.1-r.4",
3939
"@modelcontextprotocol/sdk": "^1.20.1",
4040
"fuse.js": "^7.1.0",
41-
"zod": "^4.1.5"
41+
"zod": "^3"
4242
},
4343
"devDependencies": {
4444
"@changesets/cli": "^2.28.1",

pnpm-lock.yaml

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

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
ObservationObject,
66
RelationObject,
77
} from "./types";
8-
import { z } from "zod";
8+
import z from "zod";
99

1010
export const createMCPServer = (
1111
knowledgeGraphManager: KnowledgeGraphManagerInterface

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from "zod";
1+
import z from "zod";
22

33
/**
44
* The primary nodes in the knowledge graph

0 commit comments

Comments
 (0)