Monitor MCP Server

@hasna/monitor npm v0.1.29

Published by @hasna — no publish provenance, so origin is unverified, but the source is public: the repository link below is self-declared yet readable, so you can inspect the code before adopting it.

System monitoring tool for multiple computers — local, SSH, EC2

Trust grade
A
92/100
Last scanned get badge →
Trust
A · 92/100
Adoption risk for you: the threat score, then adjusted down for blast radius, publisher verification and how much the scan could see. Deterministic; every point is auditable.
Capability
High
Blast radius if it went rogue — what the server’s tools could reach. Independent of trust.
Coverage
Source
How much the scan could actually inspect. Shallow coverage is stated, never hidden.
Share this Trust Score
𝕏 Share LinkedIn Reddit
A Why this grade threat 99 − adoption risk = 92/100

The grade answers one question — how safe is this server for you to adopt — so it is computed in two auditable stages. Nothing below is an opinion or an LLM's guess; every line is a real term the deterministic engine applied, and the same input always yields the same number.

1. Threat score — 100 − 1.2 = 99. What the published surface and source actually contain:

PointsWhat was foundCategory
−1.2 Package runs install-time scripts MTC-SUP-010 supply-chain

2. Client adoption risk — 99 − 7 = 92. Three small, subtract-only factors that reflect your risk in adopting it — a clean scan proves less on a powerful, unverified or barely-inspectable package, so the grade says so plainly:

PointsAdoption-risk factor
−6 capability blast radius (high) — client exposure if the model is manipulated
−1 publisher verification (public source) — no provenance, but the source is public and inspectable

Capability observations and info notes are shown under Findings but never scored. Open any row's finding below for the file, line and evidence behind a deduction.

Findings 22

high Reads a sensitive credential path or dumps the environment (src/loop-check.ts)MTC-SRC-006

In the server's implementation (`src/loop-check.ts:224`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: itmodules", ".env", ".npmrc", ".pypirc", "credentials", "credentials.json", "secrets.json", "secret.json",

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/loop-check.ts

high Tool "monitor_exec" exposes command/code executionMTC-CAP-001

Tool "monitor_exec" appears to run shell commands or evaluate code (keyword "exec" in tool name, parameter "command"). Arbitrary execution driven by model input is one of the most dangerous MCP capabilities; combined with any untrusted input it becomes RCE.

Fix: Sandbox execution, allowlist commands/arguments, and never pass model output to a shell unescaped.

Location: tool monitor_exec

high Tool "monitor_cron_jobs" exposes command/code executionMTC-CAP-001

Tool "monitor_cron_jobs" appears to run shell commands or evaluate code (parameter "command"). Arbitrary execution driven by model input is one of the most dangerous MCP capabilities; combined with any untrusted input it becomes RCE.

Fix: Sandbox execution, allowlist commands/arguments, and never pass model output to a shell unescaped.

Location: tool monitor_cron_jobs

high Shell/command execution in server code (bins/monitor-web.js)MTC-SRC-002

In the server's implementation (`bins/monitor-web.js:2`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: execSync, spawn } from "child_process"; import { existsSync } from "fs"; import { join } from "path"; import { fileURLTo

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server bins/monitor-web.js

high Shell/command execution in server code (bins/monitor-web.ts)MTC-SRC-002

In the server's implementation (`bins/monitor-web.ts:2`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: execSync, spawn } from "child_process"; import { existsSync } from "fs"; import { join } from "path"; import { fileURLTo

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server bins/monitor-web.ts

high Shell/command execution in server code (src/cli/index.ts)MTC-SRC-002

In the server's implementation (`src/cli/index.ts:5`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: spawnSync } from "node:child_process"; import { listKnownMachineIds } from "../collectors/index.js"; import type { Syst

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/cli/index.ts

high Shell/command execution in server code (src/collectors/command.ts)MTC-SRC-002

In the server's implementation (`src/collectors/command.ts:1`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: import { spawn } from "child_process"; export interface CommandOptions { timeoutMs?: number; cwd?: string; env?:

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/collectors/command.ts

medium Untrusted input can drive an external actionMTC-FLOW-005

Untrusted-input tools ([monitor_container_logs]) co-exist with external-action tools ([monitor_exec, monitor_cron_jobs]). A prompt injection could cause unwanted external actions, though no direct sensitive-data leak path was found.

Evidence: untrusted [monitor_container_logs] → sinks [monitor_exec, monitor_cron_jobs]

Fix: Require confirmation for state-changing/egress actions triggered after processing untrusted content.

Location: flow monitor_container_logs → monitor_exec

medium Unconstrained command parameter "command" on "monitor_exec"MTC-CAP-006

Tool "monitor_exec" takes a command-shaped parameter "command" with no enum/pattern constraint. Free-form, model- or attacker-controlled arguments reaching a shell is the command-injection precondition.

Fix: Constrain the parameter (enum/pattern), or build the command from a fixed template with escaped args.

Location: tool monitor_exec · inputSchema.properties.command

medium Unconstrained command parameter "command" on "monitor_cron_jobs"MTC-CAP-006

Tool "monitor_cron_jobs" takes a command-shaped parameter "command" with no enum/pattern constraint. Free-form, model- or attacker-controlled arguments reaching a shell is the command-injection precondition.

Fix: Constrain the parameter (enum/pattern), or build the command from a fixed template with escaped args.

Location: tool monitor_cron_jobs · inputSchema.properties.command

low Hardcoded egress to an external endpoint in packaging/dev tooling (src/mcp/http.test.ts)MTC-SRC-003

In a packaging/dev/install script (shipped, but not the server runtime) (`src/mcp/http.test.ts:57`): A hardcoded outbound call to a fixed external host inside server code is a classic exfiltration/telemetry channel — especially paired with reads of local data. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: { const res = await fetch(`http://${handle.host}:${handle.port}/health`); expect(res.status).toBe(200); expe

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/mcp/http.test.ts

low Reads a sensitive credential path or dumps the environment in packaging/dev tooling (src/db/migrate-v2.test.ts)MTC-SRC-006

In a packaging/dev/install script (shipped, but not the server runtime) (`src/db/migrate-v2.test.ts:123`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: , 22, "/home/hasna/.ssh/id_ed25519", '{"region":"eu"}', "offline"] ); // metrics for (let i = 0; i < 3; i++) {

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/db/migrate-v2.test.ts

low Reads a sensitive credential path or dumps the environment in packaging/dev tooling (src/security.test.ts)MTC-SRC-006

In a packaging/dev/install script (shipped, but not the server runtime) (`src/security.test.ts:599`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: h_key_path: "/root/.ssh/id_rsa" }, { id: "b", ssh_key_path: null }, ]); expect(JSON.stringify(rows)).not.

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/security.test.ts

low Mutating tool "monitor_exec" declares no destructiveHintMTC-CAP-005

Tool "monitor_exec" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.

Fix: Declare accurate annotations, and gate destructive tools on user confirmation regardless.

Location: tool monitor_exec

low Mutating tool "monitor_cron_jobs" declares no destructiveHintMTC-CAP-005

Tool "monitor_cron_jobs" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.

Fix: Declare accurate annotations, and gate destructive tools on user confirmation regardless.

Location: tool monitor_cron_jobs

low Shell/command execution in packaging/dev tooling (src/api/api.test.ts)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`src/api/api.test.ts:11`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: import { spawn } from "child_process"; // ── DB Setup ────────────────────────────────────────────────────────────────

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/api/api.test.ts

low Shell/command execution in packaging/dev tooling (src/cli/cli.test.ts)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`src/cli/cli.test.ts:5`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ort { spawnSync } from "child_process"; let configDir: string | undefined; afterEach(() => { if (configDir) rmSync(c

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/cli/cli.test.ts

low Shell/command execution in packaging/dev tooling (src/cli/health.test.ts)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`src/cli/health.test.ts:3`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: spawnSync } from "node:child_process"; import { mkdtempSync, rmSync } from "node:fs"; import { tmpdir } from "node:os";

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/cli/health.test.ts

low Shell/command execution in packaging/dev tooling (src/cli/index.test.ts)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`src/cli/index.test.ts:5`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: spawnSync } from "node:child_process"; import type { SystemSnapshot } from "../collectors/local.js"; import { formatCom

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/cli/index.test.ts

low Shell/command execution in packaging/dev tooling (src/cli/kill.test.ts)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`src/cli/kill.test.ts:2`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ildProcess } from "node:child_process"; import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs"; import

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/cli/kill.test.ts

low Shell/command execution in packaging/dev tooling (src/config.test.ts)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`src/config.test.ts:10`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ort { spawnSync } from "child_process"; // The config module supports MONITOR_CONFIG_DIR so tests can exercise the // r

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/config.test.ts

low Package runs install-time scripts (postinstall)MTC-SUP-010

"@hasna/monitor" executes postinstall script(s) at install time. An install hook runs at install time; most are routine build/setup, but review what it does before trusting it.

Evidence: bun ./scripts/ensure-data-dir.mjs

Fix: Review the scripts; install with --ignore-scripts where possible and vet what they do.

Location: package @hasna/monitor

Tools 27

Each tool and what it can reach — statically extracted from the published source.

  • monitor_container_logsingests untrusted input
  • monitor_cron_jobsruns code / shell
  • monitor_execruns code / shell
  • monitor_add_machineno sensitive capability
  • monitor_alertsno sensitive capability
  • monitor_appsno sensitive capability
  • monitor_configure_integrationsno sensitive capability
  • monitor_containersno sensitive capability
  • monitor_doctorno sensitive capability
  • monitor_healthno sensitive capability
Show 17 more tools ↓
  • monitor_heartbeatno sensitive capability
  • monitor_killno sensitive capability
  • monitor_list_agentsno sensitive capability
  • monitor_machinesno sensitive capability
  • monitor_mcp_healthno sensitive capability
  • monitor_mcp_restartno sensitive capability
  • monitor_mcp_statusno sensitive capability
  • monitor_portsno sensitive capability
  • monitor_processesno sensitive capability
  • monitor_register_agentno sensitive capability
  • monitor_searchno sensitive capability
  • monitor_send_feedbackno sensitive capability
  • monitor_serviceno sensitive capability
  • monitor_set_focusno sensitive capability
  • monitor_snapshotno sensitive capability
  • monitor_tailscaleno sensitive capability
  • monitor_temperatureno sensitive capability

Toxic flows 1

Cross-tool combinations that form a data-exfiltration primitive (untrusted input → sensitive source → external sink).

What this scan could not see

Versions 6

Scan history per published version. The engine is deterministic — the same version always yields the same score, so a changed score means the package itself changed.

VersionScoreFindingsEngineScanned
v0.1.29 latest A 92/100 22 1.13.0 2026-09-07
v0.1.28 A 92/100 22 1.13.0 2026-08-27
v0.1.27 A 92/100 21 1.12.1 2026-08-21
v0.1.26 A 92/100 21 1.12.1 2026-08-18
v0.1.25 A 91/100 20 1.12.1 2026-07-31
Show 1 more version ↓
v0.1.24 A 91/100 20 1.9.0 2026-07-24

Embed this score

Show this server's live Trust Score in your README, docs or website. The badge is served straight from the registry and updates automatically after every rescan — no API key needed. It links back to this page, so anyone who sees the grade can also read the findings behind it instead of taking a number on faith.

MCP Trust Score: A · 92/100
Markdown (GitHub README)
[![MCP Trust Score](https://mcptrustchecker.com/registry/hasna-monitor/badge.svg)](https://mcptrustchecker.com/registry/hasna-monitor)
HTML
<a href="https://mcptrustchecker.com/registry/hasna-monitor"><img src="https://mcptrustchecker.com/registry/hasna-monitor/badge.svg" alt="MCP Trust Score" height="20"></a>
Prefer shields.io styling? Point it at https://mcptrustchecker.com/registry/hasna-monitor/badge.json via https://img.shields.io/endpoint?url=…

Verify this score yourself

The score above is reproducible: the same package version always yields the same result. Run it locally or over the free API — no account, no LLM, fully deterministic.

npx mcptrustchecker scan @hasna/monitor --online

Use the free API → How scoring works

More in Analytics & Monitoring