Skip to main content

MCP server to validate AOS-compliant agent health — catch agents that silently fail in production.

Project description

AOS Agent Health MCP — External Distribution

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

Install

pip install -e ./packaging
# or from built wheel:
# pip install dist/aos_agent_health_mcp-0.1.0-py3-none-any.whl

MCP Client Configuration

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

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

Tool: aos_agent_health_scan

Request (non-default args — real signal):

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

Response:

{
  "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:

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

Response (excerpt):

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

Self-Test (G1 evidence)

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直接編集禁止 — 同期スクリプト経由)

python3 packaging/scripts/sync_scan_pure.py          # copy + verify
python3 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)

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

Variable Description
AOS_HEALTH_TARGET_DIR Default scan root (fallback: cwd)
AOS_HEALTH_MCP_LOG JSONL log path (default: ~/.aos_health_mcp/calls.jsonl)
AOS_HEALTH_MCP_TRANSPORT stdio (default)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aos_agent_health_mcp-0.2.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aos_agent_health_mcp-0.2.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file aos_agent_health_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: aos_agent_health_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for aos_agent_health_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 869168edbda68ee546f533c4eb3d70664fc90a008f51623b916ac51477f2e2c2
MD5 d22d1516a152ea9ee85e27ed6ce83868
BLAKE2b-256 082d2d48a710e3464889d1c49777f307ec9106b8ccacc27232dc3b7b9af9c8a1

See more details on using hashes here.

File details

Details for the file aos_agent_health_mcp-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aos_agent_health_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d132397f784e0127a9feecff831a6688072cb580f8fb3ed5b7c13f88bff7c214
MD5 0a6003523d7ee6a5c48f8e32d2f3a49c
BLAKE2b-256 0cd04622217f80e1f9963c8f0e9d8b565d8ac80f97812e895f947af68ead9aae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page