@hypothesi/tauri-plugin-mcp-bridge 0.1.3 → 0.2.1

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.
Files changed (4) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/LICENSE +0 -18
  3. package/README.md +30 -20
  4. package/package.json +48 -47
package/CHANGELOG.md CHANGED
@@ -7,13 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.0] - 2025-11-29
11
+
12
+ ### Added
13
+ - Multi-window support: `list_windows` command and `windowId` parameter for targeting specific webviews
14
+
10
15
  ## [0.1.3] - 2025-11-26
11
16
 
12
17
  _No changes to this package._
13
18
 
14
19
  ## [0.1.2] - 2025-11-26
15
20
 
16
- _No changes to this package._
21
+ ### Fixed
22
+ - Add missing system dependencies to Rust release pipeline
17
23
 
18
24
  ## [0.1.1] - 2025-11-26
19
25
 
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,34 +1,49 @@
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
+ Add the Rust crate to your `src-tauri/Cargo.toml`:
16
19
 
17
20
  ```toml
18
21
  [dependencies]
19
22
  tauri-plugin-mcp-bridge = "0.1"
20
23
  ```
21
24
 
25
+ ### Optional: TypeScript Bindings
26
+
27
+ If you want to call the plugin from your app's frontend code (not required for MCP server functionality):
28
+
29
+ ```bash
30
+ npm install --save-exact @hypothesi/tauri-plugin-mcp-bridge
31
+ ```
32
+
22
33
  ## Usage
23
34
 
24
35
  Register the plugin in your Tauri application:
25
36
 
26
37
  ```rust
27
- use tauri_plugin_mcp_bridge;
28
-
29
38
  fn main() {
30
- tauri::Builder::default()
31
- .plugin(tauri_plugin_mcp_bridge::init())
39
+ let mut builder = tauri::Builder::default();
40
+
41
+ #[cfg(debug_assertions)]
42
+ {
43
+ builder = builder.plugin(tauri_plugin_mcp_bridge::init());
44
+ }
45
+
46
+ builder
32
47
  .run(tauri::generate_context!())
33
48
  .expect("error while running tauri application");
34
49
  }
@@ -227,17 +242,17 @@ npm test
227
242
 
228
243
  ## Permissions
229
244
 
230
- The plugin requires the following permissions to be configured in your Tauri capabilities:
245
+ Add the plugin's default permission to your Tauri capabilities file (`src-tauri/capabilities/default.json`):
231
246
 
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`
247
+ ```json
248
+ {
249
+ "permissions": [
250
+ "mcp-bridge:default"
251
+ ]
252
+ }
253
+ ```
239
254
 
240
- These are typically auto-configured when using the plugin.
255
+ 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
256
 
242
257
  ## API Documentation
243
258
 
@@ -252,9 +267,4 @@ Visit the [docs.rs documentation](https://docs.rs/tauri-plugin-mcp-bridge) or bu
252
267
 
253
268
  ## License
254
269
 
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.
270
+ MIT © [hypothesi](https://github.com/hypothesi)
package/package.json CHANGED
@@ -1,49 +1,50 @@
1
1
  {
2
- "name": "@hypothesi/tauri-plugin-mcp-bridge",
3
- "version": "0.1.3",
4
- "description": "JavaScript bindings for @hypothesi/tauri-plugin-mcp-bridge - MCP Bridge plugin for Tauri",
5
- "type": "module",
6
- "main": "./dist-js/index.js",
7
- "types": "./dist-js/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "import": "./dist-js/index.js",
11
- "types": "./dist-js/index.d.ts"
12
- }
13
- },
14
- "scripts": {
15
- "build": "tsc --project guest-js/tsconfig.json",
16
- "prepublishOnly": "npm run build"
17
- },
18
- "files": [
19
- "dist-js",
20
- "guest-js",
21
- "README.md",
22
- "CHANGELOG.md",
23
- "LICENSE",
24
- "package.json"
25
- ],
26
- "repository": {
27
- "type": "git",
28
- "url": "https://github.com/hypothesi/mcp-server-tauri.git",
29
- "directory": "packages/tauri-plugin-mcp-bridge"
30
- },
31
- "author": "hypothesi",
32
- "license": "MIT",
33
- "keywords": [
34
- "tauri",
35
- "tauri-plugin",
36
- "mcp",
37
- "ipc",
38
- "monitoring"
39
- ],
40
- "dependencies": {
41
- "@tauri-apps/api": "^2.0.0"
42
- },
43
- "devDependencies": {
44
- "typescript": "^5.6.3"
45
- },
46
- "publishConfig": {
47
- "access": "public"
48
- }
2
+ "name": "@hypothesi/tauri-plugin-mcp-bridge",
3
+ "version": "0.2.1",
4
+ "description": "JavaScript bindings for @hypothesi/tauri-plugin-mcp-bridge - MCP Bridge plugin for Tauri",
5
+ "type": "module",
6
+ "main": "./dist-js/index.js",
7
+ "types": "./dist-js/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist-js/index.js",
11
+ "types": "./dist-js/index.d.ts"
12
+ }
13
+ },
14
+ "scripts": {
15
+ "build": "tsc --project guest-js/tsconfig.json",
16
+ "prepublishOnly": "npm run build"
17
+ },
18
+ "files": [
19
+ "dist-js",
20
+ "guest-js",
21
+ "README.md",
22
+ "CHANGELOG.md",
23
+ "LICENSE",
24
+ "package.json"
25
+ ],
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/hypothesi/mcp-server-tauri.git",
29
+ "directory": "packages/tauri-plugin-mcp-bridge"
30
+ },
31
+ "author": "hypothesi",
32
+ "license": "MIT",
33
+ "keywords": [
34
+ "tauri",
35
+ "tauri-plugin",
36
+ "mcp",
37
+ "ipc",
38
+ "monitoring"
39
+ ],
40
+ "devDependencies": {
41
+ "@tauri-apps/api": "^2.0.0",
42
+ "typescript": "^5.6.3"
43
+ },
44
+ "peerDependencies": {
45
+ "@tauri-apps/api": "^2.0.0"
46
+ },
47
+ "publishConfig": {
48
+ "access": "public"
49
+ }
49
50
  }