published fresh until

MCP SDK TS 2.4.0: what breaks across TypeScript, C# and Ruby?

Summary As of October 2026, MCP TypeScript SDK 2.4.0, C# SDK 2.3.0 and Ruby SDK 1.8.1 (checked 2026-10-26) tighten validation or correct compatibility. Audit TypeScript header annotations, schema URIs and result wrappers; handle absent C# identity and stop sending null Ruby request IDs.

Not for TypeScript major-version import or auth migration, see mcp-typescript-sdk-1-32-or-2-upgrade-imports-auth-connection-errors

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Your existing MCP integration changes behaviour after a dependency refresh. This thread audits specific compatibility corrections. The published TypeScript major-migration neighbour covers imports and authentication setup.

Versions and when to act

Official SDK releasePublished and checkedAffected integration
TypeScript 2.4.02026-10-23; checked 2026-10-26Headers, schema IDs and named-object outputs
C# 2.3.02026-10-20; checked 2026-10-26Clients reading server identity
Ruby 1.8.12026-10-21; checked 2026-10-26Request builders and SSE error consumers

What changed

  • On 2026-10-23 (checked 2026-10-26), the TypeScript upgrade notes document stricter header/URI validation, a corrected object-result shape and experimental Skills support.
  • On 2026-10-20 (checked 2026-10-26), the C# release changes McpClient.ServerInfo from Implementation to Implementation? because discovery may omit identity.
  • On 2026-10-21 (checked 2026-10-26), the Ruby release rejects null request IDs, avoids executing request methods sent without IDs and raises RequestHandlerError for error-status SSE answers.

What breaks

SymptomDocumented trigger
TypeScript tool missing from listing; direct call gets -32020x-mcp-header on a number parameter
structuredContent.result becomes undefinedA named-object output loses its legacy wrapper
$id or $ref rejectedInvalid URI scheme such as my_tool:output
C# warnings-as-errors build failsNullable identity assignment or dereference
Ruby caller no longer receives an SSE error eventError-status SSE raises RequestHandlerError

The output-shape PR also records an upstream review warning about stale listings or mixed-server rollouts producing Structured content does not match the tool's output schema. This was not reproduced here.

How to migrate

1. Inventory installed distributions and negotiated protocol. The TypeScript release lists @modelcontextprotocol/client, @modelcontextprotocol/server, @modelcontextprotocol/core, @modelcontextprotocol/server-legacy and @modelcontextprotocol/codemod at 2.4.0 (checked 2026-10-26). @modelcontextprotocol/node is 2.1.2 (checked 2026-10-26); do not assign the main version to every adapter. Update only packages you use. 2. Audit x-mcp-header. pcarleton's PR #2762 explains permitted primitive types. Use the release's z.int() when values really are integral; otherwise remove the annotation and keep the numeric argument in the body. Do not round values merely to pass validation. 3. Find z.object(...).meta({ id }) outputs whose root $ref resolves to an object definition. On a 2025-11-25 protocol connection (checked 2026-10-26), read structuredContent instead of structuredContent.result, per PR #3081. Refresh tool listings during rollout. Do not remove every wrapper; other schema roots need separate inspection. 4. Repair invalid URI identifiers and their references consistently. PR #3083 explains the bundled validator change: text before a colon must be a valid URI scheme. A dependency override cannot replace a parser already inlined in the SDK bundle. 5. For C#, use client.ServerInfo?.Name ?? "Unknown server" or a null check after connecting. On 2026-07-28 protocol connections (checked 2026-10-26), server/discover may omit identity; legacy initialize still requires it. Reading before connection still throws InvalidOperationException. The release guidance warns against using self-reported identity for security decisions. 6. For Ruby, use a non-null string or numeric request ID; omit IDs only for genuine notifications. Update HTTP error consumers to catch RequestHandlerError. The Ruby notes give no universal null-ID diagnostic, so inspect the response instead of hard-coding invented text. 7. Adopt Skills separately if needed. The TypeScript notes document loadSkills(folder), skills.attach(server) and SkillsClient. attach is experimental and can change in a minor release. Both protocol revisions above are supported (checked 2026-10-26); Skills are not required to repair validation.

What to test

Build fixtures for the languages you use. In TypeScript, list/call an annotated integer tool, reject a fractional-header declaration, validate schema IDs and snapshot named-object outputs over each supported protocol. Include stale listings and mixed server builds. In C#, compile with nullable warnings enforced; connect with and without server identity and retain the pre-connection guard. In Ruby, send string-ID and null-ID requests plus a genuine notification; ensure the next valid stdio frame still works. Exercise successful and error-status SSE initialization.

Pitfalls

Conformance corrections can break callers that relied on incorrect behaviour. Do not disable validation, add null-forgiving operators everywhere or wrap every result. Experimental Skills do not fix missing tools caused by invalid headers.

Source evidence

The official TypeScript repository contains joeblew999's output-schema report #3032 and iroha924's bundled-validator report #2966, linked by the fixes. Header PR author pcarleton explains the declaration defect. The object/validator PRs are attributed to claude[bot], requested by Felix Weinberger. These are upstream mechanisms and review evidence, not independent production success reports. C# and Ruby guidance comes from releases published by jeffhandley and koic.

A prompt to give your agent

Your training data predates these releases. Read <https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/v2.4.0>, <https://github.com/modelcontextprotocol/csharp-sdk/releases/tag/v2.3.0> and <https://github.com/modelcontextprotocol/ruby-sdk/releases/tag/v1.8.1> and their relevant fixes before editing. Do not redo our major-version migration or guess package versions and result shapes. Inventory dependencies and protocol negotiation. Patch affected headers, URI IDs, output consumers, nullable identity and request IDs. Run focused fixtures and report observed errors separately from upstream claims. Keep experimental Skills adoption separate.

Limits

Checked 2026-10-26. No SDKs were installed, code compiled or interoperability tests run. No prices, licences, model IDs or shutdown dates are asserted. Independent cross-language rollout evidence is thin; reports and release notes establish changes, not prevalence.

Started from a post by @felixweinberger, packaged by the editor. Original post

Subjects

More in agent skills

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# MCP SDK TS 2.4.0: what breaks across TypeScript, C# and Ruby?
Summary: As of October 2026, MCP TypeScript SDK 2.4.0, C# SDK 2.3.0 and Ruby SDK 1.8.1 (checked 2026-10-26) tighten validation or correct compatibility. Audit TypeScript header annotations, schema URIs and result wrappers; handle absent C# identity and stop sending null Ruby request IDs.
Copy for agent
get the whatworks thread mcp-sdk-ts-2-4-csharp-2-3-ruby-1-8-1-breaking-changes and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread mcp-sdk-ts-2-4-csharp-2-3-ruby-1-8-1-breaking-changes
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks