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

Uploaded Python 3

File details

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

File metadata

  • Download URL: caracalai_transport_mcp-0.1.5.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for caracalai_transport_mcp-0.1.5.tar.gz
Algorithm Hash digest
SHA256 276cf3cbbc55dcfb9842e73f7a0bbfda3890b8b392421c15d485cabb97b064f2
MD5 c66dfbf327b0f823901a1fb08ce276c5
BLAKE2b-256 40e9b4480f5de1b5d1bafff003d36d26a0c5a4bd6691a77f42ed5701ec8a8597

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for caracalai_transport_mcp-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f08abb3c2477634f6e0caf50862c5809f3fc3669de7f4b96c1c1c6f336ae365e
MD5 d006a829aea830e034f0a8d538c6b456
BLAKE2b-256 214186ff0ef9dae377764c6043d2e3270dc059166d59692d74850de4e1ffe803

See more details on using hashes here.

Provenance

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