@chkp/documentation-mcp 1.3.0 → 1.4.0
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/CHANGELOG.md +6 -0
- package/dist/index.js +1 -8
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -758,18 +758,11 @@ async function launchHTTPServer(config, serverModule2, port) {
|
|
|
758
758
|
} else if (req.url === "/health" || req.url === "/status") {
|
|
759
759
|
res.writeHead(200, { "Content-Type": "application/json" });
|
|
760
760
|
const sessionCount = serverModule2.sessionManager.getSessionCount();
|
|
761
|
-
const sessions = serverModule2.sessionManager.getAllSessions().map((session) => ({
|
|
762
|
-
id: session.sessionId,
|
|
763
|
-
createdAt: session.createdAt,
|
|
764
|
-
lastActive: session.lastActive
|
|
765
|
-
// Don't include potentially sensitive metadata
|
|
766
|
-
}));
|
|
767
761
|
res.end(JSON.stringify({
|
|
768
762
|
status: "ok",
|
|
769
763
|
server: config.name,
|
|
770
764
|
version: serverModule2.pkg.version,
|
|
771
|
-
activeSessions: sessionCount
|
|
772
|
-
sessions
|
|
765
|
+
activeSessions: sessionCount
|
|
773
766
|
}));
|
|
774
767
|
} else {
|
|
775
768
|
res.writeHead(404, { "Content-Type": "text/plain" });
|
package/dist/package.json
CHANGED
package/package.json
CHANGED