Menu

Latest MCP spec now supported in mcp-handler - Vercel
📰

Latest MCP spec now supported in mcp-handler - Vercel

Vercel News·Boris Besemer·5 days ago
#hiM6ajTC
#vercel#handler#server#clients#protocol
Reading 0:00
15s threshold

[email protected] is now available with support for the 2026-07-28 Model Context Protocol specification and MCP TypeScript SDK v2 .

We originally built mcp-handler to make it easier to spin up MCP servers on popular web frameworks including Next, Nuxt, Svelte, and more.

With the new 2.0 release, the handler now supports:

The stateless 2026-07-28 protocol, served natively, including per-request metadata and server/discover

A stateless compatibility layer for clients using 2025-era Streamable HTTP

Both protocols with no Redis dependency or session storage

Existing stateless Streamable HTTP clients can continue connecting to the same /mcp endpoint while servers adopt the latest protocol.

Install the new packages:

npm install mcp-handler@^2 @modelcontextprotocol/server@^2 zod@^4

Create a Next.js route handler:

import { createMcpHandler } from "mcp-handler" ;

import { z } from "zod" ;

const handler = createMcpHandler ( ( server ) => {

server .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.