@vheins/local-memory-mcp 0.8.3 → 0.8.4
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/{chunk-MC6NSQJ6.js → chunk-E6BKW23Y.js} +1629 -1629
- package/dist/dashboard/server.js +7 -2
- package/dist/mcp/server.js +1 -1
- package/package.json +1 -1
package/dist/dashboard/server.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
TOOL_DEFINITIONS,
|
|
7
7
|
listResources,
|
|
8
8
|
logger
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-E6BKW23Y.js";
|
|
10
10
|
|
|
11
11
|
// src/dashboard/server.ts
|
|
12
12
|
import express from "express";
|
|
@@ -899,7 +899,7 @@ function getStaticRoot() {
|
|
|
899
899
|
}
|
|
900
900
|
var staticRoot = getStaticRoot();
|
|
901
901
|
logger.debug("Dashboard serving assets from", { staticRoot });
|
|
902
|
-
app.use(express.static(staticRoot));
|
|
902
|
+
app.use(express.static(staticRoot, { fallthrough: true }));
|
|
903
903
|
app.use((req, res, next) => {
|
|
904
904
|
if (req.path.startsWith("/api")) return next();
|
|
905
905
|
const indexPath = path3.join(staticRoot, "index.html");
|
|
@@ -936,6 +936,11 @@ app.use((req, res, next) => {
|
|
|
936
936
|
`);
|
|
937
937
|
}
|
|
938
938
|
});
|
|
939
|
+
app.use((err, req, res, _next) => {
|
|
940
|
+
if (err.status === 404) return res.status(404).end();
|
|
941
|
+
logger.error("Unhandled error", { error: err.message });
|
|
942
|
+
res.status(500).end();
|
|
943
|
+
});
|
|
939
944
|
if (process.env.DASHBOARD_ENABLE_MCP === "true") {
|
|
940
945
|
mcpClient.start().catch((e) => logger.error("MCP Client failed", { error: e.message }));
|
|
941
946
|
}
|
package/dist/mcp/server.js
CHANGED