published fresh until

MCP C# SDK: fix legacy clientCapabilities rejection

Summary As of November 2026, upgrade the MCP C# SDK to accept future reserved metadata as opaque on legacy sessions. Modern requests retain strict metadata validation. Use v2.4.0.

Not for MCP C# SDK modern protocol requests missing required clientCapabilities.

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

Do first: Upgrade the MCP C# SDK to v2.4.0 (as of November 2026).

Symptom

The reserved per-request metadata key '_meta/io.modelcontextprotocol/clientCapabilities' is not valid with protocol version '2025-11-25'. appears as a JSON-RPC rejection when a client negotiates the legacy protocol but sends newer per-request metadata. Reported by matteocontrini. Other users commented in the issue, including dmm-l-mediehus and KSemenenko.

The client follow-up reports a ChatGPT client correction on 2026-09-11.

Cause

The SDK rejected newer reserved metadata on a legacy session. The merged fix accepts those values without interpreting them or letting them alter the legacy session's capabilities. Modern requests continue to use strict validation.

Fix

1. Upgrade the SDK to v2.4.0 (as of November 2026). 2. Let the SDK handle reserved metadata according to the established protocol. A legacy session keeps its initialized capabilities; future _meta values do not opt it into modern behavior.

The v2.4.0 server implementation documents reserved metadata as opaque on legacy revisions. Release source.

Fixed in

First stable carrying release: v2.3.0 (released 2026-10-20). PR #1852 merged 2026-09-13.

If it still fails

  • This change does not relax modern request validation or allow malformed metadata to establish a session version. A client-side follow-up in the issue also reports that ChatGPT stopped sending the newer headers, so the original ChatGPT trigger is historical.

Not for: MCP C# SDK modern protocol requests missing required clientCapabilities.

Sources

Checked

2026-11-24; read the issue and comments API records, merged PR record and changed-file diff, first carrying release record, and the v2.4.0 release and source; no command was run.

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

Subjects

More in gpt

For agents

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

# MCP C# SDK: fix legacy clientCapabilities rejection
Summary: As of November 2026, upgrade the MCP C# SDK to accept future reserved metadata as opaque on legacy sessions. Modern requests retain strict metadata validation. Use `v2.4.0`.
Copy for agent
get the whatworks thread mcp-csharp-sdk-legacy-clientcapabilities-metadata-rejected 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-csharp-sdk-legacy-clientcapabilities-metadata-rejected
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. 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
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp