@sanctuary-framework/mcp-server 0.10.4 → 0.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -7116,11 +7116,20 @@ function generateDashboardHTML(options) {
7116
7116
 
7117
7117
  // SSE Setup
7118
7118
  function setupSSE() {
7119
- const eventSource = new EventSource(API_BASE + '/api/events', {
7120
- headers: {
7121
- 'Authorization': 'Bearer ' + AUTH_TOKEN,
7122
- },
7123
- });
7119
+ // v0.10.5: the standard browser EventSource API does not support a
7120
+ // headers option \u2014 it is silently dropped. Auth must travel as a
7121
+ // cookie (set by /auth/session and sent automatically by the
7122
+ // browser) or as a ?session= query parameter, both of which Stack
7123
+ // A's checkAuth honours. Loopback callers also bypass auth via the
7124
+ // v0.10.2 _autoAuthLocalhost path, which is the path moltbook
7125
+ // hits when the dashboard is auto-opened on 127.0.0.1.
7126
+ //
7127
+ // The endpoint itself is /events \u2014 Stack A's route table mounts it
7128
+ // there, and the previous /api/events URL was a 404 in every real
7129
+ // boot from v0.10.0 through v0.10.4. The retry loop that result
7130
+ // produced is exactly the "status bar flashing blue continuously"
7131
+ // moltbook reported on v0.10.4.
7132
+ const eventSource = new EventSource(API_BASE + '/events');
7124
7133
 
7125
7134
  eventSource.addEventListener('init', (e) => {
7126
7135
  console.log('Connected to SSE');