feat: SSE (Server-Sent Events) support for n8n integration

- Added SSE server implementation for real-time event streaming
- Created n8n compatibility mode with strict schema validation
- Implemented session management for concurrent connections
- Added comprehensive SSE documentation and examples
- Enhanced MCP tools with async execution support
- Added Docker Compose configuration for SSE deployment
- Included test scripts and integration tests

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
czlonkowski
2025-07-09 08:24:44 +02:00
parent 87f0cfc4dc
commit 54e09c9673
23 changed files with 3981 additions and 20 deletions

View File

@@ -5,6 +5,31 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2.8.0] - 2025-07-08
### Added
- **NEW: SSE (Server-Sent Events) mode** - Full implementation for n8n MCP Server Trigger integration
- **NEW: SSE endpoints** - `/sse` for event streams, `/mcp/message` for async requests
- **NEW: SSE Session Manager** - Manages multiple concurrent SSE connections with lifecycle handling
- **NEW: MCP protocol over SSE** - Enables real-time event streaming and async tool execution
- **NEW: Docker Compose SSE configuration** - `docker-compose.sse.yml` for easy deployment
- **NEW: SSE test scripts** - `npm run test:sse` for verification and debugging
- **NEW: n8n workflow example** - Example workflow for MCP Server Trigger with SSE
### Features
- **Real-time communication** - SSE enables push-based updates from server to n8n
- **Long-running operations** - Better support for async and long-running tool executions
- **Multiple connections** - Support for multiple concurrent n8n workflows
- **Keep-alive pings** - Automatic connection maintenance every 30 seconds
- **Session management** - Automatic cleanup of inactive sessions (5-minute timeout)
- **Backward compatibility** - Legacy `/mcp` endpoint still available
### Documentation
- Complete SSE implementation guide at `docs/SSE_IMPLEMENTATION.md`
- Updated README with SSE mode instructions
- Added SSE testing and deployment documentation
- n8n configuration examples for MCP Server Trigger
## [2.7.10] - 2025-07-07
### Added