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.3.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.3.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: crewai_dominion_trust-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 d70a90da713303bb6a1ebc7abefe9e8ec20b67ddcc2a86f251c0d68173373748
MD5 f22a05666d855acb9125f36176c03f67
BLAKE2b-256 c2063602ffa9a7e601b04284936965dc5bb6bf0ff8d8dfcb7152a46022d8d70c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for crewai_dominion_trust-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22449ec55c027013bac2f3d1d8f3f10e1b5a05c83e82340f14d1bf081032e3b9
MD5 19ff59e9646c14747ef9f49c1364522e
BLAKE2b-256 d9d8ee1cf528dc6fe6dd63e75b2e9a9add2df5a3d377724e927df843072fd3e7

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