Skip to content

User Approval Before Executing MCP Tool in Agent Using mcp_servers #802

Not planned
@Kirchen99

Description

@Kirchen99

Please read this first

  • Have you read the docs?Agents SDK docs
    I read the SDK documents, but cannot find a way to specify which of the MCP server's tools require approval when I use mcp_servers in the code.
    Have you searched for related issues? Others may have had similar requests
    I searched with key words "agent mcp", find nothing about "approval"

Question

Currently, the agent configuration using mcp_servers allows MCP tools to be executed automatically. Is there a way to have a feature similar to the require_approval attribute of the HostedMCPTool class for my current agent setup?

async with MCPServerStreamableHttp(
    name="My MCP Server",
    params={
        "url": "http://localhost:9000/mcp"
    },
) as mcp_server:

agent = Agent(
    name="Assistant",
    instructions="Use the tools to help user.",
    mcp_servers=[mcp_server],
    model_settings=ModelSettings(tool_choice="auto"),
)

Activity

github-actions

github-actions commented on Jun 10, 2025

@github-actions

This issue is stale because it has been open for 7 days with no activity.

github-actions

github-actions commented on Jun 14, 2025

@github-actions

This issue was closed because it has been inactive for 3 days since being marked as stale.

gemue-parndt

gemue-parndt commented on Jun 16, 2025

@gemue-parndt

Would really like to see this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about using the SDKstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Kirchen99@gemue-parndt

        Issue actions

          User Approval Before Executing MCP Tool in Agent Using mcp_servers · Issue #802 · openai/openai-agents-python