SShortSingh.
Back to feed

MCP C# SDK 2.2.0 Lets One Endpoint Serve Both Legacy and Modern Clients

0
·4 views

The MCP C# SDK version 2.2.0 introduced a hybrid session mode that allows a single ASP.NET Core endpoint to simultaneously support clients using the older 2025-11-25 protocol and those on the newer 2026-07-28 specification. The 2026-07-28 MCP revision eliminated the initialize handshake and session IDs, requiring each HTTP request to be fully self-describing, while older clients still depend on session-based communication. The new HttpServerSessionMode.StatefulForInitializeClients setting enables the server to detect which protocol a client is using and respond with the appropriate session behavior. Legacy clients receive a session ID upon sending an initialize request, whereas modern clients operate statelessly without one. Developers can verify correct behavior offline using Microsoft.AspNetCore.TestHost, which tests both client paths against the same route without opening a network port.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Five Critical Agent Engineering Problems Every AI Developer Should Know

Developers building AI agents are increasingly encountering specific, recurring technical issues that go beyond theoretical questions about agent capabilities. A persistent bug in OpenAI's agent framework causes infinite tool-calling loops when tool_choice is set to required, and the fix requires upgrading to the patched openai-agents-python release rather than adding iteration caps. OpenAI's Assistants API, including its /v1/threads endpoint, is scheduled for full removal on August 26, 2026, with no automated migration tool provided for transferring thread history to the new Conversations format. Microsoft has placed AutoGen in maintenance mode, directing developers to its new Agent Framework — a typed, graph-based system that requires redrawing multi-agent workflows rather than simply translating existing code. Developers are urged to export thread data immediately, audit tool_choice settings, and begin porting Assistants API integrations, as deleted data and expired endpoints cannot be recovered after the deadline.

0
ProgrammingDEV Community ·

Pew Study: Google AI Summaries Linked to Nearly Half the Click-Through Rate

A Pew Research Center study of 900 U.S. adults found that Google searches displaying AI-generated summaries resulted in users clicking traditional result links only 8% of the time, compared to 15% when no summary was present. The analysis covered 68,879 Google searches conducted in March 2025 using real-world browsing data from KnowledgePanel Digital. Users were also more likely to end their browsing session after viewing a search page with an AI summary, at 26% versus 16% without one. About 58% of participants encountered at least one AI summary during the month, with the typical summary running around 67 words. The findings suggest that for publishers and businesses relying on search referrals, ranking in results may no longer reliably translate into site visits when the search page itself resolves the query.

0
ProgrammingDEV Community ·

Developer Builds Free 50-State US Probate Cost Calculator Using Astro and Tailwind CSS

A developer has launched US Probate Calculator, a free web tool that estimates statutory probate and estate settlement costs across all 50 US states. The tool covers state-specific legal frameworks including attorney fee caps, executor commissions, and court fees, drawing on statutes from states like California, New York, and Florida. Built with Astro and Tailwind CSS and hosted on Cloudflare Pages, the calculator runs entirely client-side, requiring no backend processing. This approach ensures user privacy by eliminating data tracking while also enabling fast load times globally. The tool is publicly accessible at usprobatecalculator.com with no paywalls or registration required.

0
ProgrammingDEV Community ·

Why AI Agents Need a Durable Cancellation Protocol, Not Just a Stop Button

A simple stop button is insufficient for real-world AI agents, where work may already be queued, in-flight, or triggering external side effects at the moment cancellation is requested. Developers are advised to model cancellation as durable state using a defined run lifecycle: ACTIVE, CANCELLING, CANCELLED, COMPLETED, and UNKNOWN. A versioned cancel_version field stored in a database allows workers to validate whether a dispatch is still permitted, closing race conditions between operator actions and worker execution. Cancellation checks must be enforced at every boundary that can create work, including queue claims, tool dispatches, retries, and outbound deliveries, rather than only at the top of the agent loop. Ambiguous outcomes, such as when a worker process dies mid-request, should be recorded as UNKNOWN and reconciled via provider APIs rather than silently resolved into success or failure.