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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for caracalai_transport_mcp-0.1.4rc1.tar.gz
Algorithm Hash digest
SHA256 d9969594485c2b6ee0b579dec6019405e6c18a4110e765e4d97444f234a4409c
MD5 58dea93657cc5181ae05d54c6a48249b
BLAKE2b-256 7b81aaa6da3ce79b2a8e24bbcbce5825df2abf49dc3b99abc8ac914462fcd117

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caracalai_transport_mcp-0.1.4rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 fbd640c5be111160bf60064b4616f2d60c27bdcb3c11a2d8d73281bb8fdf8695
MD5 3846f67740d0509cb762a93af70a2d70
BLAKE2b-256 a15614a3cc32dc08ca58e7c0449e5bd529b2a7e0c42066fdf3f76ddb2eed92f3

See more details on using hashes here.

Provenance

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