# Compliance AIops [Health: Active]

**Category:** 🔒 Security  
**Repository:** https://github.com/AIops-tools/Compliance-AIops  
**GitHub Stars:** 0  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/compliance-aiops

## Description
Compliance evidence from AIops audit trails: HIPAA/PCI/SOC2/GDPR, hash-chain-sealed, 15 tools.

## Tools
Capabilities this server exposes over MCP:

- **list_audit_sources** — Discovered sibling audit DBs (path, tool, readable, row count)
- **query_audit_events** — Cross-tool event query — filter by tool/skill/status/risk/approved/selector/since/until
- **activity_timeline** — Event counts bucketed by hour or day
- **list_frameworks** — Supported frameworks + control counts
- **coverage_summary** — Per-control covered/weak/uncovered for ONE framework
- **control_evidence** — Evidence rows + population + a reproducible query for ONE control
- **gap_analysis** — Controls with no/weak evidence + honest caveat + remediation
- **approval_report** — High-risk write ops + who approved + rationale (the CC8.1 / PCI 7-8 / HIPAA §312(a) artifact)
- **exceptions_report** — Denied / error / budget_exceeded ops — enforcement + anomaly evidence
- **verify_source_chain** — Chain head + row-id gap detection for one source
- **verify_bundle** — Verify a sealed bundle: chain + seal head + optional signature
- **list_bundles** — Bundles under `~/.compliance-aiops/bundles/
- **oscal_assessment_results** — A sealed bundle as a NIST **OSCAL 1.2.3** Assessment Results document, inline, with its limitations named
- **bundle_schedule_hint** — Ready-to-paste cron line + non-interactive command for periodic sealing (writes nothing)
- **generate_evidence_bundle** — One call: coverage + approval trail + exceptions + sealed records → a bundle `.json
- **export_bundle** — Render a bundle to markdown / csv / json / **oscal
- **sign_bundle** — HMAC over the seal using the stored signing key

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "compliance-aiops": {
    "command": "uvx",
    "args": ["compliance-aiops"]
  }
}
```

## Documentation

## What Compliance AIops does

Compliance AIops converts local AIops audit records into framework-mapped compliance evidence. It discovers sibling SQLite databases in paths such as `~/.<tool>-aiops/audit.db`, reads their shared `audit_log` schema, and provides cross-source analysis without contacting external platforms. Supported mappings include HIPAA, PCI-DSS v4.0, SOC 2, GDPR, ISO/IEC 27001:2022 Annex A, and 等保2.0 (DJCP L3).

The resulting evidence focuses on what the audit trails can demonstrate. Operating effectiveness may be represented strongly, while control design or configuration may only receive partial support. Coverage, weak evidence, uncovered controls, caveats, and remediation hints are exposed through the analysis tools rather than presented as certification decisions.

## How it works

Source databases are opened read-only. Events can be filtered across tools and skills by fields such as status, risk, approval, selector, and time range. Timeline results group activity by hour or day, while approval and exception reports identify high-risk writes, denied operations, errors, budget exhaustion, approvers, rationales, and other anomaly evidence.

Evidence bundles contain selected records and compliance results. Records use an ordered SHA-256 hash chain whose genesis value is a string of zeroes; the resulting chain head is reproducible for the same framework, period, and sources. Source verification can identify row-ID gaps, while bundle verification checks the chain, seal head, and optional signature. HMAC signing uses a stored signing key.

The process is offline and has no external API, network call, or platform credential requirement. Bundle files are written below `~/.compliance-aiops/bundles/`. Operations performed through MCP or the CLI are themselves recorded in `~/.compliance-aiops/audit.db`, and tool risk labels are recorded as descriptive audit metadata rather than enforcement gates.

## Setup and configuration

Install the package with either:

```bash
uv tool install compliance-aiops
```

or:

```bash
pipx install compliance-aiops
```

Initialize discovery and local settings with `compliance-aiops init`. This locates sibling audit databases, sets the organization name, and can configure an optional signing key. `compliance-aiops doctor` checks which discovered databases are present and readable.

Start the stdio MCP process with `compliance-aiops mcp` or `compliance-aiops-mcp`. The optional `COMPLIANCE_AIOPS_MASTER_PASSWORD` environment variable unlocks a signing key when needed; an interactive prompt or short-lived secret-manager injection is preferable on shared systems because exported shell variables can be visible to child processes and shell history.

The project also offers installation paths for Claude Code and OpenClaw plugins. Claude Code installs provide both the skill and MCP server, while the OpenClaw package requires `uv` on `PATH` for the server to be fetched.

## Tools and capabilities

- Discover readable audit sources and inspect their row counts.
- Query events across tools and build hourly or daily activity timelines.
- List framework controls and calculate covered, weak, or uncovered status for one framework.
- Retrieve control evidence, population details, and reproducible queries.
- Produce gap, approval, and exception reports with compliance-oriented context.
- Verify source chains, sealed bundles, seal heads, and optional signatures.
- Generate bundles containing coverage, approvals, exceptions, and sealed records.
- Export bundles to Markdown, CSV, JSON, or OSCAL, and render an OSCAL 1.2.3 Assessment Results document with stated limitations.
- List stored bundles and produce a non-writing scheduling hint for periodic sealing.

## Limitations and notes

The source audit databases remain the system of record. Compliance AIops does not scan infrastructure, make certification determinations, replace a GRC platform, or decide whether generating or signing a bundle is permitted. Producing or signing artifacts is governed by the agent’s judgment and filesystem permissions.

Read and preview operations may continue with a warning if audit storage is unavailable, but real writes require a committed pending audit row before the platform is contacted by the governed operation. New audit rows store outcome summaries rather than complete responses. The source trails are not mutated; bundle artifacts are the intended write output.

Framework references are descriptive and do not imply affiliation with or endorsement by the framework owners or GRC vendors. Evidence strength should be interpreted alongside the stated control caveats, especially where audit activity cannot establish design or configuration.

_Full upstream README: https://allmcps.com/mcp/compliance-aiops/readme_

