Skip to content

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.

---
title: McpApprovalMode
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class McpApprovalMode {
      
        +string kind
        +string[] alwaysRequireApprovalTools
        +string[] neverRequireApprovalTools
    }
kind: never
alwaysRequireApprovalTools:
- operation1
neverRequireApprovalTools:
- operation2
NameTypeDescription
kindstringThe approval mode: ‘always’, ‘never’, or ‘specify’
alwaysRequireApprovalToolsstring[]List of tools that always require approval (only used when kind is ‘specify’)
neverRequireApprovalToolsstring[]List of tools that never require approval (only used when kind is ‘specify’)

The following alternate constructions are available for McpApprovalMode. These allow for simplified creation of instances using a single property.

Mcp Approval Mode

The following simplified representation can be used:

kind: "example"

This is equivalent to the full representation:

kind:
kind: "example"