fix(dev): keep the MCP bridge capability out of default builds
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped

The bridge needs no capability (it talks to the plugin over its own socket),
and a capability referencing an optional plugin broke builds without the
feature.
This commit is contained in:
1xDed committed 2026-11-27 03:14:00 +03:00
1 parent c560f8ae1b
commit 3131c1f905
5 files changed
+8 -180

No files matched your search

-8
View File
@@ -1,8 +0,0 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "mcp-bridge",
"description": "Dev-only MCP bridge for UI automation",
"platforms": ["macOS", "windows", "linux"],
"windows": ["main"],
"permissions": ["mcp-bridge:default"]
}
+1 -1
View File
@@ -1 +1 @@
{"clipboard-manager":{"default_permission":{"identifier":"default","description":"No features are enabled by default, as we believe\nthe clipboard can be inherently dangerous and it is \napplication specific if read and/or write access is needed.\n\nClipboard interaction needs to be explicitly enabled.\n","permissions":[]},"permissions":{"allow-clear":{"identifier":"allow-clear","description":"Enables the clear command without any pre-configured scope.","commands":{"allow":["clear"],"deny":[]}},"allow-read-image":{"identifier":"allow-read-image","description":"Enables the read_image command without any pre-configured scope.","commands":{"allow":["read_image"],"deny":[]}},"allow-read-text":{"identifier":"allow-read-text","description":"Enables the read_text command without any pre-configured scope.","commands":{"allow":["read_text"],"deny":[]}},"allow-write-html":{"identifier":"allow-write-html","description":"Enables the write_html command without any pre-configured scope.","commands":{"allow":["write_html"],"deny":[]}},"allow-write-image":{"identifier":"allow-write-image","description":"Enables the write_image command without any pre-configured scope.","commands":{"allow":["write_image"],"deny":[]}},"allow-write-secret":{"identifier":"allow-write-secret","description":"Enables the write_secret command without any pre-configured scope.","commands":{"allow":["write_secret"],"deny":[]}},"allow-write-text":{"identifier":"allow-write-text","description":"Enables the write_text command without any pre-configured scope.","commands":{"allow":["write_text"],"deny":[]}},"deny-clear":{"identifier":"deny-clear","description":"Denies the clear command without any pre-configured scope.","commands":{"allow":[],"deny":["clear"]}},"deny-read-image":{"identifier":"deny-read-image","description":"Denies the read_image command without any pre-configured scope.","commands":{"allow":[],"deny":["read_image"]}},"deny-read-text":{"identifier":"deny-read-text","description":"Denies the read_text command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text"]}},"deny-write-html":{"identifier":"deny-write-html","description":"Denies the write_html command without any pre-configured scope.","commands":{"allow":[],"deny":["write_html"]}},"deny-write-image":{"identifier":"deny-write-image","description":"Denies the write_image command without any pre-configured scope.","commands":{"allow":[],"deny":["write_image"]}},"deny-write-secret":{"identifier":"deny-write-secret","description":"Denies the write_secret command without any pre-configured scope.","commands":{"allow":[],"deny":["write_secret"]}},"deny-write-text":{"identifier":"deny-write-text","description":"Denies the write_text command without any pre-configured scope.","commands":{"allow":[],"deny":["write_text"]}}},"permission_sets":{},"global_scope_schema":null},"core":{"default_permission":{"identifier":"default","description":"Default core plugins set.","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version","allow-identifier","allow-bundle-type","allow-register-listener","allow-remove-listener","allow-supports-multiple-windows"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-bundle-type":{"identifier":"allow-bundle-type","description":"Enables the bundle_type command without any pre-configured scope.","commands":{"allow":["bundle_type"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-exit":{"identifier":"allow-exit","description":"Enables the exit command without any pre-configured scope.","commands":{"allow":["exit"],"deny":[]}},"allow-fetch-data-store-identifiers":{"identifier":"allow-fetch-data-store-identifiers","description":"Enables the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":["fetch_data_store_identifiers"],"deny":[]}},"allow-identifier":{"identifier":"allow-identifier","description":"Enables the identifier command without any pre-configured scope.","commands":{"allow":["identifier"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","coLine truncated
{"clipboard-manager":{"default_permission":{"identifier":"default","description":"No features are enabled by default, as we believe\nthe clipboard can be inherently dangerous and it is \napplication specific if read and/or write access is needed.\n\nClipboard interaction needs to be explicitly enabled.\n","permissions":[]},"permissions":{"allow-clear":{"identifier":"allow-clear","description":"Enables the clear command without any pre-configured scope.","commands":{"allow":["clear"],"deny":[]}},"allow-read-image":{"identifier":"allow-read-image","description":"Enables the read_image command without any pre-configured scope.","commands":{"allow":["read_image"],"deny":[]}},"allow-read-text":{"identifier":"allow-read-text","description":"Enables the read_text command without any pre-configured scope.","commands":{"allow":["read_text"],"deny":[]}},"allow-write-html":{"identifier":"allow-write-html","description":"Enables the write_html command without any pre-configured scope.","commands":{"allow":["write_html"],"deny":[]}},"allow-write-image":{"identifier":"allow-write-image","description":"Enables the write_image command without any pre-configured scope.","commands":{"allow":["write_image"],"deny":[]}},"allow-write-secret":{"identifier":"allow-write-secret","description":"Enables the write_secret command without any pre-configured scope.","commands":{"allow":["write_secret"],"deny":[]}},"allow-write-text":{"identifier":"allow-write-text","description":"Enables the write_text command without any pre-configured scope.","commands":{"allow":["write_text"],"deny":[]}},"deny-clear":{"identifier":"deny-clear","description":"Denies the clear command without any pre-configured scope.","commands":{"allow":[],"deny":["clear"]}},"deny-read-image":{"identifier":"deny-read-image","description":"Denies the read_image command without any pre-configured scope.","commands":{"allow":[],"deny":["read_image"]}},"deny-read-text":{"identifier":"deny-read-text","description":"Denies the read_text command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text"]}},"deny-write-html":{"identifier":"deny-write-html","description":"Denies the write_html command without any pre-configured scope.","commands":{"allow":[],"deny":["write_html"]}},"deny-write-image":{"identifier":"deny-write-image","description":"Denies the write_image command without any pre-configured scope.","commands":{"allow":[],"deny":["write_image"]}},"deny-write-secret":{"identifier":"deny-write-secret","description":"Denies the write_secret command without any pre-configured scope.","commands":{"allow":[],"deny":["write_secret"]}},"deny-write-text":{"identifier":"deny-write-text","description":"Denies the write_text command without any pre-configured scope.","commands":{"allow":[],"deny":["write_text"]}}},"permission_sets":{},"global_scope_schema":null},"core":{"default_permission":{"identifier":"default","description":"Default core plugins set.","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version","allow-identifier","allow-bundle-type","allow-register-listener","allow-remove-listener","allow-supports-multiple-windows"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-bundle-type":{"identifier":"allow-bundle-type","description":"Enables the bundle_type command without any pre-configured scope.","commands":{"allow":["bundle_type"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-exit":{"identifier":"allow-exit","description":"Enables the exit command without any pre-configured scope.","commands":{"allow":["exit"],"deny":[]}},"allow-fetch-data-store-identifiers":{"identifier":"allow-fetch-data-store-identifiers","description":"Enables the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":["fetch_data_store_identifiers"],"deny":[]}},"allow-identifier":{"identifier":"allow-identifier","description":"Enables the identifier command without any pre-configured scope.","commands":{"allow":["identifier"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","coLine truncated
+1 -1
View File
@@ -1 +1 @@
{"desktop-capability":{"identifier":"desktop-capability","description":"","local":true,"windows":["main"],"permissions":["window-state:default","global-shortcut:default","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","shell:default"],"platforms":["macOS","windows","linux"]},"main-capabilities":{"identifier":"main-capabilities","description":"Capability for desktop window","local":true,"windows":["main"],"permissions":["store:allow-get","store:allow-set","store:allow-save","store:allow-clear","store:allow-delete","store:allow-keys","store:allow-load","updater:allow-check","updater:allow-download-and-install","updater:allow-download","updater:allow-install","notification:default","core:webview:allow-internal-toggle-devtools","core:window:allow-start-dragging","dialog:default","upload:allow-download","clipboard-manager:allow-write-text","shell:default","shell:allow-open"]},"mcp-bridge":{"identifier":"mcp-bridge","description":"Dev-only MCP bridge for UI automation","local":true,"windows":["main"],"permissions":["mcp-bridge:default"],"platforms":["macOS","windows","linux"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default","core:window:allow-set-fullscreen","shell:default"]}}
{"desktop-capability":{"identifier":"desktop-capability","description":"","local":true,"windows":["main"],"permissions":["window-state:default","global-shortcut:default","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","shell:default"],"platforms":["macOS","windows","linux"]},"main-capabilities":{"identifier":"main-capabilities","description":"Capability for desktop window","local":true,"windows":["main"],"permissions":["store:allow-get","store:allow-set","store:allow-save","store:allow-clear","store:allow-delete","store:allow-keys","store:allow-load","updater:allow-check","updater:allow-download-and-install","updater:allow-download","updater:allow-install","notification:default","core:webview:allow-internal-toggle-devtools","core:window:allow-start-dragging","dialog:default","upload:allow-download","clipboard-manager:allow-write-text","shell:default","shell:allow-open"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default","core:window:allow-set-fullscreen","shell:default"]}}
-162
View File
@@ -2666,168 +2666,6 @@
"const": "log:deny-log",
"markdownDescription": "Denies the log command without any pre-configured scope."
},
{
"description": "Default permissions for MCP Bridge plugin\n#### This default permission set includes:\n\n- `allow-capture-native-screenshot`\n- `allow-emit-event`\n- `allow-execute-command`\n- `allow-execute-js`\n- `allow-get-backend-state`\n- `allow-get-ipc-events`\n- `allow-get-window-info`\n- `allow-list-windows`\n- `allow-report-ipc-event`\n- `allow-request-script-injection`\n- `allow-script-result`\n- `allow-start-ipc-monitor`\n- `allow-stop-ipc-monitor`",
"type": "string",
"const": "mcp-bridge:default",
"markdownDescription": "Default permissions for MCP Bridge plugin\n#### This default permission set includes:\n\n- `allow-capture-native-screenshot`\n- `allow-emit-event`\n- `allow-execute-command`\n- `allow-execute-js`\n- `allow-get-backend-state`\n- `allow-get-ipc-events`\n- `allow-get-window-info`\n- `allow-list-windows`\n- `allow-report-ipc-event`\n- `allow-request-script-injection`\n- `allow-script-result`\n- `allow-start-ipc-monitor`\n- `allow-stop-ipc-monitor`"
},
{
"description": "Enables the capture_native_screenshot command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-capture-native-screenshot",
"markdownDescription": "Enables the capture_native_screenshot command without any pre-configured scope."
},
{
"description": "Enables the emit_event command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-emit-event",
"markdownDescription": "Enables the emit_event command without any pre-configured scope."
},
{
"description": "Enables the execute_command command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-execute-command",
"markdownDescription": "Enables the execute_command command without any pre-configured scope."
},
{
"description": "Enables the execute_js command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-execute-js",
"markdownDescription": "Enables the execute_js command without any pre-configured scope."
},
{
"description": "Enables the get_backend_state command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-get-backend-state",
"markdownDescription": "Enables the get_backend_state command without any pre-configured scope."
},
{
"description": "Enables the get_ipc_events command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-get-ipc-events",
"markdownDescription": "Enables the get_ipc_events command without any pre-configured scope."
},
{
"description": "Enables the get_window_info command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-get-window-info",
"markdownDescription": "Enables the get_window_info command without any pre-configured scope."
},
{
"description": "Enables the list_windows command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-list-windows",
"markdownDescription": "Enables the list_windows command without any pre-configured scope."
},
{
"description": "Enables the report_ipc_event command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-report-ipc-event",
"markdownDescription": "Enables the report_ipc_event command without any pre-configured scope."
},
{
"description": "Enables the request_script_injection command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-request-script-injection",
"markdownDescription": "Enables the request_script_injection command without any pre-configured scope."
},
{
"description": "Enables the script_result command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-script-result",
"markdownDescription": "Enables the script_result command without any pre-configured scope."
},
{
"description": "Enables the start_ipc_monitor command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-start-ipc-monitor",
"markdownDescription": "Enables the start_ipc_monitor command without any pre-configured scope."
},
{
"description": "Enables the stop_ipc_monitor command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-stop-ipc-monitor",
"markdownDescription": "Enables the stop_ipc_monitor command without any pre-configured scope."
},
{
"description": "Denies the capture_native_screenshot command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-capture-native-screenshot",
"markdownDescription": "Denies the capture_native_screenshot command without any pre-configured scope."
},
{
"description": "Denies the emit_event command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-emit-event",
"markdownDescription": "Denies the emit_event command without any pre-configured scope."
},
{
"description": "Denies the execute_command command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-execute-command",
"markdownDescription": "Denies the execute_command command without any pre-configured scope."
},
{
"description": "Denies the execute_js command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-execute-js",
"markdownDescription": "Denies the execute_js command without any pre-configured scope."
},
{
"description": "Denies the get_backend_state command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-get-backend-state",
"markdownDescription": "Denies the get_backend_state command without any pre-configured scope."
},
{
"description": "Denies the get_ipc_events command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-get-ipc-events",
"markdownDescription": "Denies the get_ipc_events command without any pre-configured scope."
},
{
"description": "Denies the get_window_info command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-get-window-info",
"markdownDescription": "Denies the get_window_info command without any pre-configured scope."
},
{
"description": "Denies the list_windows command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-list-windows",
"markdownDescription": "Denies the list_windows command without any pre-configured scope."
},
{
"description": "Denies the report_ipc_event command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-report-ipc-event",
"markdownDescription": "Denies the report_ipc_event command without any pre-configured scope."
},
{
"description": "Denies the request_script_injection command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-request-script-injection",
"markdownDescription": "Denies the request_script_injection command without any pre-configured scope."
},
{
"description": "Denies the script_result command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-script-result",
"markdownDescription": "Denies the script_result command without any pre-configured scope."
},
{
"description": "Denies the start_ipc_monitor command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-start-ipc-monitor",
"markdownDescription": "Denies the start_ipc_monitor command without any pre-configured scope."
},
{
"description": "Denies the stop_ipc_monitor command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-stop-ipc-monitor",
"markdownDescription": "Denies the stop_ipc_monitor command without any pre-configured scope."
},
{
"description": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n\n#### This default permission set includes:\n\n- `allow-is-permission-granted`\n- `allow-request-permission`\n- `allow-notify`\n- `allow-register-action-types`\n- `allow-register-listener`\n- `allow-remove-listener`\n- `allow-cancel`\n- `allow-get-pending`\n- `allow-remove-active`\n- `allow-get-active`\n- `allow-check-permissions`\n- `allow-show`\n- `allow-batch`\n- `allow-list-channels`\n- `allow-delete-channel`\n- `allow-create-channel`\n- `allow-permission-state`",
"type": "string",
+6 -8
View File
@@ -3,17 +3,15 @@
use tauri_plugin_log::{fern::colors::ColoredLevelConfig, Target, TargetKind};
fn main() {
let mut builder = tauri::Builder::default();
let builder = tauri::Builder::default();
// Dev-only MCP bridge: `pnpm tauri dev -- --features mcp-bridge`.
#[cfg(all(debug_assertions, feature = "mcp-bridge"))]
{
builder = builder.plugin(
tauri_plugin_mcp_bridge::Builder::new()
.bind_address("127.0.0.1")
.build(),
);
}
let builder = builder.plugin(
tauri_plugin_mcp_bridge::Builder::new()
.bind_address("127.0.0.1")
.build(),
);
builder
.plugin(tauri_plugin_shell::init())