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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for caracalai_transport_mcp-0.1.5rc2.tar.gz
Algorithm Hash digest
SHA256 b76cbfd44b534723e7cdce30d5bc4fc112e98deff74c5e0261f459d4e1d497ed
MD5 f6472712b43844d01528a240c9ac17e9
BLAKE2b-256 e1a09aacdec66fdd487d76830349788c1c65bbea95fea88ae1f4a350c6207341

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caracalai_transport_mcp-0.1.5rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 79316ba266cd98af9f91eb4a049c64158d9dd0c72c5048f9ef031edd37b50fad
MD5 2e6d602045f43b09385e70080b58e5bc
BLAKE2b-256 d0a769ac3e1f8d2a1f549372bc5bdc387843eac9f7c1ed0a7552ef4f49eb793b

See more details on using hashes here.

Provenance

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