Skip to main content

trustmodel-agentcert-tag

Verify an AgentCert + TrustScore inside a Python MCP server. Thin, dependency-free client for a TAG verify endpoint — off by default, shadow mode when on (logs, never blocks), safe to merge.

pip install trustmodel-agentcert-tag
from trustmodel_agentcert_tag import verify_gate, extract_token

guard = verify_gate(mode="shadow")            # shadow | enforce

async def handle_tool_call(request):
    token = extract_token(request.headers)    # X-AgentCert-Token (or mTLS-derived)
    await guard(token)                        # logs (shadow) / raises VerifyError (enforce)
    return await dispatch(request)

Enable per environment — nothing runs until you opt in:

Env var Meaning
TRUSTMODEL_VERIFY=1 turn the gate on (otherwise guard is a no-op)
TRUSTMODEL_VERIFY_URL TAG verify endpoint (default http://localhost:8080/verify)
TRUSTMODEL_MODE=enforce switch to enforcement

The gate never reads request payloads (metadata only) and never makes the allow/deny decision on its own — it returns a structured verdict (VERIFIED / REVOKED / UNVERIFIED / ERROR) your server acts on. MIT licensed. Part of pdxlab/agentcert-tag.

Proof-of-possession (enforce mode)

A presented AgentCert is public, so on a non-mTLS carriage the caller must also send a stapled proof-of-possession (a leaf-signed assertion) in the X-AgentCert-Proof header. The gate extracts it (extract_proof / extractProof) and forwards it with the credential; the verify endpoint rejects a bare cert without it. On mTLS, pass carriage: "mtls" — the handshake already proves possession.

Metadata

Release files for trustmodel-agentcert-tag 0.2.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 trustmodel-agentcert-tag 0.2.0
File Size Uploaded Provenance Actions
trustmodel_agentcert_tag-0.2.0.tar.gz 4.5 kB With provenance Details for trustmodel_agentcert_tag-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for trustmodel-agentcert-tag 0.2.0
File Interpreter ABI Platform Actions
trustmodel_agentcert_tag-0.2.0-py3-none-any.whl Python 3 none any Details for trustmodel_agentcert_tag-0.2.0-py3-none-any.whl

Total release size: 9.5 kB

Release files / trustmodel_agentcert_tag-0.2.0.tar.gz

Download URL trustmodel_agentcert_tag-0.2.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
68134ae35a6ccf201a07a261a7ded3f68bc48c42c04ba3b1aeb490f5ee24e18f
BLAKE2b-256 checksum
How to use checksums
2a1d00ab6731c8115f3c4dd43470286c06bbc55299bd66a74914ec7e2c63ccba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release files / trustmodel_agentcert_tag-0.2.0-py3-none-any.whl

Download URL trustmodel_agentcert_tag-0.2.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b3fa9a5ddc2f3b8cf2f0887a5ee2de23896b579ad7d4c779c4bf50f6ae6f779
BLAKE2b-256 checksum
How to use checksums
19a7a64dc4590303f766c02c8691691001b296f183287a700570903f1862c045
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Security for trustmodel-agentcert-tag 0.2.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for trustmodel_agentcert_tag-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

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.2.0 This release

2 release files Full 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