Add Server-Sent Events (SSE) support for Home Assistant integration

- Implemented comprehensive SSE manager with advanced client management
- Added dynamic event subscription and broadcasting capabilities
- Created robust rate limiting and client connection tracking
- Enhanced Home Assistant event handling with new SSE endpoints
- Updated package.json with UUID dependency for client identification
- Expanded test coverage for SSE and WebSocket event handling
- Improved type definitions for Home Assistant events and entities
This commit is contained in:
jango-blockchained
2025-01-30 11:42:19 +01:00
parent 70c9287c68
commit 64e619252c
8 changed files with 872 additions and 196 deletions

View File

@@ -1,5 +1,5 @@
{
"name": "@strandbrown/homeassistant-mcp",
"name": "jango-blockchained/homeassistant-mcp",
"version": "0.1.0",
"description": "Model Context Protocol Server for Home Assistant",
"type": "module",
@@ -26,6 +26,7 @@
"express-rate-limit": "^7.5.0",
"helmet": "^8.0.0",
"litemcp": "^0.7.0",
"uuid": "^11.0.5",
"ws": "^8.18.0",
"zod": "^3.22.4"
},
@@ -36,6 +37,7 @@
"@types/helmet": "^0.0.48",
"@types/jest": "^28.1.8",
"@types/node": "^20.17.10",
"@types/uuid": "^10.0.0",
"@types/ws": "^8.5.14",
"jest": "^28.1.3",
"semver": "^6.3.1",