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.1.0.tar.gz (4.1 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.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for crewai_dominion_trust-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6432717351e1220554367884cf03771abc8e37137190a439cce5aa316cf6248e
MD5 3bad4d824b992bd9cde8b53403e7591c
BLAKE2b-256 18503d29ecba9d8bad4557820cf782e3457ddb3f20614b9d8abc2848a0609bfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for crewai_dominion_trust-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2e492e49b5cf9f0d12cf7d5d17adce62ac3704e9997224d11b9dd51ee96c22f
MD5 d5602930f629ffaf7aac92bb58d29b3f
BLAKE2b-256 759300dec83ba0117fb1bd6c2f2649521e811a6d1939a7794a4e9e1b4072c900

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