Skip to main content

crewai-dominion-trust

PyPI License: MIT

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

  1. Registers a BeforeToolCallHook in CrewAI's hook system
  2. Before each MCP tool call, checks the server trust score
  3. Returns False to block calls below the threshold
  4. 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)

Source distribution for crewai-dominion-trust 0.3.0
File Size Uploaded
crewai_dominion_trust-0.3.0.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crewai-dominion-trust 0.3.0
File Interpreter ABI Platform
crewai_dominion_trust-0.3.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

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