From 3d4e6d2c3f3b751df6e2e9e3cecf8bc0085cc4f9 Mon Sep 17 00:00:00 2001 From: sceran Date: Sat, 16 May 2026 23:26:34 +0300 Subject: [PATCH] docs(README): add @modelcontextprotocol/fastify to middleware listing The fastify middleware package (private: false, 2.0.0-alpha.2) is published alongside node, express, and hono, but was absent from the top-level README in three places: overview, middleware section, and install commands. Closes #2112 --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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