Skip to main content
Glama
tigranbs

Bun SSE Transport for MCP

by tigranbs

bun-mcp-sse-transport

Bun을 사용하여 MCP(Model Context Protocol)에 대한 SSE(Server-Sent Events) 전송을 구현합니다.

개요

이 패키지는 MCP 서버를 위한 Bun 전용 SSE 전송 구현을 제공합니다. SSE 프로토콜을 사용하여 서버와 클라이언트 간 실시간 단방향 통신을 지원하며, 클라이언트와 서버 간 통신은 HTTP POST 요청을 통해 처리됩니다.

Related MCP server: MCP Server with SSE and Bearer Authentication

주요 특징

  • Bun 런타임을 위해 특별히 제작됨

  • MCP 전송 인터페이스를 구현합니다.

  • 적절한 헤더로 SSE 연결을 관리합니다.

  • 수신 JSON-RPC 메시지를 처리합니다.

  • Bun.serve와의 간단한 통합

빠른 사용

지엑스피1

작동 원리

  1. 클라이언트가 /sse 에 연결하면 서버는 SSE 연결을 생성합니다.

  2. 서버는 클라이언트가 메시지를 POST해야 하는 엔드포인트 URL을 전송합니다.

  3. 클라이언트는 엔드포인트 URL로 JSON-RPC 메시지를 보냅니다.

  4. 서버는 이러한 메시지를 수신하여 MCP 서버로 전달합니다.

  5. MCP 서버는 메시지를 처리하고 SSE 연결을 통해 응답을 보냅니다.

이 구현은 효율적인 실시간 통신을 위해 Bun의 스트리밍 기능을 활용하면서 MCP 표준을 따릅니다.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Implements a Model Context Protocol server using Server-Sent Events for real-time communication with OAuth 2.1 integration via Ory Network, enabling secure AI model communication with authentication and client management.
    Apache 2.0
  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    A 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.
    -
  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    A TypeScript implementation of a Model Context Protocol server that enables real-time communication with LLM clients using Server-Sent Events (SSE) for transport and Bearer Token authentication for security.
    -