MCP.so
登录

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

基本信息

分类

生产力

许可证

MIT license

运行时

node

传输方式

stdio

发布者

enZane

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

6

For 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 服务器