Feature: add MCP settings presets and hide command whitelist
The MCP settings dialog had grown too many independent tool switches to tick by hand. Add two one-click preset buttons next to the "Enable MCP" checkbox. "Read-only mode" turns MCP on, enables the read-only switch, and unchecks every feature that only works when read-only is off (persistent terminal, remote control, file write, management, dangerous host operations, client build). "Smart mode" turns MCP on, disables read-only, and enables all tool switches, including host management plus dangerous host operations so the OnOK dependency check does not revert it. Stop showing the command whitelist input: it is advanced and is easily bypassed once the persistent terminal is enabled. Its load, normalize and save logic is left untouched, so the persisted McpCmdWhitelist still round-trips unchanged and the server-side whitelist check is unchanged. Add translations for the two new button labels (en_US, zh_TW, de_DE), and size the preset buttons from the current font so translated labels do not clip. Verified with a Debug x64 server build; the dialog was not clicked through. Co-Authored-By: deepseek-flash
This commit is contained in:
1 parent
545700abaa
commit
5387603c73
5 files changed
+94
-9
No files matched your search
@@ -2265,3 +2265,7 @@ APK
|
||||
修复命令已复制到剪贴板。\n\n请按 Win+X 打开「终端(管理员)」,粘贴执行后再重新启动本程序。=Der Reparaturbefehl wurde in die Zwischenablage kopiert.\n\nDruecken Sie Win+X, oeffnen Sie Terminal (Administrator), fuegen Sie den Befehl ein und starten Sie das Programm danach neu.
|
||||
已复制=Kopiert
|
||||
该 Android 主机未取得 root,无法查看进程列表。\n\nAndroid 7 起 /proc 受 hidepid/SELinux 限制,普通应用无法枚举其它进程。=Dieser Android-Host hat kein Root, daher ist die Prozessliste nicht verfuegbar.\n\nAb Android 7 ist /proc durch hidepid/SELinux eingeschraenkt; eine normale App kann keine anderen Prozesse auflisten.
|
||||
|
||||
; MCP settings preset buttons
|
||||
只读模式=Nur-Lese-Modus
|
||||
智能模式=Intelligenter Modus
|
||||
Reference in new issue
Block a user