diff --git a/docs/mcp.md b/docs/mcp.md index 4ab0268..75811e6 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -4,6 +4,8 @@ Desktop integration for **1.3.8**, in release preparation. No 1.3.8 release tag ## Set it up +MCP is desktop-only. Android and iOS do not include its native runtime or commands, do not install its editor listeners, and do not show the Integrations tab in Settings. Mobile vault switching remains a separate feature and uses the platform's existing storage access flow. + Use an AI client that supports **local stdio MCP servers**. Web-only clients that accept only remote MCP URLs cannot use this configuration; the private bridge URL is not a public MCP endpoint. 1. Open **Settings → Integrations → MCP access** in a rebuilt HelixNotes desktop app. diff --git a/src/lib/components/AppLayout.svelte b/src/lib/components/AppLayout.svelte index f8f56e6..73f8581 100644 --- a/src/lib/components/AppLayout.svelte +++ b/src/lib/components/AppLayout.svelte @@ -89,7 +89,7 @@ localStorage.setItem('helix-tablet-nav-hidden', hidden ? '1' : '0'); } import { openVault, restoreExternalVault, loadVaultState, saveVaultState, readNote, deleteNote, createDailyNote, createBackup, getPendingOpenFile, ackPendingOpenFile, addQuickAccess, removeQuickAccess, getQuickAccess, setTheme, syncNow, setTaskDone, setTaskPriority, setTaskDue } from '$lib/api'; - import { darkThemes, isAndroid } from '$lib/platform'; + import { darkThemes, isAndroid, isMobile as isMobileTarget } from '$lib/platform'; import { openNoteWindow } from '$lib/utils/window'; import { normalizeStartupView, resolveStartupTarget } from '$lib/utils/startup-view'; import { isCurrentVaultEvent, sameNoteTags, updateNoteList } from '$lib/utils/note-list-updates'; @@ -195,7 +195,7 @@ // A fresh layout also reloads clean notes after returning from vault management. activateVaultData(ownerVault, ownerBookmark, true); let stateReady = false; - const unregisterMcpReadiness = registerMcpReadiness(() => stateReady && !vaultSwitchBusy && !restoringNote && pendingOpenDrain === null); + const unregisterMcpReadiness = isMobileTarget ? () => {} : registerMcpReadiness(() => stateReady && !vaultSwitchBusy && !restoringNote && pendingOpenDrain === null); onDestroy(unregisterMcpReadiness); let restoringNote = false; let disposed = false; diff --git a/src/lib/components/Editor.svelte b/src/lib/components/Editor.svelte index 7805dc5..da1a8d3 100644 --- a/src/lib/components/Editor.svelte +++ b/src/lib/components/Editor.svelte @@ -7618,7 +7618,7 @@ window.addEventListener('helixnotes-open-note', handleOpenNote); const mcpEditorReady = () => !(editorDisposed || isLoadingNote || pendingContent !== null || !$activeNotePath || !loadedPath || $editorDirty || externalOperationBusy || source.view?.compositionStarted || source.view?.composing || editor?.view.composing); - const unregisterMcpEditor = registerMcpEditor(async () => { + const unregisterMcpEditor = isMobile ? () => {} : registerMcpEditor(async () => { if (!mcpEditorReady()) return null; const path = $activeNotePath!, vault = $appConfig?.active_vault; const session = saves.capture(); diff --git a/src/lib/components/SettingsPanel.svelte b/src/lib/components/SettingsPanel.svelte index 6d378be..4118848 100644 --- a/src/lib/components/SettingsPanel.svelte +++ b/src/lib/components/SettingsPanel.svelte @@ -6,7 +6,6 @@ import ThemedSelect from './ThemedSelect.svelte'; import DailyNoteTemplate from './DailyNoteTemplate.svelte'; import NewNoteEditorSetting from './NewNoteEditorSetting.svelte'; - import McpSettings from './McpSettings.svelte'; import { newNoteEditorMode, type EditorMode } from '$lib/editor/mode'; import { setNewNoteEditorMode } from '$lib/api'; import AiModelPicker from './AiModelPicker.svelte'; @@ -47,7 +46,7 @@ $effect(() => { const tab = $settingsTab; if (tab) { - activeTab = tab as Tab; + activeTab = isMobile && tab === 'integrations' ? 'general' : tab as Tab; $settingsTab = null; } }); @@ -1354,10 +1353,12 @@ {$ui("ui.maintenance")} + {#if !isMobile} + {/if}