Automates and tests Tauri desktop applications from an agent.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add tauri-automation --env TAURI_APP_PATH='<TAURI_APP_PATH>' -- node /absolute/path/to/mcp-tauri-automation/dist/index.js~/.codex/config.toml
[mcp_servers.tauri-automation]
command = "node"
args = ["/absolute/path/to/mcp-tauri-automation/dist/index.js"]
env = { TAURI_APP_PATH = "<TAURI_APP_PATH>" }
# codex mcp add tauri-automation --env TAURI_APP_PATH='<TAURI_APP_PATH>' -- node /absolute/path/to/mcp-tauri-automation/dist/index.js~/.cursor/mcp.json
{
"mcpServers": {
"tauri-automation": {
"command": "node",
"args": [
"/absolute/path/to/mcp-tauri-automation/dist/index.js"
],
"env": {
"TAURI_APP_PATH": "<TAURI_APP_PATH>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"tauri-automation": {
"type": "stdio",
"command": "node",
"args": [
"/absolute/path/to/mcp-tauri-automation/dist/index.js"
],
"env": {
"TAURI_APP_PATH": "<TAURI_APP_PATH>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"tauri-automation": {
"command": "node",
"args": [
"/absolute/path/to/mcp-tauri-automation/dist/index.js"
],
"env": {
"TAURI_APP_PATH": "<TAURI_APP_PATH>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"tauri-automation": {
"command": "node",
"args": [
"/absolute/path/to/mcp-tauri-automation/dist/index.js"
],
"env": {
"TAURI_APP_PATH": "<TAURI_APP_PATH>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"tauri-automation": {
"command": "node",
"args": [
"/absolute/path/to/mcp-tauri-automation/dist/index.js"
],
"env": {
"TAURI_APP_PATH": "<TAURI_APP_PATH>"
}
}
}
}需要的环境变量
TAURI_APP_PATH
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。