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.

コメント

「生産性」の他のコンテンツ