Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Stateless Starter

БесплатноНе проверен

Starter kit for building stateless MCP servers using the 2026 spec, enabling horizontal scaling without session affinity.

GitHubEmbed

Описание

Starter kit for building stateless MCP servers using the 2026 spec, enabling horizontal scaling without session affinity.

README

Production-ready Model Context Protocol server that scales horizontally on plain HTTP — no sticky sessions, no shared Redis, no deep packet inspection at the gateway. Aligned with the 2026-07-28 MCP Specification Release Candidate.

Why stateless

The 2025 MCP transport required sticky sessions and a shared session store to survive horizontal scale-out. The 2026 spec drops both. Any MCP request can land on any instance behind a round-robin load balancer.

This repo is the minimum example: an MCP server exposing two tools (echo, now) using the stateless HTTP transport, deployable to Vercel/Fly/Cloudflare Workers without changes.

Stack

  • Node 22 + TypeScript
  • @modelcontextprotocol/sdk (HTTP transport)
  • Zero state — every request is self-contained
  • Routes on Mcp-Method header so reverse proxies can shard without parsing JSON-RPC

Quick start

npm install
npm run dev          # http://localhost:3000/mcp
npm run test:client  # runs against local server

Deploy

# Vercel
vercel deploy

# Fly.io
fly launch

# Cloudflare Workers
wrangler deploy

All three work because the server holds zero session state between requests.

What changed vs 2025 transport

2025 (SSE + sessionId) 2026 (stateless HTTP)
Mcp-Session-Id header required No session header
Server holds session map Server holds nothing
Sticky LB required Round-robin LB works
tools/list re-requested per session Cached client-side per ttlMs
SSE stream for server→client Server-Sent Events optional, only for tasks primitive

File map

  • src/server.ts — Express server, single /mcp POST route
  • src/tools.ts — tool definitions (echo, now)
  • src/client.ts — example client that connects + calls a tool
  • vercel.json — zero-config Vercel deploy
  • Dockerfile — for Fly/Cloud Run

Resources

License

MIT — fork freely.


Built by Varritech. We turn AI prototypes into shipped products.

from github.com/Varritech/mcp-stateless-starter

Установка Stateless Starter

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/Varritech/mcp-stateless-starter

FAQ

Stateless Starter MCP бесплатный?

Да, Stateless Starter MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Stateless Starter?

Нет, Stateless Starter работает без API-ключей и переменных окружения.

Stateless Starter — hosted или self-hosted?

Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.

Как установить Stateless Starter в Claude Desktop, Claude Code или Cursor?

Открой Stateless Starter на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Stateless Starter with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development