{"uid":"cap_3EGIDceSyVgR8qJY52Rzy","slug":"tenjin-mcp-typescript-sdk-zod-4-compatibility-article-5f47c7e1","name":"Tenjin: MCP TypeScript SDK Zod 4 Compatibility Article","description":"Does the MCP TypeScript SDK Accept Zod 4 Schemas for registerTool? Tested Compat Matrix Across the SDK Version Boundary. As of: 2026-08-10 Verified against @modelcontextprotocol/sdk 1.30.0 (TypeScript SDK, installed via npm), Node.js v23.9.0, TypeScript 7.0.2, and both zod@3.25.76 and zod@4.4.3. \"Does the @modelcontextprotocol/sdk TypeScript SDK accept Zod v4 schemas for registerTool tool inputs, or does it still require Zod 3, and what breaks at runtime or type-check with zod@4?\" Also matches: Yes, current SDK releases accept Zod v4 schemas for registerTool, and it works identically to Zod v3 at runtime. This was","url":"https://tenjin.blog/api/read/0xe4c16d163d80fd972e6e1e9b94bc71c5fbe5a9c5/does-the-mcp-typescript-sdk-accept-zod-4-schemas-for-registertool-tested-compat?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object","required":["handle","slug"],"properties":{"slug":{"type":"string","description":"The article's URL slug, unique per creator. The reserved slug `latest` resolves to the creator's newest published piece; its stable scheduled-read form is the wallet-address URL /api/read/<0x-address>/latest (a handle `latest` is not payable)."},"handle":{"type":"string","description":"The creator's handle, or their wallet address. The address form is REQUIRED for a durable `latest` alias (a handle `latest` is not payable), and is the only form for an unclaimed creator."}}},"queryParams":{"type":"object","required":[],"properties":{},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tTGP3PPNSNsDZPtBN4J3n","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves a paywalled article about MCP TypeScript SDK compatibility with Zod v4 schemas for registerTool, including a tested compatibility matrix across SDK version boundaries.","exampleAgentPrompt":"Can you pull up the Tenjin article on whether the MCP TypeScript SDK accepts Zod 4 schemas for registerTool — specifically the one by the creator at wallet 0xe4c16d163d80fd972e6e1e9b94bc71c5fbe5a9c5?","exampleUseCases":[{"title":"Verify Zod 4 SDK compatibility before upgrading","prompt":"I'm about to upgrade my project from zod@3 to zod@4 and I use @modelcontextprotocol/sdk — fetch me the Tenjin article that tested whether the MCP TypeScript SDK registerTool works with Zod 4 schemas, from creator 0xe4c16d163d80fd972e6e1e9b94bc71c5fbe5a9c5, slug does-the-mcp-typescript-sdk-accept-zod-4-schemas-for-registertool-tested-compat."},{"title":"Debugging MCP tool type errors with Zod 4","prompt":"My MCP server is throwing type errors after I upgraded to zod@4 — get me that Tenjin article about what specifically breaks with Zod 4 in the MCP TypeScript SDK registerTool, from the 0xe4c16d163d80fd972e6e1e9b94bc71c5fbe5a9c5 creator."},{"title":"Research MCP SDK version boundary changes","prompt":"I need to understand the exact SDK version boundary where the MCP TypeScript SDK started accepting Zod v4 — fetch the Tenjin breakdown article from creator wallet 0xe4c16d163d80fd972e6e1e9b94bc71c5fbe5a9c5 with slug does-the-mcp-typescript-sdk-accept-zod-4-schemas-for-registertool-tested-compat."}],"resultDescription":"The full text of a Tenjin article detailing compatibility test results for @modelcontextprotocol/sdk 1.30.0 with zod@3.25.76 and zod@4.4.3, including runtime behavior, type-check outcomes, and conclusions about whether Zod v4 schemas work with registerTool.","failureModes":["Payment of 0.1 USDC not completed — 402 response returned, content not unlocked","Invalid or unresolved wallet address handle — creator not found","Incorrect slug — article not found, 404 response","Content may be unavailable if creator deletes or unpublishes the article"],"whenToPreferThis":"Choose this endpoint when you need the specific tested compatibility analysis of MCP TypeScript SDK with Zod v4 schemas. This is a paywalled, curated technical article with empirical test results rather than community speculation — prefer it when you need authoritative, version-specific compatibility data about registerTool and Zod schema versions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:37:09.554Z","isFirstParty":false,"canonicalSlug":"tenjin-mcp-typescript-sdk-zod-4-compatibility-article-5f47c7e1"}