@access-mcp/system-status 0.2.3 → 0.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/README.md +154 -8
- package/dist/__tests__/server.integration.test.d.ts +1 -0
- package/dist/__tests__/server.integration.test.js +225 -0
- package/dist/__tests__/server.test.d.ts +1 -0
- package/dist/__tests__/server.test.js +380 -0
- package/dist/index.js +2 -2
- package/dist/server.d.ts +29 -1
- package/dist/server.js +349 -133
- package/dist/web-server.js +23 -23
- package/package.json +17 -2
package/dist/web-server.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import express from
|
|
2
|
-
import path from
|
|
3
|
-
import { SystemStatusServer } from
|
|
1
|
+
import express from "express";
|
|
2
|
+
import path from "path";
|
|
3
|
+
import { SystemStatusServer } from "./server.js";
|
|
4
4
|
export function startWebServer(port = 3000) {
|
|
5
5
|
const app = express();
|
|
6
6
|
const server = new SystemStatusServer();
|
|
7
7
|
// Serve static files from public directory
|
|
8
|
-
const publicDir = path.join(__dirname,
|
|
8
|
+
const publicDir = path.join(__dirname, "../../../public");
|
|
9
9
|
app.use(express.static(publicDir));
|
|
10
10
|
// Health check endpoint
|
|
11
|
-
app.get(
|
|
12
|
-
res.json({ status:
|
|
11
|
+
app.get("/health", (req, res) => {
|
|
12
|
+
res.json({ status: "ok", service: "access-mcp-system-status" });
|
|
13
13
|
});
|
|
14
14
|
// API endpoint to list tools (for documentation)
|
|
15
|
-
app.get(
|
|
15
|
+
app.get("/api/tools", (req, res) => {
|
|
16
16
|
res.json({
|
|
17
|
-
server:
|
|
18
|
-
version:
|
|
17
|
+
server: "ACCESS-CI System Status MCP Server",
|
|
18
|
+
version: "0.3.0",
|
|
19
19
|
tools: [
|
|
20
20
|
{
|
|
21
|
-
name:
|
|
22
|
-
description:
|
|
21
|
+
name: "get_current_outages",
|
|
22
|
+
description: "Get current system outages and issues affecting ACCESS-CI resources",
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
name:
|
|
26
|
-
description:
|
|
25
|
+
name: "get_scheduled_maintenance",
|
|
26
|
+
description: "Get scheduled maintenance and future outages for ACCESS-CI resources",
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
name:
|
|
30
|
-
description:
|
|
29
|
+
name: "get_system_announcements",
|
|
30
|
+
description: "Get all system announcements (current and scheduled)",
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
name:
|
|
34
|
-
description:
|
|
35
|
-
}
|
|
33
|
+
name: "check_resource_status",
|
|
34
|
+
description: "Check the operational status of specific ACCESS-CI resources",
|
|
35
|
+
},
|
|
36
36
|
],
|
|
37
37
|
resources: [
|
|
38
38
|
{
|
|
39
|
-
uri:
|
|
40
|
-
name:
|
|
41
|
-
description:
|
|
42
|
-
}
|
|
43
|
-
]
|
|
39
|
+
uri: "accessci://system-status",
|
|
40
|
+
name: "ACCESS-CI System Status",
|
|
41
|
+
description: "Real-time status of ACCESS-CI infrastructure, outages, and maintenance",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
// Start server
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@access-mcp/system-status",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "MCP server for ACCESS-CI System Status and Outages API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "tsc",
|
|
16
|
+
"start": "node dist/index.js",
|
|
17
|
+
"dev": "npm run build && npm start",
|
|
18
|
+
"test": "vitest run --exclude '**/**.integration.test.ts'",
|
|
19
|
+
"test:integration": "vitest run --config vitest.integration.config.ts",
|
|
20
|
+
"test:all": "vitest run",
|
|
21
|
+
"test:watch": "vitest",
|
|
22
|
+
"test:ui": "vitest --ui",
|
|
23
|
+
"test:coverage": "vitest run --coverage --exclude '**/**.integration.test.ts'",
|
|
16
24
|
"prepublishOnly": "npm run build"
|
|
17
25
|
},
|
|
18
26
|
"keywords": [
|
|
@@ -36,7 +44,14 @@
|
|
|
36
44
|
"node": ">=18.0.0"
|
|
37
45
|
},
|
|
38
46
|
"dependencies": {
|
|
39
|
-
"@access-mcp/shared": "^0.
|
|
47
|
+
"@access-mcp/shared": "^0.3.0",
|
|
40
48
|
"express": "^4.18.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/node": "^22.0.0",
|
|
52
|
+
"@vitest/ui": "^2.1.9",
|
|
53
|
+
"c8": "^10.1.3",
|
|
54
|
+
"typescript": "^5.0.0",
|
|
55
|
+
"vitest": "^2.1.9"
|
|
41
56
|
}
|
|
42
57
|
}
|