mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-05 09:12:39 +00:00
Addresses #5080 - adds an optional allowed_commands parameter to StdioTransport that validates commands against an allowlist before spawning subprocesses. - Add DEFAULT_ALLOWED_COMMANDS frozenset (python, python3, node, npx, uvx, deno) - Add allowed_commands parameter to StdioTransport.__init__ with validation - Add allowed_commands field to MCPServerStdio config model - Forward allowed_commands through MCPToolResolver._create_transport - Export DEFAULT_ALLOWED_COMMANDS from transports __init__.py - Add 29 tests covering allowlist validation, opt-out, custom lists, and integration Co-Authored-By: João <joao@crewai.com>