@sanctuary-framework/mcp-server 0.10.3 → 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/index.cjs CHANGED
@@ -7009,11 +7009,20 @@ function generateDashboardHTML(options) {
7009
7009
 
7010
7010
  // SSE Setup
7011
7011
  function setupSSE() {
7012
- const eventSource = new EventSource(API_BASE + '/api/events', {
7013
- headers: {
7014
- 'Authorization': 'Bearer ' + AUTH_TOKEN,
7015
- },
7016
- });
7012
+ // v0.10.5: the standard browser EventSource API does not support a
7013
+ // headers option \u2014 it is silently dropped. Auth must travel as a
7014
+ // cookie (set by /auth/session and sent automatically by the
7015
+ // browser) or as a ?session= query parameter, both of which Stack
7016
+ // A's checkAuth honours. Loopback callers also bypass auth via the
7017
+ // v0.10.2 _autoAuthLocalhost path, which is the path moltbook
7018
+ // hits when the dashboard is auto-opened on 127.0.0.1.
7019
+ //
7020
+ // The endpoint itself is /events \u2014 Stack A's route table mounts it
7021
+ // there, and the previous /api/events URL was a 404 in every real
7022
+ // boot from v0.10.0 through v0.10.4. The retry loop that result
7023
+ // produced is exactly the "status bar flashing blue continuously"
7024
+ // moltbook reported on v0.10.4.
7025
+ const eventSource = new EventSource(API_BASE + '/events');
7017
7026
 
7018
7027
  eventSource.addEventListener('init', (e) => {
7019
7028
  console.log('Connected to SSE');