McpApprovalMode
The approval mode for MCP server tools. When kind is “specify”, use alwaysRequireApprovalTools and neverRequireApprovalTools to control per-tool approval. For “always” and “never”, those fields are ignored.
Class Diagram
Section titled “Class Diagram”---
title: McpApprovalMode
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class McpApprovalMode {
+string kind
+string[] alwaysRequireApprovalTools
+string[] neverRequireApprovalTools
}
Yaml Example
Section titled “Yaml Example”kind: neveralwaysRequireApprovalTools: - operation1neverRequireApprovalTools: - operation2Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| kind | string | The approval mode: ‘always’, ‘never’, or ‘specify’ |
| alwaysRequireApprovalTools | string[] | List of tools that always require approval (only used when kind is ‘specify’) |
| neverRequireApprovalTools | string[] | List of tools that never require approval (only used when kind is ‘specify’) |
Alternate Constructions
Section titled “Alternate Constructions”The following alternate constructions are available for McpApprovalMode.
These allow for simplified creation of instances using a single property.
string kind
Section titled “string kind”Mcp Approval Mode
The following simplified representation can be used:
kind: "example"This is equivalent to the full representation:
kind: kind: "example"