Add an MCP full-access permission that runs every action without local confirmation
CI / verify (push) Canceled after 0s

With full access the installation grants every capability, destructive and
conditionally confirmed actions (queue retry/remove with source deletion,
history clear, app restart, ...) run without the local dialog, and the new
mhu_files_grant tool can add or widen directory grants. Narrowing or removing
grants and changing permissions stay local. Enabling full access in the
settings asks for local confirmation once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SucukdeluxeandClaude Opus 5.5 committed 2026-10-21 23:02:18 +02:00
1 parent 432c0e01b8
commit 08f375621a
6 files changed
+42 -13

No files matched your search

+4 -3
View File
@@ -222,8 +222,9 @@
['control','App steuern','Control app','Uploads und Konten verwalten. Kritische Aktionen lokal bestätigen.','Manage uploads and accounts. Confirm critical actions locally.'],
['files','Freigegebene Ordner','Granted directories','Auf ausgewählte Ordner zugreifen. Dateiinhalte separat freigeben.','Access selected directories. Allow file contents separately.'],
['updates','App-Updates installieren','Install app updates','Geprüfte Updates ohne erneute Bestätigung installieren. Uploads abschließen und danach fortsetzen. Keine Portable-Versionen.','Install verified updates without another confirmation. Finish uploads and resume afterwards. No portable versions.'],
['secrets','Zugangsdaten auslesen','Reveal credentials','Gespeicherte Zugangsdaten ausdrücklich freigeben. Zusätzliche lokale Bestätigung erforderlich.','Explicitly allow saved credentials to be read. Additional local confirmation required.']
].map(([value,de,en,description,englishDescription])=>`<label class="mcp-permission${value === 'secrets' ? ' mcp-permission-sensitive' : ''}" data-settings-search-entry data-settings-search-label="${de}"><input type="checkbox" value="${value}"${value === 'updates' ? ' data-mcp-updates' : ''} disabled><span><strong>${text(de,en)}</strong><span class="mcp-permission-description">${text(description,englishDescription)}</span></span></label>`).join('')}</fieldset>
['secrets','Zugangsdaten auslesen','Reveal credentials','Gespeicherte Zugangsdaten ausdrücklich freigeben. Zusätzliche lokale Bestätigung erforderlich.','Explicitly allow saved credentials to be read. Additional local confirmation required.'],
['full_access','Vollzugriff ohne Bestätigung','Full access without confirmation','Alle Aktionen ohne lokale Bestätigung ausführen, auch Löschen, Wiederholen mit Quelldatei-Löschung, Ordnerfreigaben und Zugangsdaten.','Run every action without local confirmation, including deletions, retries with source deletion, directory grants and credentials.']
].map(([value,de,en,description,englishDescription])=>`<label class="mcp-permission${['secrets', 'full_access'].includes(value) ? ' mcp-permission-sensitive' : ''}" data-settings-search-entry data-settings-search-label="${de}"><input type="checkbox" value="${value}"${value === 'updates' ? ' data-mcp-updates' : ''} disabled><span><strong>${text(de,en)}</strong><span class="mcp-permission-description">${text(description,englishDescription)}</span></span></label>`).join('')}</fieldset>
<div class="mcp-save-row"><p data-mcp-save-state role="status">${text('Erst speichern und aktivieren, dann den Verbindungscode kopieren.', 'Save and enable first, then copy the connection code.')}</p><button type="button" class="btn btn-sm btn-primary" data-mcp-action="enable" disabled>${text('Speichern und aktivieren','Save and enable')}</button></div>
</section>
<section class="mcp-card" aria-labelledby="mcpGrantsTitle">
@@ -233,7 +234,7 @@
</section>
<section class="mcp-card" aria-labelledby="mcpAccessTitle">
<div class="mcp-card-heading"><h4 id="mcpAccessTitle">${text('Zugang verwalten', 'Manage access')}</h4></div>
<p>${text('Der Verbindungscode ist ein Zugangsschlüssel. Er wird weder im Backup gespeichert noch auf andere Installationen übertragen. Löschungen und andere gefährliche Aktionen verlangen eine lokale Bestätigung.', 'The connection code is a credential. It is not stored in backups or transferred to other installations. Deletions and other dangerous actions require local confirmation.')}</p>
<p>${text('Der Verbindungscode ist ein Zugangsschlüssel. Er wird weder im Backup gespeichert noch auf andere Installationen übertragen. Löschungen und andere gefährliche Aktionen verlangen eine lokale Bestätigung, außer bei Vollzugriff.', 'The connection code is a credential. It is not stored in backups or transferred to other installations. Deletions and other dangerous actions require local confirmation unless full access is granted.')}</p>
<p>${text('Zugang erneuern macht den bisherigen Code ungültig. Deaktivieren beendet den Fernzugriff und widerruft den Zugang.', 'Rotating access invalidates the previous code. Disabling remote access revokes access.')}</p>
<div class="mcp-actions"><button type="button" class="btn btn-sm btn-secondary" data-mcp-action="rotate" disabled>${text('Zugang erneuern','Rotate access')}</button><button type="button" class="btn btn-sm btn-secondary" data-mcp-action="disable" disabled>${text('Deaktivieren und widerrufen','Disable and revoke')}</button></div>
</section>