@moor-sh/mcp 0.25.0 → 0.26.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moor-sh/mcp",
3
- "version": "0.25.0",
3
+ "version": "0.26.0",
4
4
  "description": "MCP server for moor - lets AI agents (Claude Code, Cursor, etc.) manage your moor projects via the moor HTTP API.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/index.ts CHANGED
@@ -574,7 +574,7 @@ server.registerTool(
574
574
  {
575
575
  title: "Server Stats",
576
576
  description:
577
- "Get server resource usage: load, memory, per-filesystem disk usage (every real mount, not just root so a separate data volume can't hide), Docker disk by category (images/containers/volumes/build cache) with reclaimable bytes, and container counts. Note: cpu.percent is load-derived (load avg ÷ cores), not instantaneous CPU; use the `load` field for the same signal with explicit naming.",
577
+ "Get server resource usage: load, memory, per-filesystem disk usage (the filesystems the moor container can see, plus any operator-configured monitored host disks via MOOR_MONITORED_DISKS), Docker disk by category (images/containers/volumes/build cache) with reclaimable bytes, and container counts. Note: cpu.percent is load-derived (load avg ÷ cores), not instantaneous CPU; use the `load` field for the same signal with explicit naming.",
578
578
  },
579
579
  async () => {
580
580
  const res = await apiGet("/api/server/stats");
@@ -587,7 +587,7 @@ server.registerTool(
587
587
  load?: { one_min: number; cores: number; normalized_percent: number };
588
588
  memory: { total: string; used: string; percent: number };
589
589
  disk: { total: string; used: string; percent: number };
590
- disks?: { mount: string; total: string; used: string; percent: number }[];
590
+ disks?: { mount: string; total: string; used: string; percent: number; label?: string }[];
591
591
  containers: { running: number; total: number };
592
592
  docker?: {
593
593
  images: { bytes: number; reclaimable_bytes: number; count: number; unused_count: number };
@@ -615,7 +615,8 @@ server.registerTool(
615
615
  lines.push(`Memory: ${s.memory.used} / ${s.memory.total} (${s.memory.percent}%)`);
616
616
  const disks = s.disks?.length ? s.disks : [{ mount: "/", ...s.disk }];
617
617
  for (const d of disks) {
618
- lines.push(`Disk ${d.mount}: ${d.used} / ${d.total} (${d.percent}%)`);
618
+ const name = d.label ? `${d.label} (${d.mount})` : `Disk ${d.mount}`;
619
+ lines.push(`${name}: ${d.used} / ${d.total} (${d.percent}%)`);
619
620
  }
620
621
  lines.push(`Containers: ${s.containers.running} running / ${s.containers.total} total`);
621
622
  if (s.docker) {