Trust-gated MCP tool calls for CrewAI via Dominion Observatory
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crewai_dominion_trust-0.1.0.tar.gz.
File metadata
- Download URL: crewai_dominion_trust-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6432717351e1220554367884cf03771abc8e37137190a439cce5aa316cf6248e
|
|
| MD5 |
3bad4d824b992bd9cde8b53403e7591c
|
|
| BLAKE2b-256 |
18503d29ecba9d8bad4557820cf782e3457ddb3f20614b9d8abc2848a0609bfd
|
File details
Details for the file crewai_dominion_trust-0.1.0-py3-none-any.whl.
File metadata
- Download URL: crewai_dominion_trust-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2e492e49b5cf9f0d12cf7d5d17adce62ac3704e9997224d11b9dd51ee96c22f
|
|
| MD5 |
d5602930f629ffaf7aac92bb58d29b3f
|
|
| BLAKE2b-256 |
759300dec83ba0117fb1bd6c2f2649521e811a6d1939a7794a4e9e1b4072c900
|