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_dirrequired;tool_idoptional 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_compliantoraos_complianceequalsv0.1permitted_output_paths— required non-empty list of safe relative pathsoracle_paths— recommended; defaults toevals/andconfig/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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aos_compliance_validator_mcp-0.1.0.tar.gz.
File metadata
- Download URL: aos_compliance_validator_mcp-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c29d62f0f7b473f19239165123c16f75393ddda8411ea2b9304a4ce4def8f3cf
|
|
| MD5 |
20656c9c274ec979dcdb2fa5504ccc3f
|
|
| BLAKE2b-256 |
dcff97a22c24ef5cae60c2b190d8ffb2ec9ba7d2b887e570e91f9977b812bd18
|
File details
Details for the file aos_compliance_validator_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aos_compliance_validator_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8b2d3a5b451a240975ab5d93dfc40b0d627b50e1ba1798246a26b442df47f6d
|
|
| MD5 |
7b022fdf02b1f59b3b3db96cd8c3972b
|
|
| BLAKE2b-256 |
fd5b0b5d87e329dd101822e97e7081d34b6065867c517164b8d35913ffac886e
|