You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
asyncwithMCPServerStreamableHttp(
name="My MCP Server",
params={
"url": "http://localhost:9000/mcp"
},
) asmcp_server:
agent=Agent(
name="Assistant",
instructions="Use the tools to help user.",
mcp_servers=[mcp_server],
model_settings=ModelSettings(tool_choice="auto"),
)
The text was updated successfully, but these errors were encountered:
Please read this first
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.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 therequire_approval
attribute of theHostedMCPTool
class for my current agent setup?The text was updated successfully, but these errors were encountered: