Streamable HTTP Transport for Web Fetch API
@enZane
关于 Streamable HTTP Transport for Web Fetch API
A Stremeable Http Transport for the Model Context Protocol (MCP) suited for frameworks like Hono, enabling real-time communication using Server-Sent Events (SSE) and standard HTTP requests. Implements the MCP Streamable HTTP transport specification for edge-compatible environment
基本信息
配置
工具
6For strong typing and modern JavaScript features.
For fast and reliable unit and integration testing.
For consistent code formatting and linting.
For efficient bundling of TypeScript code into CJS and ESM formats.
For streamlined version management and changelog generation.
For managing Git hooks.
概览
What is Streamable HTTP Transport for Web Fetch API?
It is an edge-compatible server transport for the Model Context Protocol (MCP) that enables real-time, bi-directional communication using Server-Sent Events (SSE) and standard HTTP requests. It is built with TypeScript and optimized for modern web frameworks like Hono and edge computing platforms.
How to use Streamable HTTP Transport for Web Fetch API?
Install the stremeable-http-transport npm package and import the EdgeStreamableHTTPTransport class. Detailed configuration and integration steps are provided in the package’s own README. The transport can be used in Node.js or edge environments supporting the Web Fetch API.
Key features of Streamable HTTP Transport for Web Fetch API
- Implements the MCP Streamable HTTP transport specification.
- Supports SSE streaming and direct HTTP responses.
- Session management with stateful and stateless modes.
- Resumability via an extensible event store.
- Optimized for edge computing platforms and frameworks.
- Written in TypeScript and bundled as CJS/ESM.
Use cases of Streamable HTTP Transport for Web Fetch API
- Building real-time MCP servers deployed on edge runtimes.
- Streaming AI model responses or tool outputs over SSE.
- Enabling bi-directional communication in serverless or edge environments.
- Creating MCP-compatible services with session-aware, resumable streams.
FAQ from Streamable HTTP Transport for Web Fetch API
What runtime or frameworks does it support?
It is designed for modern edge environments and works with frameworks like Hono, as well as any runtime supporting the Web Fetch API.
Does it support session persistence?
Yes, it includes session management in both stateful and stateless modes, with resumability support via an extensible event store.
How does the transport communicate?
It uses Server-Sent Events (SSE) for streaming from server to client and standard HTTP requests for client-to-server messages, following the MCP Streamable HTTP specification.
Where can I find more detailed documentation?
Refer to the package README at packages/stremeable-http-transport/README.md for full configuration and API details.
What is the license?
This project is licensed under the MIT License.
生产力 分类下的更多 MCP 服务器
MCP Windows Desktop Automation
mario-andreschakA Model Context Protocol (MCP) server for Windows desktop automation using AutoIt.
Task Manager MCP Server
tradesdontlieA task management MCP server that provides comprehensive project and task tracking capabilities
Npx Y convex@latest mcp start
get-convexThe open-source reactive database for app developers
Desktop Commander MCP
wonderwhy-erThis is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities
AppleScript MCP Server (Dual access: python and node.js)
peakmojoMCP server that execute applescript giving you full control of your Mac
评论