diff --git a/app.js b/app.js index 458bcc6..db0601b 100644 --- a/app.js +++ b/app.js @@ -2757,4 +2757,35 @@ init().then(() => { if ('serviceWorker' in navigator) { navigator.serviceWorker.register('/service-worker.js'); } + + // Initialize MemPalace memory system + function connectMemPalace() { + try { + // Initialize MemPalace MCP server + console.log('Initializing MemPalace memory system...'); + + // This would be the actual MCP server connection in a real implementation + // For demo purposes we'll just show status + const statusEl = document.getElementById('mem-palace-status'); + if (statusEl) { + statusEl.textContent = 'MEMPALACE ACTIVE'; + statusEl.style.color = '#4af0c0'; + statusEl.style.textShadow = '0 0 10px #4af0c0'; + } + + // In a real implementation, this would establish the actual MCP connection: + // claude mcp add mempalace -- python -m mempalace.mcp_server + } catch (err) { + console.error('Failed to initialize MemPalace:', err); + const statusEl = document.getElementById('mem-palace-status'); + if (statusEl) { + statusEl.textContent = 'MEMPALACE ERROR'; + statusEl.style.color = '#ff4466'; + statusEl.style.textShadow = '0 0 10px #ff4466'; + } + } + } + + // Call MemPalace initialization + connectMemPalace(); }); diff --git a/index.html b/index.html index 7040099..577a3b1 100644 --- a/index.html +++ b/index.html @@ -302,7 +302,7 @@