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: the identity and authorization layer for AI agents - short-lived, policy-approved authority instead of credentials.

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.6rc3.tar.gz (8.6 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.6rc3-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for caracalai_transport_mcp-0.1.6rc3.tar.gz
Algorithm Hash digest
SHA256 d71888fd56b7324d0d62edbd6be7a1a6a98cd1a6dad805af7a5ab29bfcf6c5a6
MD5 af8c92411611522506ef4cc6d22c1972
BLAKE2b-256 5101e3d33b601b11d7877588452a4589d0a1e60c89ecb1fd31d8dc9b1b559a6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for caracalai_transport_mcp-0.1.6rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 7714d1ff18c945bd617f1099b657ee5cfacb39ccecf84db9899490731067a5b0
MD5 43082b8f28a6ea155cdb0cea582cee4c
BLAKE2b-256 977faae4ce359d2cf8537cde864846f359cd2b6fa1980166bdf5a59b9833f433

See more details on using hashes here.

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