Skip to main content

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/call results): 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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for knowyouragenticai-mcp-audit 0.1.0
File Size Uploaded Provenance Actions
knowyouragenticai_mcp_audit-0.1.0.tar.gz 9.5 kB Without provenance Details for knowyouragenticai_mcp_audit-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for knowyouragenticai-mcp-audit 0.1.0
File Interpreter ABI Platform Actions
knowyouragenticai_mcp_audit-0.1.0-py3-none-any.whl Python 3 none any Details for knowyouragenticai_mcp_audit-0.1.0-py3-none-any.whl

Total release size: 19.9 kB

Release files / knowyouragenticai_mcp_audit-0.1.0.tar.gz

Download URL knowyouragenticai_mcp_audit-0.1.0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5e4082c79e262d6f4fdf8797dcba4314bffda3367316163b15dad5c743a3e8be
BLAKE2b-256 checksum
How to use checksums
5b6b789aece3eba13f35cb2a4bf299bd87869e4ed9b5952d6e384914a2b7f68c
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.0-py3-none-any.whl

Download URL knowyouragenticai_mcp_audit-0.1.0-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
709cf255d49e3b37969257543e76022d1080d7af7f950f16ec81f2ec16bc5de1
BLAKE2b-256 checksum
How to use checksums
18f9d4de398d85557b2e898fde342febd0bd762ce43da201842ab69137f1f355
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.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page