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.
Release files for trustmodel-agentcert-tag 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| trustmodel_agentcert_tag-0.1.0.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trustmodel_agentcert_tag-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / trustmodel_agentcert_tag-0.1.0.tar.gz
| Download URL | trustmodel_agentcert_tag-0.1.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a744c6da93a269538d5966db289760957e30ee0e980ae43c14a5f64878e5e8d7
|
|
BLAKE2b-256 checksum How to use checksums |
5d4407ea546131afdc454e95dffde5ec0e844fc097bef6c124692a1966484a00
|
| 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 logRelease files / trustmodel_agentcert_tag-0.1.0-py3-none-any.whl
| Download URL | trustmodel_agentcert_tag-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7aeefb96799feea3eeaa056a18f90b77268cc0dd0c0c5f83bbff29ddda5a3d4
|
|
BLAKE2b-256 checksum How to use checksums |
c6744ff420367e438a0708b40fcf7f75888c17248a93db8ecfaeb888c34cefe6
|
| 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