@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.cjs +14 -5
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +14 -5
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +14 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -7119,11 +7119,20 @@ function generateDashboardHTML(options) {
|
|
|
7119
7119
|
|
|
7120
7120
|
// SSE Setup
|
|
7121
7121
|
function setupSSE() {
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7122
|
+
// v0.10.5: the standard browser EventSource API does not support a
|
|
7123
|
+
// headers option \u2014 it is silently dropped. Auth must travel as a
|
|
7124
|
+
// cookie (set by /auth/session and sent automatically by the
|
|
7125
|
+
// browser) or as a ?session= query parameter, both of which Stack
|
|
7126
|
+
// A's checkAuth honours. Loopback callers also bypass auth via the
|
|
7127
|
+
// v0.10.2 _autoAuthLocalhost path, which is the path moltbook
|
|
7128
|
+
// hits when the dashboard is auto-opened on 127.0.0.1.
|
|
7129
|
+
//
|
|
7130
|
+
// The endpoint itself is /events \u2014 Stack A's route table mounts it
|
|
7131
|
+
// there, and the previous /api/events URL was a 404 in every real
|
|
7132
|
+
// boot from v0.10.0 through v0.10.4. The retry loop that result
|
|
7133
|
+
// produced is exactly the "status bar flashing blue continuously"
|
|
7134
|
+
// moltbook reported on v0.10.4.
|
|
7135
|
+
const eventSource = new EventSource(API_BASE + '/events');
|
|
7127
7136
|
|
|
7128
7137
|
eventSource.addEventListener('init', (e) => {
|
|
7129
7138
|
console.log('Connected to SSE');
|