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