diff --git a/README.md b/README.md index 838ea279b4..fb950b586c 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ This repository contains the TypeScript SDK implementation of the MCP specificat - MCP **server** libraries (tools/resources/prompts, Streamable HTTP, stdio, auth helpers) - MCP **client** libraries (transports, high-level helpers, OAuth helpers) -- Optional **middleware packages** for specific runtimes/frameworks (Express, Hono, Node.js HTTP) +- Optional **middleware packages** for specific runtimes/frameworks (Express, Hono, Fastify, Node.js HTTP) - Runnable **examples** (under [`examples/`](https://github.com/modelcontextprotocol/typescript-sdk/tree/main/examples)) ## Packages @@ -50,6 +50,7 @@ They are intentionally thin adapters: they should not introduce new MCP function - **`@modelcontextprotocol/node`**: Node.js Streamable HTTP transport wrapper for `IncomingMessage` / `ServerResponse` - **`@modelcontextprotocol/express`**: Express helpers (app defaults + Host header validation) - **`@modelcontextprotocol/hono`**: Hono helpers (app defaults + JSON body parsing hook + Host header validation) +- **`@modelcontextprotocol/fastify`**: Fastify helpers (app defaults + Host header validation) ## Installation @@ -75,7 +76,7 @@ deno add npm:@modelcontextprotocol/client ### Optional middleware packages -The SDK also publishes optional “middleware” packages that help you **wire MCP into a specific runtime or web framework** (for example Express, Hono, or Node.js `http`). +The SDK also publishes optional “middleware” packages that help you **wire MCP into a specific runtime or web framework** (for example Express, Hono, Fastify, or Node.js `http`). These packages are intentionally thin adapters and should not introduce additional MCP features or business logic. See [`packages/middleware/README.md`](packages/middleware/README.md) for details. @@ -88,6 +89,9 @@ npm install @modelcontextprotocol/express express # Hono integration: npm install @modelcontextprotocol/hono hono + +# Fastify integration: +npm install @modelcontextprotocol/fastify fastify ``` ## Getting Started