[v2] Decouple server from express and hono - http framework-agnostic MCP server (#1326)
This commit is contained in:
parent
5ce4b5ef08
commit
f495077e08
1 changed files with 8193 additions and 15757 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue