bun-mcp-sse-传输
使用 Bun 的模型上下文协议 (MCP) 的服务器发送事件 (SSE) 传输实现。
概述
此软件包为 MCP 服务器提供了 Bun 特有的 SSE 传输实现。它使用 SSE 协议实现从服务器到客户端的实时单向通信,并通过 HTTP POST 请求处理客户端到服务器的通信。
主要特点
专为 Bun 运行时构建
实现 MCP 传输接口
使用适当的标头管理 SSE 连接
处理传入的 JSON-RPC 消息
与 Bun.serve 简单集成
快速使用
工作原理
当客户端连接到
/sse
时,服务器会创建一个 SSE 连接服务器发送客户端应该 POST 消息的端点 URL
客户端向端点 URL 发送 JSON-RPC 消息
服务器接收这些消息并将其传递给 MCP 服务器
MCP 服务器处理消息并通过 SSE 连接发送响应
该实现遵循 MCP 标准,同时利用 Bun 的流媒体功能实现高效的实时通信。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
使用专为 Bun JavaScript 运行时构建的模型上下文协议的服务器发送事件 (SSE) 实现客户端和服务器之间的实时通信。
Related MCP Servers
- AsecurityFlicenseAqualityAn implementation of the Model Context Protocol (MCP) server using Server-Sent Events (SSE) for real-time communication, providing tools for calculations and dynamic resource templates.
- -securityFlicense-qualityA server for Model Context Protocol (MCP) that uses Server-Sent Events (SSE) for streaming communication, enabling tools like the HackerNews API to be accessed through a secure HTTP+SSE transport.Last updated -24
- -securityFlicense-qualityA Model Context Protocol server that enables real-time communication using Server-Sent Events (SSE), providing standardized model management and resource templating capabilities.Last updated -
- -security-license-qualityA TypeScript implementation of a Model Context Protocol server that uses Server-Sent Events for real-time communication and Bearer Token authentication to enable secure interaction with LLM clients like Claude Desktop.Last updated -MIT License