@sassoftware/sas-score-mcp-serverjs 0.3.15 → 0.3.16
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/package.json +1 -1
- package/src/expressMcpServer.js +12 -0
package/package.json
CHANGED
package/src/expressMcpServer.js
CHANGED
|
@@ -236,6 +236,18 @@ app.options("/mcp", (_, res) => res.sendStatus(204));
|
|
|
236
236
|
app.post("/mcp", requireBearer, handleRequest);
|
|
237
237
|
app.get("/mcp", handleGetDelete);
|
|
238
238
|
app.delete("/mcp", handleGetDelete);
|
|
239
|
+
app.get("/startup", (_req, res) => {
|
|
240
|
+
if (appServer == null) {
|
|
241
|
+
return res.status(500).json({ status: "starting" });
|
|
242
|
+
}
|
|
243
|
+
return res.status(200).json({ status: "started" });
|
|
244
|
+
});
|
|
245
|
+
app.get("/ready", (_req, res) => {
|
|
246
|
+
if (appServer == null) {
|
|
247
|
+
return res.status(500).json({ status: "not ready" });
|
|
248
|
+
}
|
|
249
|
+
return res.status(200).json({ status: "ready" });
|
|
250
|
+
});
|
|
239
251
|
|
|
240
252
|
// Start the server
|
|
241
253
|
let appEnvBase = cache.get("appEnvBase");
|