Commit graph

9 commits

Author SHA1 Message Date
Agent
2210a2f148 fix: update restart delay and kill timeout in ecosystem config 2026-03-13 12:58:08 +00:00
Agent
fc5fa4e16d Add WebSocket observer endpoint for hub state monitoring
- Add /ws/observe WebSocket path for real-time hub state observation
- Implement setupObserveServer(httpServer) function that:
  - Requires secret authentication via observe handshake
  - Sends immediate snapshot of backends on successful auth
  - Streams all EventBus events to connected observers
  - Maintains read-only connections (ignores post-handshake messages)
  - Properly cleans up listeners on disconnect
- Add OBSERVE_SECRET to .env (generate with crypto.randomBytes)
- Export OBSERVE_SECRET from config.js
- Wire setupObserveServer into index.js alongside existing setupWsServer
- Support multiple simultaneous observers
- Modified ws-server.js to allow other upgrade handlers (ws-observe, etc)
- Add OBSERVE_SECRET to ecosystem.config.js env for pm2

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-13 12:26:55 +00:00
Agent
20fd23ff35 security: move secrets to .env, never commit secrets to git 2026-03-13 11:17:53 +00:00
Agent
0da8450830 chore: rotate backend secret to cryptographically strong 64-char hex 2026-03-13 11:13:36 +00:00
Agent
6318364b75 chore: rotate backend secrets to strong random 32-byte hex 2026-03-13 11:13:05 +00:00
Agent
5735a981d8 fix: update mcp-hub environment variables and standardize mcp-bridge settings 2026-03-13 10:34:11 +00:00
Agent
f2f64ec392 feat: add generic mcp-bridge for proxying upstream MCP SSE servers
- Add mcp-bridge/index.js: WebSocket backend for hub, relays requests
  to upstream MCP SSE servers via SSE+POST transport
- Add mcp-bridge/package.json with 'ws' dependency
- Add 'mcp-bridge-memory' entry to ecosystem.config.js (not started)
- Add 'bridge' script to root package.json
- Add mcp-bridge/node_modules to .gitignore

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-13 10:19:27 +00:00
Agent
85b3f5b6e2 mcp-hub-007: Auth hardening — per-service secrets and env-based config 2026-03-13 10:17:45 +00:00
Agent
91f0ce271b Add pm2 process management
- Add ecosystem.config.js with mcp-hub and sample-mcp app configs
- Add pm2:start, pm2:stop, pm2:logs, pm2:status scripts to package.json

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-13 09:08:10 +00:00