Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Neon 9 min read Case study mediumAdept

Is MCP good yet?

Neon's remote MCP server now handles more tool calls than its CLI runs commands and has about twice the CLI's daily active users. Agents pick MCP even where Neon's own skills recommend the CLI, likely because harnesses surface MCP tools to the model automatically. Neon added support for the stateless MCP 2026-07-28 spec, which drops the initialize handshake and Mcp-Session-Id in favor of per-request _meta and Mcp-Method/Mcp-Name headers, so any instance behind a round-robin load balancer can serve any request. That let Neon retire its SSE endpoints and remove Redis-backed session handling, while still accepting the old handshake because most clients (Claude Code excepted) don't use the new spec by default yet.

Assumes: Model Context Protocol basicsHTTP and Server-Sent Eventsserverless functions

Related posts

  • Building the Hugging Face MCP Server

    Hugging Face mediumAdept

    Hugging Face's hosted MCP server at hf.co/mcp runs in production on Streamable HTTP in a stateless, direct-response configuration. That choice permits simple horizontal scaling, since per-user tool selections and Gradio Spaces are looked up per request from HF_TOKEN or OAuth credentials. The write-up compares STDIO, deprecated HTTP+SSE, and the Streamable HTTP patterns (direct response, request-scoped streams, server push), including which MCP features each supports and when sessions are needed. It also explains why real-time tool-list-change notifications are impractical for a public server and reports operational findings: VSCode polling the endpoint when served an HTML page, roughly 100 control messages per tool call, and 164 distinct clients in a week, about half connecting via mcp-remote.

  • The 2026-07-28 MCP Specification Release Candidate

    Model Context Protocol mediumAdept

    MCP 2026-07-28 makes the protocol stateless. It removes the initialize handshake and Mcp-Session-Id, carries version, client info and capabilities in per-request _meta, and replaces held-open SSE elicitation with Multi Round-Trip Requests that echo an opaque requestState. Remote servers can run behind plain round-robin load balancers, route on the new required Mcp-Method/Mcp-Name headers, and let clients cache list results via ttlMs and cacheScope. The release also formalizes Extensions (MCP Apps sandboxed UIs, a redesigned Tasks lifecycle), hardens OAuth with RFC 9207 iss validation and OIDC application_type, and adopts full JSON Schema 2020-12 for tools. Roots, Sampling and Logging are deprecated under a 12-month lifecycle policy, and the final spec lands July 28 after a ten-week validation window.

  • Beta SDKs for the 2026-07-28 MCP Spec Release Candidate Are Here

    Model Context Protocol mediumAdept

    Beta Python v2, TypeScript v2, Go v1.7.0-pre.1 and C# 2.0.0-preview.1 SDKs implement the 2026-07-28 MCP spec release candidate. That revision makes the protocol stateless by dropping the initialize handshake and sessions in favor of server/discover, so servers can sit behind plain round-robin load balancers. It also adds Multi Round-Trip Requests, routable Mcp-Method/Mcp-Name headers, authorization hardening and standard JSON-RPC error codes. Existing servers keep working and new clients fall back to initialize. Opting into the new revision differs per SDK, for example Go needs Stateless=true and TypeScript uses createMcpHandler. Authors should pin exact beta versions and add an upper bound such as mcp<2 to downstream libraries.

  • The 2026-07-28 Specification

    Model Context Protocol mediumAdept

    MCP 2026-07-28 turns the Model Context Protocol from a stateful bidirectional protocol into stateless request/response. The initialize handshake and Mcp-Session-Id are gone, every request carries its version, client info and capabilities in _meta, and any instance behind a round-robin load balancer can serve it. Multi Round-Trip Requests replace server-initiated elicitation and sampling with an input_required result that the client answers on retry. Mcp-Method and Mcp-Name headers let gateways route without parsing bodies, list results carry ttlMs and cacheScope hints, and auth gains RFC 9207 issuer validation, issuer-bound credentials and a deprecation of Dynamic Client Registration in favor of client metadata documents (CIMD). Tasks move into an extension, and Roots, Sampling, Logging and HTTP+SSE are deprecated with a twelve-month window.

  • Bringing MCP to the Cloud

    Neon mediumAdept

    Neon moved its MCP server from a locally spawned stdio process authenticated by a long-lived API key to a hosted server at mcp.neon.tech, using SSE for server-to-client messages and HTTP POST to a /messages endpoint routed by an in-memory session map. Authentication uses OAuth 2.1: the MCP server acts as an OAuth server to MCP clients, with dynamic client registration, PKCE and refresh tokens, and as an OAuth client to Neon upstream. Each session gets its own MCP server instance scoped to the user's Neon token. The server runs as a Docker image on Fly. Open issues include the Node.js dependency introduced by mcp-remote and clients restarting the OAuth flow instead of using refresh tokens.

The quest for software engineering knowledge.

Look:
Layout: