Skip to content

Enforce fail-closed defaults for untrusted MCP server integrations #7266

Description

@davidahmann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions