McpServerApprovalMode
The approval mode for MCP server tools.
Class Diagram
Section titled “Class Diagram”---
title: McpServerApprovalMode
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class McpServerApprovalMode {
<>
+string kind
}
class McpServerToolAlwaysRequireApprovalMode {
+string kind
}
McpServerApprovalMode <|-- McpServerToolAlwaysRequireApprovalMode
class McpServerToolNeverRequireApprovalMode {
+string kind
}
McpServerApprovalMode <|-- McpServerToolNeverRequireApprovalMode
class McpServerToolSpecifyApprovalMode {
+string kind
+string[] alwaysRequireApprovalTools
+string[] neverRequireApprovalTools
}
McpServerApprovalMode <|-- McpServerToolSpecifyApprovalMode
Yaml Example
Section titled “Yaml Example”kind: neverProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| kind | string | The kind identifier for string approval modes |
Child Types
Section titled “Child Types”The following types extend McpServerApprovalMode:
- McpServerToolAlwaysRequireApprovalMode
- McpServerToolNeverRequireApprovalMode
- McpServerToolSpecifyApprovalMode
Alternate Constructions
Section titled “Alternate Constructions”The following alternate constructions are available for McpServerApprovalMode.
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"