A previous release had provenance metadata, but this release does not. View details.
custos-mcp
Runtime governance, policy enforcement, and cryptographic audit for MCP tool calls.
Every tools/call from an AI agent is evaluated against a policy, allowed or denied, timed, and appended to an Ed25519-signed hash-chained ledger. The ledger format is wire-compatible with the Node package — audit anywhere.
pip install custos-mcp[web]
Quickstart
from custos import Gate, Ledger, Actor, Server, generate_keypair, load_policy
kp = generate_keypair()
kp.save(".custos")
ledger = Ledger(".custos/ledger.jsonl", kp)
policy = load_policy("policy.yaml")
gate = Gate(policy, ledger, Actor("agent-1"), Server("fs"))
result = gate.call("read_file", {"path": "/workspace/x"}, fn=open_file)
if result.allowed:
print(result.result)
CLI
custos keygen # write .custos/ledger.key + ledger.pub
custos proxy --policy policy.yaml -- python -m my_mcp_server
custos verify --ledger .custos/ledger.jsonl
custos bundle out.tar.gz # export portable evidence
custos verify-bundle out.tar.gz
custos serve # dashboard on :8787
Policy DSL
version: 1
id: default
default: deny
rules:
- id: allow-read
when:
tool: read_file
args.path: {prefix: "/workspace/"}
decision: allow
reason: workspace-only reads
See spec/POLICY.md for the full grammar.
Metadata
Release files for custos-mcp 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Loss of provenance
These files do not have provenance metadata, despite files in a prior release including this data.
We recommend further investigation before installing these files. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| custos_mcp-0.4.2.tar.gz | 49.2 kB | Without provenance | Details for custos_mcp-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| custos_mcp-0.4.2-py3-none-any.whl | Python 3 | none | any | Details for custos_mcp-0.4.2-py3-none-any.whl |
Total release size: 96.0 kB
Release files / custos_mcp-0.4.2.tar.gz
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | custos_mcp-0.4.2.tar.gz |
|---|---|
| Size | 49.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
597f9da85c10f77b75f0e70a58221e4dcf88c0d82b460258f1f47697edbd3011
|
|
BLAKE2b-256 checksum How to use checksums |
2923063d7a9e68d3645a20fe0286229d39b4b3e0c29888818a0f6cfcc3f7fa65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Release files / custos_mcp-0.4.2-py3-none-any.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | custos_mcp-0.4.2-py3-none-any.whl |
|---|---|
| Size | 46.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ccce64b0c6e981e37fbee5afa5c07218c41359147082112a5fd697129b9336b8
|
|
BLAKE2b-256 checksum How to use checksums |
c4a21865dd82b3126dfe18f2e74f9fc48cb6a9f16e147271cf5379b234d3fea6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Security for custos-mcp 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Loss of provenance
A previous release of these files had provenance metadata, but this release does not.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Release comparison
- Removed 0.4.0 2 files With provenance
- Added 0.4.2 2 files Without provenance
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.