@hypothesi/tauri-plugin-mcp-bridge 0.2.0 → 0.2.2

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 CHANGED
@@ -7,13 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.2] - 2025-12-01
11
+
12
+ ### Fixed
13
+ - Fix screenshot crash on iOS by properly handling NSRunLoop and avoiding unsafe pointer casts
14
+
15
+ ## [0.2.1] - 2025-11-30
16
+
17
+ ### Fixed
18
+ - Make Tauri APIs a peerDependency instead of a direct dependency
19
+
20
+ ## [0.2.0] - 2025-11-29
21
+
22
+ ### Added
23
+ - Multi-window support: `list_windows` command and `windowId` parameter for targeting specific webviews
24
+
10
25
  ## [0.1.3] - 2025-11-26
11
26
 
12
27
  _No changes to this package._
13
28
 
14
29
  ## [0.1.2] - 2025-11-26
15
30
 
16
- _No changes to this package._
31
+ ### Fixed
32
+ - Add missing system dependencies to Rust release pipeline
17
33
 
18
34
  ## [0.1.1] - 2025-11-26
19
35
 
package/LICENSE CHANGED
@@ -19,21 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
-
23
- ---
24
-
25
- Apache License, Version 2.0
26
-
27
- Copyright (c) 2025 Fireside Development, LLC
28
-
29
- Licensed under the Apache License, Version 2.0 (the "License");
30
- you may not use this file except in compliance with the License.
31
- You may obtain a copy of the License at
32
-
33
- http://www.apache.org/licenses/LICENSE-2.0
34
-
35
- Unless required by applicable law or agreed to in writing, software
36
- distributed under the License is distributed on an "AS IS" BASIS,
37
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
38
- See the License for the specific language governing permissions and
39
- limitations under the License.
package/README.md CHANGED
@@ -1,22 +1,37 @@
1
1
  # Tauri MCP Bridge Plugin
2
2
 
3
3
  [![Crates.io](https://img.shields.io/crates/v/tauri-plugin-mcp-bridge.svg)](https://crates.io/crates/tauri-plugin-mcp-bridge)
4
+ [![npm](https://img.shields.io/npm/v/@hypothesi/tauri-plugin-mcp-bridge.svg)](https://www.npmjs.com/package/@hypothesi/tauri-plugin-mcp-bridge)
4
5
  [![Documentation](https://docs.rs/tauri-plugin-mcp-bridge/badge.svg)](https://docs.rs/tauri-plugin-mcp-bridge)
5
6
  [![License](https://img.shields.io/crates/l/tauri-plugin-mcp-bridge.svg)](https://github.com/hypothesi/mcp-server-tauri)
6
7
 
7
8
  A Tauri plugin that bridges the Model Context Protocol (MCP) with Tauri applications, enabling deep inspection and interaction with Tauri's IPC layer, backend state, and window management.
8
9
 
10
+ > **📦 This npm package is optional.** It provides TypeScript bindings for calling the plugin from your app's frontend code. If you're just using the [MCP Server for Tauri](https://github.com/hypothesi/mcp-server-tauri), you only need the **Rust crate** (`tauri-plugin-mcp-bridge`)—the MCP server communicates with it directly via WebSocket.
11
+
9
12
  ## Overview
10
13
 
11
14
  The MCP Bridge plugin extends MCP servers with direct access to Tauri internals. It provides real-time IPC monitoring, window state inspection, backend state access, and event emission capabilities.
12
15
 
13
16
  ## Installation
14
17
 
15
- Add this to your `Cargo.toml`:
18
+ ```bash
19
+ cargo add tauri-plugin-mcp-bridge
20
+ ```
21
+
22
+ Or add manually to your `src-tauri/Cargo.toml`:
16
23
 
17
24
  ```toml
18
25
  [dependencies]
19
- tauri-plugin-mcp-bridge = "0.1"
26
+ tauri-plugin-mcp-bridge = "0.2"
27
+ ```
28
+
29
+ ### Optional: TypeScript Bindings
30
+
31
+ If you want to call the plugin from your app's frontend code (not required for MCP server functionality):
32
+
33
+ ```bash
34
+ npm install --save-exact @hypothesi/tauri-plugin-mcp-bridge
20
35
  ```
21
36
 
22
37
  ## Usage
@@ -24,11 +39,15 @@ tauri-plugin-mcp-bridge = "0.1"
24
39
  Register the plugin in your Tauri application:
25
40
 
26
41
  ```rust
27
- use tauri_plugin_mcp_bridge;
28
-
29
42
  fn main() {
30
- tauri::Builder::default()
31
- .plugin(tauri_plugin_mcp_bridge::init())
43
+ let mut builder = tauri::Builder::default();
44
+
45
+ #[cfg(debug_assertions)]
46
+ {
47
+ builder = builder.plugin(tauri_plugin_mcp_bridge::init());
48
+ }
49
+
50
+ builder
32
51
  .run(tauri::generate_context!())
33
52
  .expect("error while running tauri application");
34
53
  }
@@ -227,17 +246,17 @@ npm test
227
246
 
228
247
  ## Permissions
229
248
 
230
- The plugin requires the following permissions to be configured in your Tauri capabilities:
249
+ Add the plugin's default permission to your Tauri capabilities file (`src-tauri/capabilities/default.json`):
231
250
 
232
- - `execute_command`
233
- - `get_window_info`
234
- - `get_backend_state`
235
- - `emit_event`
236
- - `start_ipc_monitor`
237
- - `stop_ipc_monitor`
238
- - `get_ipc_events`
251
+ ```json
252
+ {
253
+ "permissions": [
254
+ "mcp-bridge:default"
255
+ ]
256
+ }
257
+ ```
239
258
 
240
- These are typically auto-configured when using the plugin.
259
+ This grants all permissions required by the MCP server. The plugin is designed to work as a complete unit—partial permissions are not recommended as the MCP server expects all commands to be available.
241
260
 
242
261
  ## API Documentation
243
262
 
@@ -252,9 +271,4 @@ Visit the [docs.rs documentation](https://docs.rs/tauri-plugin-mcp-bridge) or bu
252
271
 
253
272
  ## License
254
273
 
255
- This project is licensed under either of:
256
-
257
- - MIT License ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
258
- - Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
259
-
260
- at your option.
274
+ MIT © [hypothesi](https://github.com/hypothesi)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypothesi/tauri-plugin-mcp-bridge",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "JavaScript bindings for @hypothesi/tauri-plugin-mcp-bridge - MCP Bridge plugin for Tauri",
5
5
  "type": "module",
6
6
  "main": "./dist-js/index.js",
@@ -37,12 +37,13 @@
37
37
  "ipc",
38
38
  "monitoring"
39
39
  ],
40
- "dependencies": {
41
- "@tauri-apps/api": "^2.0.0"
42
- },
43
40
  "devDependencies": {
41
+ "@tauri-apps/api": "^2.0.0",
44
42
  "typescript": "^5.6.3"
45
43
  },
44
+ "peerDependencies": {
45
+ "@tauri-apps/api": "^2.0.0"
46
+ },
46
47
  "publishConfig": {
47
48
  "access": "public"
48
49
  }