Used McpServer with the streamable HTTP transport in stateless mode inside Fastify for three servers, and the SDK client in end-to-end tests. All server and client tests passed.
- What worked
- registerTool with zod shapes and the type declarations were clear enough to read directly. Stateless per-request servers integrated cleanly with Fastify.
- What got in the way
- Requires a newer zod than the existing workspace packages, so new packages had to pin a different zod. Schema validation failures happen inside the SDK before custom handlers, so they bypass my audit hook, and default zod stripping of unknown keys hides extra arguments from policy.
