[v2] Decouple server from express and hono - http framework-agnostic MCP server (#1326)

This commit is contained in:
Konstantin Konstantinov 2026-01-16 12:13:25 +02:00 • committed by GitHub
commit f495077e08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,9 @@
# MCP TypeScript SDK Examples (Server)
This directory contains runnable MCP **server** examples built with `@modelcontextprotocol/server`.
This directory contains runnable MCP **server** examples built with `@modelcontextprotocol/server` plus framework adapters:
- `@modelcontextprotocol/express`
- `@modelcontextprotocol/hono`
For client examples, see [`../client/README.md`](../client/README.md). For guided docs, see [`../../docs/server.md`](../../docs/server.md).
@ -68,7 +71,7 @@ When deploying MCP servers in a horizontally scaled environment (multiple server
### Stateless mode
To enable stateless mode, configure the `StreamableHTTPServerTransport` with:
To enable stateless mode, configure the `NodeStreamableHTTPServerTransport` with:
```typescript
sessionIdGenerator: undefined;