McpTool
The MCP Server tool.
Class Diagram
Section titled “Class Diagram”---
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
Yaml Example
Section titled “Yaml Example”kind: mcpconnection: kind: referenceserverName: My MCP ServerserverDescription: This tool allows access to MCP services.approvalMode: kind: alwaysallowedTools: - operation1 - operation2Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| kind | string | The kind identifier for MCP tools |
| connection | Connection | The connection configuration for the MCP tool |
| serverName | string | The server name of the MCP tool |
| serverDescription | string | The description of the MCP tool |
| approvalMode | McpServerApprovalMode | The approval mode for the MCP tool, either ‘auto’ or ‘manual’ (Related Types: McpServerToolAlwaysRequireApprovalMode, McpServerToolNeverRequireApprovalMode, McpServerToolSpecifyApprovalMode) |
| allowedTools | string[] | List of allowed operations or resources for the MCP tool |
Composed Types
Section titled “Composed Types”The following types are composed within McpTool: