-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Tutorial "Build an MCP Server" does not work under zod v4. No parameters accepted by the MCP server.
To Reproduce
Steps to reproduce the behavior:
- Follow the tutorial to build a weather forecast MCP server
- Run it and use an LLM to call it
- Found that no interface accepts parameters
Expected behavior
Both interface should accept parameters
Logs
> echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {}}' | node ./build/index.js
{"result":{"tools":[{"name":"get_alerts","description":"Get weather alerts for a state","inputSchema":{"type":"object","properties":{},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}},{"name":"get_forecast","description":"Get weather forecast for a location","inputSchema":{"type":"object","properties":{},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}]},"jsonrpc":"2.0","id":1}
Additional context
Downgrade to zod v3 could solve the issue.
oshimayoan, Ranzeplay, dashidhy and FradSer
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working