@hypothesi/tauri-plugin-mcp-bridge 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +20 -26
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.3.0] - 2025-12-02
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- Native Android screenshot support via JNI using WebView.draw()
|
|
14
|
+
|
|
15
|
+
## [0.2.2] - 2025-12-01
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- Fix screenshot crash on iOS by properly handling NSRunLoop and avoiding unsafe pointer casts
|
|
19
|
+
|
|
20
|
+
## [0.2.1] - 2025-11-30
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
- Make Tauri APIs a peerDependency instead of a direct dependency
|
|
24
|
+
|
|
10
25
|
## [0.2.0] - 2025-11-29
|
|
11
26
|
|
|
12
27
|
### Added
|
package/README.md
CHANGED
|
@@ -15,11 +15,15 @@ The MCP Bridge plugin extends MCP servers with direct access to Tauri internals.
|
|
|
15
15
|
|
|
16
16
|
## Installation
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
```bash
|
|
19
|
+
cargo add tauri-plugin-mcp-bridge
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Or add manually to your `src-tauri/Cargo.toml`:
|
|
19
23
|
|
|
20
24
|
```toml
|
|
21
25
|
[dependencies]
|
|
22
|
-
tauri-plugin-mcp-bridge = "0.
|
|
26
|
+
tauri-plugin-mcp-bridge = "0.2"
|
|
23
27
|
```
|
|
24
28
|
|
|
25
29
|
### Optional: TypeScript Bindings
|
|
@@ -113,46 +117,36 @@ await invoke('plugin:mcp-bridge|emit_event', {
|
|
|
113
117
|
|
|
114
118
|
## MCP Server Integration
|
|
115
119
|
|
|
116
|
-
This plugin is part of the larger MCP Server for Tauri, which provides **
|
|
117
|
-
|
|
118
|
-
### Project Management Tools (4)
|
|
119
|
-
|
|
120
|
-
1. **tauri_run_command** - Run any Tauri CLI command with full flexibility
|
|
121
|
-
2. **tauri_read_config** - Read Tauri configuration files (including platform-specific configs)
|
|
122
|
-
3. **tauri_write_config** - Write to Tauri configuration files with validation
|
|
123
|
-
4. **tauri_get_docs** - Get Tauri documentation (LLM Cheat Sheet) for the detected project version
|
|
120
|
+
This plugin is part of the larger MCP Server for Tauri, which provides **16 total MCP tools** for comprehensive Tauri development and testing. The plugin specifically enables the following tools:
|
|
124
121
|
|
|
125
|
-
### Mobile Development Tools (
|
|
122
|
+
### Mobile Development Tools (1)
|
|
126
123
|
|
|
127
124
|
1. **tauri_list_devices** - List connected Android devices and iOS simulators
|
|
128
|
-
2. **tauri_launch_emulator** - Launch an Android AVD or iOS Simulator
|
|
129
125
|
|
|
130
|
-
### UI Automation & WebView Tools (
|
|
126
|
+
### UI Automation & WebView Tools (10)
|
|
131
127
|
|
|
132
128
|
Tools for UI automation and webview interaction via the plugin's WebSocket connection:
|
|
133
129
|
|
|
134
|
-
1. **tauri_driver_session** - Manage automation session (start or
|
|
135
|
-
2. **
|
|
136
|
-
3. **
|
|
137
|
-
4. **
|
|
138
|
-
5. **tauri_webview_interact** - Perform gestures (click, double-click, long-press, swipe, scroll)
|
|
130
|
+
1. **tauri_driver_session** - Manage automation session (start, stop, or status)
|
|
131
|
+
2. **tauri_list_windows** - List all webview windows with details
|
|
132
|
+
3. **tauri_webview_find_element** - Find an element in the webview
|
|
133
|
+
4. **tauri_read_logs** - Read logs (console, Android logcat, iOS, system)
|
|
134
|
+
5. **tauri_webview_interact** - Perform gestures (click, double-click, long-press, swipe, scroll, focus)
|
|
139
135
|
6. **tauri_webview_screenshot** - Take screenshots of the entire webview
|
|
140
136
|
7. **tauri_webview_keyboard** - Type text or simulate keyboard events with optional modifiers
|
|
141
137
|
8. **tauri_webview_wait_for** - Wait for element selectors, text content, or IPC events
|
|
142
138
|
9. **tauri_webview_get_styles** - Get computed CSS styles for element(s)
|
|
143
139
|
10. **tauri_webview_execute_js** - Execute arbitrary JavaScript code in the webview context
|
|
144
|
-
11. **tauri_webview_focus_element** - Focus on a specific element in the webview
|
|
145
140
|
|
|
146
|
-
### IPC
|
|
141
|
+
### IPC Tools (5)
|
|
147
142
|
|
|
148
143
|
Tools that directly use the MCP Bridge plugin's Rust backend:
|
|
149
144
|
|
|
150
|
-
1. **
|
|
151
|
-
2. **
|
|
152
|
-
3. **
|
|
153
|
-
4. **
|
|
154
|
-
5. **
|
|
155
|
-
6. **tauri_plugin_get_backend_state** - Get backend application state and metadata
|
|
145
|
+
1. **tauri_ipc_execute_command** - Execute any Tauri IPC command
|
|
146
|
+
2. **tauri_ipc_monitor** - Manage IPC monitoring (start or stop)
|
|
147
|
+
3. **tauri_ipc_get_captured** - Retrieve captured IPC traffic with optional filtering
|
|
148
|
+
4. **tauri_ipc_emit_event** - Emit custom Tauri events for testing event handlers
|
|
149
|
+
5. **tauri_ipc_get_backend_state** - Get backend application state and metadata
|
|
156
150
|
|
|
157
151
|
## Architecture
|
|
158
152
|
|
package/package.json
CHANGED