execute method
Execute the tool with the given input.
Implementation
@override
Future<ToolResult> execute(Map<String, dynamic> input) async {
final parsed = McpToolInput.fromJson(input);
if (dispatch != null) {
return dispatch!(parsed.serverName, parsed.toolName, parsed.arguments);
}
return ToolResult.error(
'No MCP dispatch configured for '
'${parsed.serverName}/${parsed.toolName}',
);
}