Skip to main content

Trust-gated MCP tool calls for CrewAI via Dominion Observatory

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crewai_dominion_trust-0.2.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crewai_dominion_trust-0.2.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file crewai_dominion_trust-0.2.0.tar.gz.

File metadata

  • Download URL: crewai_dominion_trust-0.2.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for crewai_dominion_trust-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6418eeee6c284f0c2941e23bbdec8d574cbd513a40877315904b32bee8379463
MD5 4bad5934141c0e75e2977f9f0e01304e
BLAKE2b-256 ce0e7e101057b207858c179702d79e0cdc3b5ec36a4182c020a3136025442613

See more details on using hashes here.

File details

Details for the file crewai_dominion_trust-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for crewai_dominion_trust-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59824a8e233033b7b67bdc2ecf63c32eb46155f4bc2045ffb150022889f72cb3
MD5 0a41fcda69afdd2622fb8411a8d0be96
BLAKE2b-256 dcfc3b15a42cdfb45c4bc57d8e3893d41d66b30d8deec6973bb1685c2f39be0d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page