mcpUrl = document.getElementById('mcp-url').value;
            
            if (!mcpUrl) {
                showNotification('MCP URL is required', true);
                return;
            }
            
            // Update button
            const button = document.getElementById('confirm-discover');
            const originalText = button.textContent;
            button.textContent = 'Discovering...';
            button.disabled = true;
            
            fetch('/api/tools/discover', {
          