AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Health Monitor Mcp

mcp-oaslananka-health-monitor-mcp · by oaslananka

TypeScript MCP server for service health monitoring, status checks, uptime probes, and operational diagnostics across local or remote targets.

No reviews yet
0 installs
40 views
0.0% view→install

Install

$ agentstack add mcp-oaslananka-health-monitor-mcp

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-oaslananka-health-monitor-mcp)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Health Monitor Mcp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

health-monitor-mcp

> MCP server health monitoring, uptime tracking, Azure DevOps pipeline status, > and alert evaluation through natural-language tools.

[](https://github.com/oaslananka/health-monitor-mcp/actions/workflows/ci.yml) [](https://github.com/oaslananka/health-monitor-mcp/actions/workflows/release.yml) [](LICENSE) [](https://scorecard.dev/viewer/?uri=github.com/oaslananka/health-monitor-mcp) [](https://nodejs.org)

What This Does

health-monitor-mcp keeps a registry of the MCP servers you care about, performs real MCP handshakes against them, records health history in SQLite, and reports uptime, latency, and alert thresholds back through MCP tools. It also tracks Azure DevOps pipelines so app health and delivery health can be checked from the same place.

Quick Start

The first public npm release target is health-monitor-mcp@1.0.0. If npm still returns E404, the publish gate has not completed yet.

npm install -g health-monitor-mcp
health-monitor-mcp --version

Example desktop MCP client entry after installing the package:

{
  "name": "health-monitor-mcp",
  "version": "1.0.0",
  "mcpName": "io.github.oaslananka/health-monitor-mcp",
  "description": "Monitor MCP server health, uptime, response times, and Azure DevOps pipelines",
  "transport": "stdio",
  "command": "health-monitor-mcp",
  "args": []
}

Tools Reference

| Tool | Purpose | Typical prompt | | ---- | ------- | -------------- | | register_server | Save an MCP server to monitor | Register https://example.com/mcp as prod-gateway | | check_server | Run a live health check for one server | Check prod-gateway now | | check_all | Check all registered servers | Check all my MCP servers | | get_uptime | Return uptime plus latency stats | Show 24h uptime for prod-gateway | | get_dashboard | Return JSON dashboard data | Give me a 24h dashboard | | get_report | Return a Markdown report | Generate a Markdown health report for 24h | | list_servers | Show registered servers | List all monitored servers | | unregister_server | Remove a server | Stop monitoring local-debugger | | set_alert | Configure thresholds | Alert if prod-gateway exceeds 500ms or drops below 99% uptime | | get_monitor_stats | Show monitor-level stats | How many checks has the monitor recorded? | | register_azure_pipelines | Register Azure pipeline groups | Track CI and Publish pipelines for my repo | | check_pipeline_status | Read latest Azure pipeline runs | Check pipeline status for my release group | | get_pipeline_logs | Fetch Azure build logs | Show the failed logs for the latest Publish build | | check_all_projects | Combine MCP and Azure health | Check all projects |

Azure DevOps Integration

Register a pipeline group with an org, project, pipeline names, and a PAT:

register_azure_pipelines name="health-monitor-mcp" organization="oaslananka" project="open-source" pipeline_names=["Health Monitor CI","Publish npm"] pat_token="..."

PAT tokens are encrypted in the local SQLite database with AES-256-GCM when HEALTH_MONITOR_ENCRYPTION_KEY is set. Local insecure storage is available only when HEALTH_MONITOR_ALLOW_INSECURE_PAT_STORAGE=1 is explicitly set. See credential storage notes.

Alert Configuration

Use set_alert to configure one server:

| Field | Meaning | | ----- | ------- | | max_response_time_ms | Alert when a check exceeds this latency | | min_uptime_percent | Alert when the selected uptime window drops below this value | | consecutive_failures_before_alert | Alert after this many non-up results in a row |

Alerts are evaluated inline by check_server, check_all, and get_dashboard. Webhook delivery is planned for v1.1, and no webhook MCP tool is shipped in v1.0.x.

Data Storage

  • Default database path: ~/.mcp-health-monitor/health.db
  • Override path: HEALTH_MONITOR_DB=/custom/path/health.db
  • Optional background scheduler: HEALTH_MONITOR_AUTO_CHECK=1
  • HTTP MCP endpoint token: HEALTH_MONITOR_HTTP_TOKEN=...
  • HTTP bind host: HOST=127.0.0.1 by default
  • Remote-safe HTTP profile: HEALTH_MONITOR_PROFILE=remote-safe
  • Remote HTTP Origin allowlist: HEALTH_MONITOR_HTTP_ORIGIN_ALLOWLIST=https://client.example
  • Optional stateful HTTP sessions: HEALTH_MONITOR_HTTP_STATEFUL_SESSIONS=1
  • Stateful HTTP session TTL: HEALTH_MONITOR_HTTP_SESSION_TTL_MS=1800000 by default
  • Stateful HTTP session cap: HEALTH_MONITOR_HTTP_MAX_SESSIONS=100 by default
  • Local stdio checks opt-in: HEALTH_MONITOR_ALLOW_STDIO=1
  • Optional stdio command allowlist: HEALTH_MONITOR_STDIO_ALLOWLIST=node,npx
  • HTTP server health endpoint: GET /health

Configuration is environment-variable driven; use the variables above directly in your shell, service manager, or MCP client environment block. Stdio monitoring launches local child processes and is disabled unless HEALTH_MONITOR_ALLOW_STDIO=1 is set or an embedding application explicitly enables it through runtime policy. Keep the executable in command and put arguments in args; for example, use command="npx" args=["mcp-debug-recorder"].

The DB uses WAL mode on file-backed databases and applies schema migrations automatically on startup.

Docker

Build and run:

docker build -t health-monitor-mcp .
docker run --rm health-monitor-mcp node dist/mcp.js --version

HTTP mode binds to loopback by default. For a remote HTTP deployment, require a bearer token, the remote-safe profile, and an Origin allowlist:

docker run --rm \
  -p 127.0.0.1:3000:3000 \
  -e HOST=0.0.0.0 \
  -e HEALTH_MONITOR_PROFILE=remote-safe \
  -e HEALTH_MONITOR_HTTP_TOKEN=change-me \
  -e HEALTH_MONITOR_HTTP_ORIGIN_ALLOWLIST=https://client.example \
  health-monitor-mcp
curl -X POST \
  --oauth2-bearer "$HEALTH_MONITOR_HTTP_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
  http://127.0.0.1:3000/mcp

Development

corepack enable
corepack prepare pnpm@11.0.9 --activate
pnpm install --frozen-lockfile
pnpm run build
pnpm test
pnpm run test:integration
pnpm run lint
pnpm run lint:test
pnpm run format:check
pnpm run test:coverage
pnpm run docs:api:check
pnpm run ci

Runtime support targets Node 24 LTS or newer. CI, Docker, package metadata, and local development commands are aligned to Node >=24.

Architecture

High-level module map:

  • src/app.ts: MCP tool registration and response formatting
  • src/checker.ts: Live MCP connectivity probes with retry/backoff
  • src/registry.ts: SQLite read/write paths for servers, checks, and pipeline records
  • src/db.ts + src/migrations.ts: Connection setup and schema upgrades
  • src/server-http.ts + src/mcp.ts: HTTP and stdio entrypoints for local MCP clients and packaged CLI usage
  • src/scheduler.ts: Optional background auto-check loop

More detail lives in architecture.md. Decision rationale lives in docs/adr, and generated API docs live in docs/api.

Roadmap

Detailed milestone planning lives in ROADMAP.md.

  • [x] v1.0: Core monitoring, uptime, alerts, Azure pipelines, Markdown reports
  • [ ] v1.1: Webhook notifications for Slack, Discord, and custom endpoints
  • [ ] v1.2: Multi-provider pipeline and generic HTTP monitoring
  • [ ] v2.0: Multi-user support and optional external secret-provider integrations

Security

Read SECURITY.md for vulnerability reporting and docs/security.md for implementation-specific storage details.

Contributing

See contributing.md for setup, standards, and PR expectations. Governance, triage labels, and maintainer response targets are documented in governance.md. Usage questions belong in GitHub Discussions; tracked work should use the repository issue forms.

License

MIT

Agent plugin and runtime configuration

This repository owns the product-level agent plugin, MCP runtime configuration, and product-specific skills for health-monitor-mcp. The central agent-tools repository should catalog this plugin, but the manifest and workflow instructions live here so they stay synchronized with the actual MCP server package.

| File | Purpose | | --- | --- | | [.claude-plugin/plugin.json](.claude-plugin/plugin.json) | Claude Code-valid product plugin manifest. | | [.mcp.json](.mcp.json) | Claude Code project-local MCP server configuration. | | [.codex/config.example.toml](.codex/config.example.toml) | Codex CLI MCP configuration example. | | [.vscode/mcp.example.json](.vscode/mcp.example.json) | VS Code / GitHub Copilot workspace MCP configuration example. | | [opencode.example.jsonc](opencode.example.jsonc) | OpenCode project MCP configuration example. | | .opencode/skills/ | OpenCode-native mirrored skill definitions. | | [docs/agent-runtime-config.md](docs/agent-runtime-config.md) | Agent runtime setup and validation notes. |

Validate plugin packaging locally:

claude plugin validate .

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.