modelscope·@Radek44/mcp-tauri-automation
暂无描述。
Automate Tauri desktop apps with AI. An MCP server that lets Claude Code test, debug, and interact with your Tauri applications through natural language.
Testing Tauri apps usually means:
With this MCP server:
1. Install tauri-driver
cargo install tauri-driver
2. Install this MCP server
git clone <repo-url>
cd mcp-tauri-automation
npm install && npm run build
3. Add to your MCP config
<details> <summary><b>Claude Code (Recommended)</b></summary>Use the Claude Code CLI to register the server:
# Simplest setup - works with any Tauri app
# (you'll specify which app to launch when you ask Claude)
claude mcp add --transport stdio tauri-automation \
--scope user \
-- node /absolute/path/to/mcp-tauri-automation/dist/index.js
Replace /absolute/path/to/mcp-tauri-automation with the actual path where you cloned this repo. For example:
~/projects/mcp-tauri-automation/dist/index.jsC:/Users/YourName/projects/mcp-tauri-automation/dist/index.jsOptional: Set a default app path
If you mainly work with one Tauri app, you can set it as the default:
claude mcp add --transport stdio tauri-automation \
--env TAURI_APP_PATH=/path/to/your-app/src-tauri/target/debug/your-app \
--scope user \
-- node /absolute/path/to/mcp-tauri-automation/dist/index.js
** Can I test multiple apps?** Yes! The
TAURI_APP_PATHis just a convenience default. You can still launch any other Tauri app by specifying its path when you ask Claude (e.g., "Launch my calculator app at ~/projects/calculator-app/target/debug/calculator").
Advanced: Customize defaults
claude mcp add --transport stdio tauri-automation \
--env TAURI_SCREENSHOT_DIR=./my-screenshots \
--env TAURI_DEFAULT_TIMEOUT=10000 \
--scope user \
-- node /absolute/path/to/mcp-tauri-automation/dist/index.js
All environment variables have sensible defaults and are optional:
TAURI_APP_PATH: No default (specify when launching, or set here for convenience)TAURI_SCREENSHOT_DIR: ./screenshots (relative to where you run Claude Code)TAURI_WEBDRIVER_PORT: 4444 (where tauri-driver listens)TAURI_DEFAULT_TIMEOUT: 5000 ms (how long to wait for UI elements)Managing servers:
# List all configured servers
claude mcp list
# Get details for a specific server
claude mcp get tauri-automation
# Remove a server
claude mcp remove tauri-automation
# Inside Claude Code, check server status
/mcp
Alternative: JSON format
<details> <summary>Click to see JSON configuration format</summary>claude mcp add-json tauri-automation '{
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/mcp-tauri-automation/dist/index.js"],
"env": {
"TAURI_APP_PATH": "/optional/default/app/path"
}
}'
</details>
Scope options:
--scope user: Available to you across all projects (recommended)--scope local (default): Available only to you in the current project--scope project: Shared with everyone in the project via .mcp.json fileEdit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"tauri-automation": {
"command": "node",
"args": ["/absolute/path/to/mcp-tauri-automation/dist/index.js"]
}
}
}
Optional: Add environment variables
{
"mcpServers": {
"tauri-automation": {
"command": "node",
"args": ["/absolute/path/to/mcp-tauri-automation/dist/index.js"],
"env": {
"TAURI_APP_PATH": "/path/to/your/default/app"
}
}
}
}
</details>
<details>
<summary><b>Claude Code (Manual Config)</b></summary>
Edit ~/.config/claude-code/mcp_config.json:
{
"mcpServers": {
"tauri-automation": {
"command": "node",
"args": ["/absolute/path/to/mcp-tauri-automation/dist/index.js"]
}
}
}
Optional: Add environment variables
{
"mcpServers": {
"tauri-automation": {
"command": "node",
"args": ["/absolute/path/to/mcp-tauri-automation/dist/index.js"],
"env": {
"TAURI_APP_PATH": "/path/to/your/default/app"
}
}
}
}
Note: Using the claude mcp add command (see "Claude Code (Recommended)" above) is easier and less error-prone than manual editing.
Any MCP client that supports stdio transport can use this server. Pass the environment variables via the client's configuration mechanism.
</details>4. Start tauri-driver
Before using the MCP server, start tauri-driver in a separate terminal:
# In a separate terminal, keep this running
tauri-driver
Why is tauri-driver separate?
tauri-driveris a standalone WebDriver server that controls Tauri apps. Keeping it separate means:
- You can restart your MCP server without losing app state
- Multiple tools can connect to the same driver instance
- It runs on a known port (4444) that's easy to configure
Future improvement: This MCP server could be enhanced to auto-start tauri-driver if it's not running. Interested in contributing? See Contributing below!
5. Use with Claude
Launch my Tauri app, click the "Start" button, and take a screenshot
Or if you didn't set a default app path:
Launch my calculator app at ~/projects/calculator/target/debug/calculato…
暂无描述。
一个由人工智能驱动的MCP服务器,通过自然语言提示实现测试的记录、执行和发现,从而自动化的网络测试工作流程。
一个MCP(模型上下文协议)服务器,用于使用axe-core对网页进行无障碍审计。在代理循环中使用结果与您喜欢的AI助手(Cline/Cursor/GH Copilot)结合,并让它们为您修复无障碍问题!
暂无描述。
暂无描述。
暂无描述。