      method: 'POST',
                headers: {
                    'Content-Type': 'application/json'
                },
                body: JSON.stringify({ url: mcpUrl })
            })
                .then(response => response.json())
                .then(data => {
                    document.getElementById('discover-tools-modal').classList.remove('visible');
                    
                    if (data.error) {
                        showNotification(`Error: ${data.error}`, true);
         