crewai-dominion-trust
Trust-gated MCP tool calls for CrewAI. One-line activation to check behavioral trust scores via Dominion Observatory before every tool call.
Install
pip install crewai-dominion-trust
Quick Start
from crewai_dominion_trust import enable_trust_guard
# One line to enable trust checking for ALL tool calls
enable_trust_guard(min_score=70)
# Now all CrewAI agents will have trust-gated MCP tools
agent = Agent(
role="researcher",
mcps=["https://some-mcp-server.example.com/mcp"],
)
How It Works
- Registers a
BeforeToolCallHookin CrewAI's hook system - Before each MCP tool call, checks the server trust score
- Returns
Falseto block calls below the threshold - Scores are cached (5-minute TTL) for performance
Configuration
enable_trust_guard(
min_score=70, # Minimum trust score (0-100)
cache_ttl=300.0, # Cache TTL in seconds
block_on_error=False, # Fail-open if Observatory unreachable
)
License
MIT
Metadata
Release files for crewai-dominion-trust 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crewai_dominion_trust-0.3.0.tar.gz | 4.4 kB | Without provenance | Details for crewai_dominion_trust-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crewai_dominion_trust-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for crewai_dominion_trust-0.3.0-py3-none-any.whl |
Total release size: 9.5 kB
Release files / crewai_dominion_trust-0.3.0.tar.gz
| Download URL | crewai_dominion_trust-0.3.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d70a90da713303bb6a1ebc7abefe9e8ec20b67ddcc2a86f251c0d68173373748
|
|
BLAKE2b-256 checksum How to use checksums |
c2063602ffa9a7e601b04284936965dc5bb6bf0ff8d8dfcb7152a46022d8d70c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Release files / crewai_dominion_trust-0.3.0-py3-none-any.whl
| Download URL | crewai_dominion_trust-0.3.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22449ec55c027013bac2f3d1d8f3f10e1b5a05c83e82340f14d1bf081032e3b9
|
|
BLAKE2b-256 checksum How to use checksums |
d9d8ee1cf528dc6fe6dd63e75b2e9a9add2df5a3d377724e927df843072fd3e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Security for crewai-dominion-trust 0.3.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.