Skip to main content
Glama
tigranbs

Bun SSE Transport for MCP

by tigranbs

transporte bun-mcp-sse

Una implementación de transporte de eventos enviados por el servidor (SSE) para el Protocolo de contexto de modelo (MCP) utilizando Bun.

Descripción general

Este paquete proporciona una implementación específica de Bun del transporte SSE para servidores MCP. Permite la comunicación unidireccional en tiempo real entre el servidor y el cliente mediante el protocolo SSE, gestionando la comunicación cliente-servidor mediante solicitudes HTTP POST.

Related MCP server: MCP Server with SSE and Bearer Authentication

Características principales

  • Creado específicamente para el tiempo de ejecución de Bun

  • Implementa la interfaz de transporte MCP

  • Administra conexiones SSE con encabezados adecuados

  • Maneja mensajes JSON-RPC entrantes

  • Integración sencilla con Bun.serve

Uso rápido

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { BunSSEServerTransport } from "bun-mcp-sse-transport";

// Create SSE transport
const transport = new BunSSEServerTransport("/messages");

// Connect to MCP server
const server = new McpServer({ name: "MyServer", version: "1.0.0" });
server.connect(transport);

// Set up Bun HTTP server
Bun.serve({
  port: 3000,
  routes: {
    "/sse": () => transport.createResponse(),
    "/messages": (req) => transport.handlePostMessage(req)
  }
});

Cómo funciona

  1. Cuando un cliente se conecta a /sse , el servidor crea una conexión SSE

  2. El servidor envía la URL del punto final donde el cliente debe publicar mensajes

  3. El cliente envía mensajes JSON-RPC a la URL del punto final

  4. El servidor recibe estos mensajes y los pasa al servidor MCP

  5. El servidor MCP procesa los mensajes y envía respuestas a través de la conexión SSE

Esta implementación sigue el estándar MCP y al mismo tiempo aprovecha las capacidades de transmisión de Bun para una comunicación eficiente en tiempo real.

F
license - not found
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    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.

View all related MCP servers

Related MCP Connectors

  • A Model Context Protocol server for Wix AI tools

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • Connect AI agents to Replynodes over the Model Context Protocol.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tigranbs/bun-mcp-sse-transport'

If you have feedback or need assistance with the MCP directory API, please join our Discord server