Skip to main content

atlas-pca-fastmcp

FastMCP guard for Proof-Carrying Authority (PCA): make every FastMCP tool call proof-carrying and policy-gated. A tool only runs when the agent carries a valid, in-plan, resource-correct proof for exactly that action. The adapter delegates all verification to atlas-pca and reimplements no cryptography.

Status: 0.3.0, unaudited.

What is tested

The default test suite runs without the framework, against the shared conformance proofs. A second suite, make test-real (needs the framework installed), runs against the real framework and is pinned to FastMCP 4.1.0. It covers a real FastMCP server with the middleware, called through a real in-memory Client: proof in _meta and in tool arguments, absent/undecodable/tampered proofs, wrong audience, insufficient capability, the @pca_tool registry and the policy hook, each asserting the refusal reason the client sees. Each denial test checks that the tool body never ran, and checks the refusal reason wherever the framework surfaces it.

Not covered: other framework versions (only the pinned one is exercised), live model providers (the models are scripted and offline), and any property of the underlying atlas-pca verifier beyond what it already documents. This package has not been independently audited.

Install

pip install atlas-pca-fastmcp

This installs atlas-pca>=0.3.0,<0.4 as a dependency.

Use

Entry points: PCAMiddleware.

from atlas_pca_fastmcp import PCAMiddleware

See the module docstrings in atlas_pca_fastmcp for the full API, and the PCA specification for the model. The verifier applies the full check order, including grant_ref_bound (the signed grant_ref must equal the root capability id), as of atlas-pca 0.2.0.

License: MIT

Metadata

Release files for atlas-pca-fastmcp 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for atlas-pca-fastmcp 0.3.0
File Size Uploaded
atlas_pca_fastmcp-0.3.0.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for atlas-pca-fastmcp 0.3.0
File Interpreter ABI Platform
atlas_pca_fastmcp-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.0 kB

Release files / atlas_pca_fastmcp-0.3.0.tar.gz

Download URL atlas_pca_fastmcp-0.3.0.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a46fb5fb007db6b8875f06d33e1a84859fc5f81b3b1f5e15c1b6c2eaf3f98dca
BLAKE2b-256 checksum
How to use checksums
028144aa457e4485bc2849cb6a22a652d8cea756b9da5f37cb89234c8752d25b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / atlas_pca_fastmcp-0.3.0-py3-none-any.whl

Download URL atlas_pca_fastmcp-0.3.0-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e76e713d94928b7e1d75c81eecfc14b9b468a340d633e901e6298dd004dd2da8
BLAKE2b-256 checksum
How to use checksums
ab1f3b7ae951d4fdfcaba7ed16e8243cdc773e4c0b12748689e6b313cc131675
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

0.4.1

2 release files

0.4.0

2 release files

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page