Provides event storage functionality for session resumability, allowing the MCP server to recover and replay events after disconnections.
Suggested as a reverse proxy for production deployments of the MCP server to handle incoming traffic and improve security.
Recommended for production deployment to manage server processes, enabling better reliability and performance monitoring.
Supports testing MCP server endpoints using Postman, with documented request formats for initializing sessions and calling tools via both supported protocols.
Enables development of MCP clients using TypeScript SDK, with support for both modern Streamable HTTP and legacy HTTP+SSE protocols.
Servidor MCP Compatible
Servidor MCP con compatibilidad hacia atrás que soporta tanto el protocolo Streamable HTTP moderno (2025-03-26) como el protocolo HTTP+SSE deprecated (2024-11-05).
🚀 Características
Protocolos Soportados
- Streamable HTTP (2025-03-26) - Protocolo moderno
- ✅ Resumabilidad de sesiones
- ✅ Event Store para recuperación de eventos
- ✅ Gestión avanzada de sesiones
- ✅ Soporte completo para GET/POST/DELETE
- HTTP+SSE (2024-11-05) - Protocolo legacy
- ✅ Notificaciones en tiempo real
- ✅ Compatibilidad con clientes antiguos
- ✅ Soporte para Server-Sent Events
Herramientas Incluidas
- 🔧
get-server-info
- Información del servidor y estadísticas - 🧪
test-compatibility
- Test de compatibilidad de protocolos - 📡
start-notification-stream
- Stream de notificaciones periódicas - 📨
send-immediate-notification
- Notificación inmediata - 🔗
test-protocol-connectivity
- Test de conectividad
📦 Instalación
🎯 Uso
Iniciar el Servidor
El servidor estará disponible en http://localhost:3002
Endpoints Disponibles
GET /
- Información del servidor/mcp
- Endpoint Streamable HTTP (GET/POST/DELETE)/sse
- Endpoint SSE legacy (GET)/messages
- Endpoint POST legacy (POST)
Ejecutar Tests
🔌 Conexión con Clientes
Protocolo Streamable HTTP (Moderno)
Protocolo HTTP+SSE (Legacy)
🧪 Testing con Postman
Protocolo Streamable HTTP
- Inicializar sesión:
- Llamar herramienta:
Protocolo HTTP+SSE
- Establecer stream SSE:
- Enviar mensajes:
🔧 Desarrollo
Estructura del Proyecto
Scripts Disponibles
npm run build
- Compilar TypeScriptnpm run dev
- Ejecutar en modo desarrollonpm run start
- Ejecutar en modo producciónnpm run test
- Test básiconpm run test-both
- Test completo de protocolosnpm run test-modern
- Test protocolo modernonpm run test-legacy
- Test protocolo legacy
📋 Características Técnicas
Resumabilidad (Solo Protocolo Moderno)
El servidor implementa resumabilidad completa:
- Event Store: Almacena eventos para recuperación
- Session Management: Gestión de sesiones persistentes
- Automatic Reconnection: Reconexión automática con recuperación de estado
Compatibilidad hacia Atrás
- Dual Protocol Support: Soporta ambos protocolos simultáneamente
- Independent Sessions: Sesiones independientes por protocolo
- Legacy Client Support: Soporte completo para clientes antiguos
Gestión de Recursos
- Memory Management: Limpieza automática de eventos antiguos
- Connection Cleanup: Limpieza automática de conexiones cerradas
- Graceful Shutdown: Apagado elegante del servidor
🛡️ Producción
Para uso en producción:
- Configurar variables de entorno apropiadas
- Usar un proceso manager como PM2
- Configurar reverse proxy (nginx/apache)
- Implementar logging estructurado
- Monitorear rendimiento y memoria
🤝 Contribuir
- Fork el proyecto
- Crear branch para feature (
git checkout -b feature/nueva-funcionalidad
) - Commit cambios (
git commit -m 'Agregar nueva funcionalidad'
) - Push al branch (
git push origin feature/nueva-funcionalidad
) - Crear Pull Request
📄 Licencia
Este proyecto está bajo la licencia MIT. Ver el archivo LICENSE
para más detalles.
🔗 Enlaces Útiles
Nota: Este servidor es compatible con ambos protocolos MCP, pero se recomienda usar el protocolo Streamable HTTP moderno para nuevas implementaciones debido a sus características avanzadas de resumabilidad y gestión de sesiones.
This server cannot be installed
A dual-protocol MCP server that supports both modern Streamable HTTP and legacy HTTP+SSE protocols, providing backward compatibility for clients while offering advanced features like session resumability.
Related MCP Servers
- AsecurityAlicenseAqualityA simple MCP server that facilitates website fetching through a configurable server platform using stdio or SSE transport, allowing integration with tools like Cursor for streamlined access.Last updated -235PythonMIT License
- -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 -23TypeScript
- -securityAlicense-qualityA reference implementation for creating an MCP server supporting Streamable HTTP & SSE Transports with OAuth authorization, allowing developers to build OAuth-authorized MCP servers with minimal configuration.Last updated -69TypeScriptMIT License
- -securityFlicense-qualityAn MCP (Model Context Protocol) server implementation using HTTP SSE (Server-Sent Events) connections with built-in utility tools including echo, time, calculator, and weather query functionality.Last updated -JavaScript