HM

hypothesi/mcp-server-tauri

Developer tools
269 stars 0 forks 품질 71 트렌드 71

A that enables AI assistants like Claude, Cursor, and Windsurf to build, test, and debug Tauri® v2 applications.

개요

A that enables AI assistants like Claude, Cursor, and Windsurf to build, test, and debug Tauri® v2 applications.

README


A Model Context Protocol (MCP) server that enables AI assistants like Claude, Cursor, and Windsurf to build, test, and debug Tauri® v2 applications. Screenshots, DOM state, and console logs from your running app give the AI rich context to understand what’s happening—and tools to interact with it.

✨ Features

Category Capabilities
🎯 UI Automation Screenshots, clicks, typing, scrolling, element finding, visual element picker
🔍 IPC Monitoring Capture and inspect Tauri IPC calls in real-time
📱 Mobile Dev List iOS simulators & Android emulators
📋 Logs Stream console, Android logcat, iOS, and system logs

Disclaimer: This MCP was developed using agentic coding tools. It may contain bugs.

🚀 Quick Start

Prerequisites

  • Node.js 20+ and npm
  • Rust and Cargo (for Tauri development)
  • Tauri CLI: npm install -g @tauri-apps/cli@next
  • For mobile: Xcode (macOS) or Android SDK

1. Configure Your AI Assistant

Use aix to add the server to your AI assistant:

npx -y @a1st/aix add mcp tauri --command 'npx @hypothesi/tauri-mcp-server' --user

Supported clients: claude-code, cursor, windsurf, vscode, cline, roo-cline, claude, zed, goose, warp, codex

[!TIP] aix automatically detects your installed AI assistants and configures them.

Restart your AI assistant after adding the configuration.

CLI Usage

If you want to call the tools directly from a terminal instead of from an MCP client:

npm install -g @hypothesi/tauri-mcp-cli
tauri-mcp driver-session start --port 9223
tauri-mcp webview-screenshot --file screenshot.png

The CLI uses MCPorter keep-alive support so driver_session state survives across separate commands.

2. Set Up the MCP Bridge Plugin

Ask your AI assistant to help configure your Tauri app:

“Help me set up the Tauri MCP Bridge plugin”

Your AI will:

  1. Examine your project to see what’s already configured
  2. Show you what changes are needed (Cargo.toml, plugin registration, etc.)
  3. Ask for your permission before making any modifications

That’s it! The AI handles all the setup details while keeping you in control. 🎉


💬 Slash Commands (Prompts)

Command Description
/setup Set up or update the MCP bridge plugin in your Tauri project
/fix-webview-errors Find and fix JavaScript errors in your webview
/select Visually select an element in your app — returns metadata and screenshot

Just type the command in your AI assistant to start a guided workflow.


🧰 Available Tools (21 total)


🏗️ Architecture

┌─────────────────────────────────────────────────────────────────┐
│                        AI Assistant                             │
│                  (Claude, Cursor, Windsurf)                     │
└─────────────────────────┬───────────────────────────────────────┘
                          │ MCP Protocol (stdio)
                          ▼
┌─────────────────────────────────────────────────────────────────┐
│                     MCP Server (Node.js)                        │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────────────┐   │
│  │   Manager    │  │    Driver    │  │      Monitor         │   │
│  │  CLI/Config  │  │ UI Automation│  │   Logs/IPC Events    │   │
│  └──────────────┘  └──────┬───────┘  └──────────────────────┘   │
└─────────────────────────────┼───────────────────────────────────┘
                              │ WebSocket (port 9223)
                              ▼
┌─────────────────────────────────────────────────────────────────┐
│                      Tauri Application                          │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │              MCP Bridge Plugin (Rust)                    │   │
│  │         IPC Commands • Events • Backend State            │   │
│  └──────────────────────────────────────────────────────────┘   │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │                    Webview (DOM/UI)                      │   │
│  └──────────────────────────────────────────────────────────┘   │
└─────────────────────────────────────────────────────────────────┘

Why this approach?

  • Rich AI context — Screenshots, DOM, and logs help the AI understand your app’s state
  • Cross-platform — Works on Linux, Windows, macOS, Android, and iOS
  • No external drivers — No Selenium, Playwright, or browser automation needed
  • Native integration — Direct access to Tauri’s IPC and backend

🧑‍💻 Development

# Clone and install
git clone https://github.com/hypothesi/mcp-server-tauri.git
cd mcp-server-tauri
npm install

# Build all packages
npm run build

# Run tests
npm test

# Development mode
npm run dev -w @hypothesi/tauri-mcp-server

📚 Documentation


🤝 Contributing

Contributions are welcome! Please:

  1. Follow existing code patterns
  2. Add tests for new features
  3. Update documentation
  4. Ensure npm test and npm run standards pass

Other Notes

This project is tested with BrowserStack.

📄 License

MIT © hypothesi


Trademark Notice

TAURI® is a registered trademark of The Tauri Programme within the Commons Conservancy. https://tauri.app/

This project is not affiliated with, endorsed by, or sponsored by The Tauri Programme within the Commons Conservancy.

View this README on GitHub

설치

npx -y @a1st/aix add mcp tauri --command 'npx @hypothesi/tauri-mcp-server' --user