MCP Agent Health Reporter

io.github.aos-standardPublished by GitHub account aos-standardv0.3.1Updated Oct 24, 2026

Advisory AOS agent health scan before deployment (manifest, services, immune loop, evidence).

VerifiedSTDIODesktop onlyDeveloper ToolsSecurity & Monitoring

Overview

AI-generated overview

Scans a local directory of AI agents and returns AOS readiness scores, section breakdowns, and audit summaries before deployment.

What you can do
Provides two tools: aos_agent_health_scan scores a single agent under a target directory, returning an aos_score, a certified flag, per-section scores (manifest declaration, systemd runtime, immune loop, physical evidence), and precedent metadata; aos_agent_health_audit scans a directory and returns totals such as total_tools and avg_score with per-agent reports. It is advisory, intended to catch agents that look healthy locally but fail once deployed.
When to use it
Use it when you keep a directory of agent definitions and want a pre-deployment readiness check or a batch audit of several agents. It suits local development workflows where a scored report is more useful than manual inspection.
Requirements
Runs locally over stdio as the PyPI package mcp-agent-health, launched with uvx or installed via pip. Python is required. Optional environment variables: AOS_HEALTH_TARGET_DIR sets the default scan root (fallback is the current working directory), AOS_HEALTH_MCP_LOG sets the JSONL log path, and AOS_HEALTH_MCP_TRANSPORT selects the transport (stdio by default). No accounts or API keys are declared.
Before you install
The scan reads a directory you point it at, so choose the target path deliberately. It writes a JSONL call log, by default under the user's home directory at ~/.aos_health_mcp/calls.jsonl, which can be redirected with AOS_HEALTH_MCP_LOG. Scores are advisory and the certified flag is not an authoritative approval. The README notes a rename from aos-agent-health-mcp, so existing MCP configs must be updated.

Installation

In SourceWeft

  1. Open MCP Agent Health Reporter in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

MCP Agent Health Reporter

Renamed (2026-07): Formerly aos-agent-health-mcp / CLI aos-health-mcp. Migrate with pip install mcp-agent-health==0.3.1 and update your MCP config command to mcp-agent-health.

MCP server that validates agent health under AOS discipline and reports readiness scores. Use it to catch agents that silently fail in production — healthy locally, broken when deployed.

Install

bash
pip install mcp-agent-health==0.3.1# or editable from source:# pip install -e ./packaging

MCP Client Configuration

Add to your mcp.json (Cursor / Claude Desktop):

json
{  "mcpServers": {    "mcp-agent-health": {      "command": "mcp-agent-health",      "args": [],      "env": {        "AOS_HEALTH_TARGET_DIR": "/path/to/your/agents"      }    }  }}

Tool: aos_agent_health_scan

Request (non-default args — real signal):

json
{  "tool_id": "1066",  "target_dir": "/home/builder/my-agents",  "mock": false}

Response:

json
{  "status": "success",  "aos_score": 62.5,  "certified": false,  "tool_id": "1066",  "target_dir": "/home/builder/my-agents",  "target_path": "/home/builder/my-agents/1066_AOS_Agent_Health_Reporter",  "sections": {    "manifest_declared": 12.5,    "systemd_runtime": 0.0,    "immune_loop": 0.0,    "physical_evidence": 25.0  },  "precedent_meta": {    "precedent_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",    "tool_id": "1066",    "created_date": "2026-06-14T12:00:00+00:00",    "source_signal_hash": "a1b2c3d4"  },  "scanned_at": "2026-06-14T12:00:00+00:00"}

Tool: aos_agent_health_audit

Request:

json
{  "target_dir": "/home/builder/my-agents",  "mock": false}

Response (excerpt):

json
{  "status": "success",  "total_tools": 3,  "avg_score": 54.2,  "target_dir": "/home/builder/my-agents",  "reports": []}

Self-Test (G1 evidence)

bash
python3 packaging/scripts/smoke_self_call.py# Appends one line to ~/.aos_health_mcp/calls.jsonl

Canonical source sync (TASK B)

正本: core/ahr_scan_pure.py(直接編集はこちらのみ)
配布コピー: packaging/aos_health_mcp/_scan_pure.py(直接編集禁止 — 同期スクリプト経由)

bash
python3 packaging/scripts/sync_scan_pure.py          # copy + verifypython3 packaging/scripts/sync_scan_pure.py --check-only  # CI gate

一致検証: pytest tests/test_logic.py::TestAosAgentHealthReporter::test_scan_pure_canonical_sync

G2 clean install (mock=false)

bash
python3 -m venv /tmp/aos-g2-venv/tmp/aos-g2-venv/bin/pip install -e packaging//tmp/aos-g2-venv/bin/python packaging/scripts/g2_clean_install_smoke.py

Environment Variables

VariableDescription
AOS_HEALTH_TARGET_DIRDefault scan root (fallback: cwd)
AOS_HEALTH_MCP_LOGJSONL log path (default: ~/.aos_health_mcp/calls.jsonl)
AOS_HEALTH_MCP_TRANSPORTstdio (default)

Source: packaging/README.md at commit cec614f

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.3.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts