Skip to content

McpTool

The MCP Server tool.

---
title: McpTool
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class Tool {
        +string name
        +string kind
        +string description
        +Binding[] bindings
    }
    Tool <|-- McpTool
    class McpTool {
      
        +string kind
        +Connection connection
        +string serverName
        +string serverDescription
        +McpServerApprovalMode approvalMode
        +string[] allowedTools
    }
    class McpServerApprovalMode {
        +string kind
    }
    McpTool *-- McpServerApprovalMode
kind: mcp
connection:
kind: reference
serverName: My MCP Server
serverDescription: This tool allows access to MCP services.
approvalMode:
kind: always
allowedTools:
- operation1
- operation2
NameTypeDescription
kindstringThe kind identifier for MCP tools
connectionConnectionThe connection configuration for the MCP tool
serverNamestringThe server name of the MCP tool
serverDescriptionstringThe description of the MCP tool
approvalModeMcpServerApprovalModeThe approval mode for the MCP tool, either ‘auto’ or ‘manual’ (Related Types: McpServerToolAlwaysRequireApprovalMode, McpServerToolNeverRequireApprovalMode, McpServerToolSpecifyApprovalMode)
allowedToolsstring[]List of allowed operations or resources for the MCP tool

The following types are composed within McpTool: