Skip to main content

MCP compliance gate — pass/fail AOS validation. Default advisory; opt-in blocking.

Project description

AOS Compliance Validator MCP

Drop-in MCP server that validates AOS-v0.1 zone boundary declarations in manifest.json or agent_card.json.

Install

python3 -m venv .venv
source .venv/bin/activate
pip install .

CLI entry

aos-compliance-validator          # MCP stdio server
aos-compliance-gate               # CI gate (default blocking, exit 1 on fail)

CI blocking gate

aos-compliance-gate --gate-mode blocking --target-dir .
# compliant → exit 0 / non-compliant → exit 1

MCP tools

  • aos_compliance_validate — validate one MCP server directory (target_dir required; tool_id optional label)
  • aos_compliance_self_test — wiring smoke test

Default gate_mode=advisory. Use gate_mode=blocking in CI to fail on violations.

Environment

Variable Purpose
AOS_VALIDATOR_TARGET_DIR Default scan root when target_dir is omitted
AOS_VALIDATOR_MCP_LOG JSONL path for tool call telemetry
AOS_VALIDATOR_CALLER Caller label (ci, smoke_self_call, etc.)

What is checked (AOS-v0.1 §8)

  • aos_compliant or aos_compliance equals v0.1
  • permitted_output_paths — required non-empty list of safe relative paths
  • oracle_paths — recommended; defaults to evals/ and config/ when omitted

Violation codes use external vocabulary, e.g. AOS_UNDECLARED, PERMITTED_PATHS_MISSING, ORACLE_PATH_INVALID.

Example

aos_compliance_validate target_dir=/path/to/my-mcp-server gate_mode=blocking

License

MIT

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_compliance_validator_mcp-0.1.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

aos_compliance_validator_mcp-0.1.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file aos_compliance_validator_mcp-0.1.0.tar.gz.

File metadata

File hashes

Hashes for aos_compliance_validator_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c29d62f0f7b473f19239165123c16f75393ddda8411ea2b9304a4ce4def8f3cf
MD5 20656c9c274ec979dcdb2fa5504ccc3f
BLAKE2b-256 dcff97a22c24ef5cae60c2b190d8ffb2ec9ba7d2b887e570e91f9977b812bd18

See more details on using hashes here.

File details

Details for the file aos_compliance_validator_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aos_compliance_validator_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8b2d3a5b451a240975ab5d93dfc40b0d627b50e1ba1798246a26b442df47f6d
MD5 7b022fdf02b1f59b3b3db96cd8c3972b
BLAKE2b-256 fd5b0b5d87e329dd101822e97e7081d34b6065867c517164b8d35913ffac886e

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