Problem
Example MCP integrations can be used in permissive ways without explicit trust boundaries, risking unsafe tool execution.
Why now
README guidance already warns to only connect to trusted MCP servers; runtime contracts should enforce this by default.
Current behavior is insufficient
Safety relies on user discipline/documentation rather than hard fail-closed defaults.
Expected behavior
Default behavior should fail closed for untrusted MCP server integrations unless explicit opt-in trust/policy is configured.
Acceptance criteria
- Untrusted MCP configurations are rejected by default.
- Explicit opt-in path exists and is auditable.
- Error messaging clearly indicates required trust/policy configuration.
Validation
- Add tests proving untrusted configs fail and trusted opt-in configs pass.
- Ensure behavior is deterministic across AgentChat and MCP tool integration surfaces.
Codepaths
python/packages/autogen-ext/src
python/packages/autogen-agentchat/src
Problem
Example MCP integrations can be used in permissive ways without explicit trust boundaries, risking unsafe tool execution.
Why now
README guidance already warns to only connect to trusted MCP servers; runtime contracts should enforce this by default.
Current behavior is insufficient
Safety relies on user discipline/documentation rather than hard fail-closed defaults.
Expected behavior
Default behavior should fail closed for untrusted MCP server integrations unless explicit opt-in trust/policy is configured.
Acceptance criteria
Validation
Codepaths
python/packages/autogen-ext/srcpython/packages/autogen-agentchat/src