Skip to main content

caracalai-verify

Transport-neutral MCP authentication for Caracal-issued JWTs.

Part of Caracal: the identity and authorization layer for AI agents - short-lived, policy-approved authority instead of credentials.

Install

pip install caracalai-verify

Verify a mandate

from caracalai_revocation import InMemoryRevocationStore
from caracalai_verify import AuthOptions, create_mandate_verifier

verifier = create_mandate_verifier(
    AuthOptions(
        issuer="https://sts.example.com",
        audience="https://api.example.com",
        expected_zone_id="zone_prod",
        revocations=InMemoryRevocationStore(),
    )
)

result = await verifier.authorization(
    request.headers.get("authorization"),
    required_scopes=["tickets:read"],
    required_targets=["https://api.example.com/tickets"],
)

Metadata

Release files for caracalai-verify 1.0.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 caracalai-verify 1.0.0
File Size Uploaded Provenance Actions
caracalai_verify-1.0.0.tar.gz 8.9 kB With provenance Details for caracalai_verify-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for caracalai-verify 1.0.0
File Interpreter ABI Platform Actions
caracalai_verify-1.0.0-py3-none-any.whl Python 3 none any Details for caracalai_verify-1.0.0-py3-none-any.whl

Total release size: 18.4 kB

Release files / caracalai_verify-1.0.0.tar.gz

Download URL caracalai_verify-1.0.0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9e35c1ac20ce465a131cf136015c109642f5db6d9e2f64978976820a4cfafd03
BLAKE2b-256 checksum
How to use checksums
a44e29484da35e38b45bdeb1b901d94bcc83450203393ce17da414c3b96f5227
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 Aug 9, 2026.

Transparency log

Release files / caracalai_verify-1.0.0-py3-none-any.whl

Download URL caracalai_verify-1.0.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35817322e85e207ce5bbd70993c870d984d3ed897d58dbdb39d1377b7a33321b
BLAKE2b-256 checksum
How to use checksums
ae368327c5ae85a19eae5e37c68731e947ee60ab5aeed6340b95e4a676252c9e
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 Aug 9, 2026.

Transparency log

Security for caracalai-verify 1.0.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for caracalai_verify-1.0.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 Aug 9, 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.

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