Skip to main content

Transport-neutral MCP authentication for Caracal-issued JWTs

Project description

caracalai-transport-mcp

Transport-neutral MCP authentication for Caracal-issued JWTs.

Part of Caracal: a security-first authority and delegation system for AI agents.

Install

pip install caracalai-transport-mcp

Verify a mandate

from caracalai_revocation import InMemoryRevocationStore
from caracalai_transport_mcp 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"],
)

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

caracalai_transport_mcp-0.1.5rc3.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

caracalai_transport_mcp-0.1.5rc3-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file caracalai_transport_mcp-0.1.5rc3.tar.gz.

File metadata

File hashes

Hashes for caracalai_transport_mcp-0.1.5rc3.tar.gz
Algorithm Hash digest
SHA256 25b3a958dee85d9f66bc083e11399c5df34be9769317b86f920951de786b2cc2
MD5 47dd90f2878fffc9bc7361d3918746f4
BLAKE2b-256 72fcbc8b6dfff56d1418393ef594ddf8208bede0734216030a32c5154687d7f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for caracalai_transport_mcp-0.1.5rc3.tar.gz:

Publisher: publishPypi.yml on Garudex-Labs/caracal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file caracalai_transport_mcp-0.1.5rc3-py3-none-any.whl.

File metadata

File hashes

Hashes for caracalai_transport_mcp-0.1.5rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 19118b751b5670efd4cac7e8003e74ace57f4741049daca7693261974ef9160e
MD5 bf98cb225b5e0e2937d04c6e42502532
BLAKE2b-256 f3956a18dd11b7c1a17deb22a10c77f0ee2cea95f0a295a6d96e3240b122ee12

See more details on using hashes here.

Provenance

The following attestation bundles were made for caracalai_transport_mcp-0.1.5rc3-py3-none-any.whl:

Publisher: publishPypi.yml on Garudex-Labs/caracal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page