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.5rc1.tar.gz (8.4 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.5rc1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for caracalai_transport_mcp-0.1.5rc1.tar.gz
Algorithm Hash digest
SHA256 6503bb1a594cfdc12d76eba49ee5ea4d4477ff12c3b7f8923dd3a27e8777007d
MD5 33113295878e683af54a9e162aa15c00
BLAKE2b-256 379354e0fb7a3c74b89b6a82a0c91bb3316565f82bcfee6ab1cb057871895c6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for caracalai_transport_mcp-0.1.5rc1.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.5rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for caracalai_transport_mcp-0.1.5rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 024b22b979c2705ddd8ca3f2f4f19e2ad15ef6208ba8a69499b3cbf5bddcab7f
MD5 19c75137f6e735a8c31c09f1cd466bed
BLAKE2b-256 1955886cd0d6438210ce8f69f17f15adffc5864a319b24eefb198962ab537950

See more details on using hashes here.

Provenance

The following attestation bundles were made for caracalai_transport_mcp-0.1.5rc1-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