mcp-coordinator 0.2.1 → 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 +846 -846
- package/dashboard/Dockerfile +19 -19
- package/dashboard/public/index.html +1178 -1178
- package/dist/cli/dashboard.js +9 -5
- package/dist/cli/server/backup.d.ts +7 -0
- package/dist/cli/server/backup.js +162 -0
- package/dist/cli/server/index.js +5 -0
- package/dist/cli/server/restore.d.ts +2 -0
- package/dist/cli/server/restore.js +117 -0
- package/dist/cli/server/start.js +24 -1
- package/dist/cli/server/status.js +16 -23
- package/dist/src/agent-activity.js +6 -6
- package/dist/src/agent-registry.js +6 -6
- package/dist/src/announce-workflow.d.ts +52 -0
- package/dist/src/announce-workflow.js +91 -0
- package/dist/src/consultation.d.ts +22 -0
- package/dist/src/consultation.js +118 -45
- package/dist/src/database.js +126 -126
- package/dist/src/db-adapter.d.ts +30 -0
- package/dist/src/db-adapter.js +32 -1
- package/dist/src/dependency-map.js +5 -5
- package/dist/src/file-tracker.d.ts +10 -0
- package/dist/src/file-tracker.js +40 -8
- package/dist/src/http/handle-health.d.ts +23 -0
- package/dist/src/http/handle-health.js +86 -0
- package/dist/src/http/handle-rest.d.ts +23 -0
- package/dist/src/http/handle-rest.js +374 -0
- package/dist/src/http/utils.d.ts +15 -0
- package/dist/src/http/utils.js +39 -0
- package/dist/src/impact-scorer.js +87 -50
- package/dist/src/introspection.js +1 -1
- package/dist/src/metrics.d.ts +83 -0
- package/dist/src/metrics.js +162 -0
- package/dist/src/mqtt-bridge.d.ts +21 -0
- package/dist/src/mqtt-bridge.js +55 -5
- package/dist/src/mqtt-broker.d.ts +16 -0
- package/dist/src/mqtt-broker.js +16 -1
- package/dist/src/path-guard.d.ts +14 -0
- package/dist/src/path-guard.js +44 -0
- package/dist/src/reset-guard.d.ts +16 -0
- package/dist/src/reset-guard.js +24 -0
- package/dist/src/serve-http.d.ts +31 -1
- package/dist/src/serve-http.js +189 -446
- package/dist/src/server-setup.d.ts +2 -0
- package/dist/src/server-setup.js +25 -366
- package/dist/src/sse-emitter.d.ts +6 -0
- package/dist/src/sse-emitter.js +50 -2
- package/dist/src/tools/agents-tools.d.ts +8 -0
- package/dist/src/tools/agents-tools.js +46 -0
- package/dist/src/tools/consultation-tools.d.ts +21 -0
- package/dist/src/tools/consultation-tools.js +170 -0
- package/dist/src/tools/dependencies-tools.d.ts +8 -0
- package/dist/src/tools/dependencies-tools.js +27 -0
- package/dist/src/tools/files-tools.d.ts +8 -0
- package/dist/src/tools/files-tools.js +28 -0
- package/dist/src/tools/mqtt-tools.d.ts +9 -0
- package/dist/src/tools/mqtt-tools.js +33 -0
- package/dist/src/tools/status-tools.d.ts +8 -0
- package/dist/src/tools/status-tools.js +63 -0
- package/package.json +83 -80
package/dashboard/Dockerfile
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
FROM node:22-slim
|
|
2
|
-
WORKDIR /app
|
|
3
|
-
COPY dashboard/public/ public/
|
|
4
|
-
RUN cat > server.mjs << 'SCRIPT'
|
|
5
|
-
import { createServer } from "http";
|
|
6
|
-
import { readFileSync, existsSync } from "fs";
|
|
7
|
-
import { join, extname } from "path";
|
|
8
|
-
|
|
9
|
-
const MIME = { ".html": "text/html", ".js": "application/javascript", ".css": "text/css", ".json": "application/json" };
|
|
10
|
-
|
|
11
|
-
createServer((req, res) => {
|
|
12
|
-
const filePath = join("public", req.url === "/" ? "index.html" : req.url);
|
|
13
|
-
if (!existsSync(filePath)) { res.writeHead(200, {"Content-Type":"text/html"}); res.end(readFileSync("public/index.html","utf-8")); return; }
|
|
14
|
-
const ext = extname(filePath);
|
|
15
|
-
res.writeHead(200, {"Content-Type": MIME[ext] || "text/plain"});
|
|
16
|
-
res.end(readFileSync(filePath));
|
|
17
|
-
}).listen(3200, () => console.log("Dashboard on :3200"));
|
|
18
|
-
SCRIPT
|
|
19
|
-
CMD ["node", "server.mjs"]
|
|
1
|
+
FROM node:22-slim
|
|
2
|
+
WORKDIR /app
|
|
3
|
+
COPY dashboard/public/ public/
|
|
4
|
+
RUN cat > server.mjs << 'SCRIPT'
|
|
5
|
+
import { createServer } from "http";
|
|
6
|
+
import { readFileSync, existsSync } from "fs";
|
|
7
|
+
import { join, extname } from "path";
|
|
8
|
+
|
|
9
|
+
const MIME = { ".html": "text/html", ".js": "application/javascript", ".css": "text/css", ".json": "application/json" };
|
|
10
|
+
|
|
11
|
+
createServer((req, res) => {
|
|
12
|
+
const filePath = join("public", req.url === "/" ? "index.html" : req.url);
|
|
13
|
+
if (!existsSync(filePath)) { res.writeHead(200, {"Content-Type":"text/html"}); res.end(readFileSync("public/index.html","utf-8")); return; }
|
|
14
|
+
const ext = extname(filePath);
|
|
15
|
+
res.writeHead(200, {"Content-Type": MIME[ext] || "text/plain"});
|
|
16
|
+
res.end(readFileSync(filePath));
|
|
17
|
+
}).listen(3200, () => console.log("Dashboard on :3200"));
|
|
18
|
+
SCRIPT
|
|
19
|
+
CMD ["node", "server.mjs"]
|