你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MCPApproval Class

Definition

public class MCPApproval
type MCPApproval = class
Public Class MCPApproval
Inheritance
MCPApproval

Constructors

Name Description
MCPApproval(MCPApprovalPerTool)

Create an instance of an MCPApproval with custom trust levels for different tools.

MCPApproval(String)

Create an instance of an MCPApproval with trust level, equal for all tools.

Properties

Name Description
AlwaysRequireApproval

Return true if we do not trust all tools and always need to ask for approval before sending data to server.

NeverRequireApproval

Return true if we trust all tools and do not need to ask for approval before sending data to server.

PerToolApproval

Return the object, describing, which tools always require approval and which do not need it.

Applies to