mcp-server-tauri  by hypothesi

AI-powered context and control for Tauri v2 application development

Created 7 months ago
264 stars

Top 96.5% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides an Model Context Protocol (MCP) server and a Tauri v2 plugin designed to empower AI assistants with deep insights and control over Tauri application development. It enables AI agents like Claude, Cursor, and Windsurf to build, test, and debug applications by providing rich context such as screenshots, DOM state, and console logs, along with tools for direct interaction. The primary benefit is significantly enhanced AI-driven development workflows for Tauri applications.

How It Works

The architecture consists of an MCP server (Node.js) that communicates via WebSocket with a Rust-based Tauri plugin (tauri-plugin-mcp-bridge) integrated into the target Tauri application. This plugin exposes a suite of capabilities, including UI automation (screenshots, clicks, element inspection), IPC monitoring, log streaming, and mobile device listing, directly to the MCP server. The server then translates these capabilities into the MCP protocol, allowing AI assistants to leverage them for understanding and manipulating the Tauri app's state and behavior. This approach offers native integration without relying on external drivers like Selenium or Playwright, providing rich, real-time context directly to the AI.

Quick Start & Requirements

  • Prerequisites: Node.js 20+, npm, Rust and Cargo, Tauri CLI (npm install -g @tauri-apps/cli@next). For mobile development: Xcode (macOS) or Android SDK.
  • Installation: Install the server using npx -y install-mcp @hypothesi/tauri-mcp-server --client <client_name> (e.g., claude-code, cursor, vscode). The plugin setup can be automated via AI assistant commands (e.g., /setup) or manual configuration.
  • Links: Full Documentation: https://hypothesi.github.io/mcp-server-tauri

Highlighted Details

  • Comprehensive Tooling: Offers 21 tools covering UI automation (screenshots, element finding, visual picker, JavaScript execution), IPC monitoring and emission, log streaming (console, logcat, iOS, system), and mobile device listing.
  • AI-Native Context: Provides AI assistants with screenshots, DOM snapshots, and real-time logs for a deep understanding of application state.
  • Cross-Platform Support: Designed to function across Linux, Windows, macOS, Android, and iOS environments.
  • Tauri v2 Integration: Specifically built for and supports the latest Tauri v2 framework.

Maintenance & Community

The project is maintained by "hypothesi". Specific details regarding community channels (like Discord/Slack) or a broad contributor base are not explicitly detailed in the README. Release commands for both the plugin and server are provided, indicating active development.

Licensing & Compatibility

The project is released under the MIT License, which is permissive and allows for commercial use and integration into closed-source projects.

Limitations & Caveats

The project includes a disclaimer stating, "This MCP was developed using agentic coding tools. It may contain bugs." While functional for Tauri v2 development, users should be aware of potential instability due to its development methodology.

Health Check
Last Commit

6 days ago

Responsiveness

Inactive

Pull Requests (30d)
3
Issues (30d)
2
Star History
32 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.