Skip to content

McpServerApprovalMode

The approval mode for MCP server tools.

---
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
kind: never
NameTypeDescription
kindstringThe kind identifier for string approval modes

The following types extend McpServerApprovalMode:

The following alternate constructions are available for McpServerApprovalMode. 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"