Know Your AgenticAI: MCP output audit
The infrastructure layer, not the agent. This grades what an MCP server (and, next, an API) declares and produces, and seals the reading into a tamper-evident receipt.
Why this lane
A code-quality auditor is something any lab can build and own. This is not that. The platform that ships an MCP server cannot be its own neutral auditor, so a neutral party that grades what a server produces and hands back a portable, tamper-evident receipt is a layer the platform cannot credibly own. That neutrality is the moat. We do not build agents. We check the infrastructure the agents run on.
What it does today (a first slice, honest about its limits)
- Reads a server's declared tools (
tools/list): schema present, description honest (it flags the same absolute claims KYA refuses in its own copy), inputs declared. - Reads produced outputs (
tools/callresults): result shape, honesty of success (a failure reported as a success), scope (a tool answering that was never declared), and obvious secret leakage. - Seals the whole reading into a receipt with
code-grade tamper evidence. The receipt's outcome is REFUSED when the worst finding is high severity: a ship-gate the producer chose, not a safety clearance.
It does not run a live adversarial probe, understand each tool's domain, or prove a server is safe. A reading is a reading.
Use it
from mcp_audit import audit, seal, capture
# From a captured transcript (tools/list + some tools/call results):
import json
summary = audit.audit(json.load(open("transcript.json")))
print(summary["counts"], summary["worst_severity"])
receipt = seal.seal(summary, save_path="mcp_audit_receipts.json")
# Or straight from a live stdio MCP server:
transcript = capture.capture(["kya", "mcp"], server_name="kya",
calls=[{"name": "kya_standard", "arguments": {}}])
summary = audit.audit(transcript)
seal.seal(summary)
Sealing needs knowyouragenticai-receipts>=1.5.0 (the release that added the
sealed audit field).
Dogfood first
The honest first move is to point this at KYA's own MCP server and publish the receipt. Audit yourself before you audit anyone else.
Test
pip install -U "knowyouragenticai-receipts>=1.5.0"
python tests/test_audit.py
Metadata
Release files for knowyouragenticai-mcp-audit 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| knowyouragenticai_mcp_audit-0.1.1.tar.gz | 9.4 kB | Without provenance | Details for knowyouragenticai_mcp_audit-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| knowyouragenticai_mcp_audit-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for knowyouragenticai_mcp_audit-0.1.1-py3-none-any.whl |
Total release size: 19.1 kB
Release files / knowyouragenticai_mcp_audit-0.1.1.tar.gz
| Download URL | knowyouragenticai_mcp_audit-0.1.1.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fb52a1535b15252628bafc3da6d7d0b00d35cb4cd7eb8ab6f5942f64a80b547
|
|
BLAKE2b-256 checksum How to use checksums |
004a183d42c78ae109937cae7aff14c88a1f519906797477ea994cb9ace5ee52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Release files / knowyouragenticai_mcp_audit-0.1.1-py3-none-any.whl
| Download URL | knowyouragenticai_mcp_audit-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce33c1dacb77e3a873870019b4808f14cae7db4a18e60a9900c2d513ca05486d
|
|
BLAKE2b-256 checksum How to use checksums |
c844fae56a0cf7ab8b20cc98a32b9c3ffed28ea2df69fb206907d8fec4cfc8bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Security for knowyouragenticai-mcp-audit 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.