tauri-mcp-test-runner
Tauri MCP Test Runner
Overview
Run VMark end-to-end UI flows using the Tauri MCP tools and summarize results.
Workflow
- Confirm the desktop app is running. If not, ask the user to start it.
- Start MCP session via
mcp__tauri__tauri_driver_session(action:start, port:9223or omit for default). - List windows (
mcp__tauri__tauri_manage_windowaction:list) and pick the target window. - Execute test flows using the patterns in
references/flows.md. - Capture logs when needed (
mcp__tauri__tauri_read_logs) and stop the session when done. - Report results: passed/failed flows, errors, repro steps, and any follow-up fixes.
Key Tools
Tauri MCP Tools (tauri-mcp server)
tauri_driver_session- Start/stop driver sessiontauri_webview_screenshot- Capture current statetauri_webview_keyboard- Send keystrokes (Enter, Escape, shortcuts)tauri_webview_interact- Click, focus elementstauri_webview_find_element- Inspect DOM state
VMark MCP Tools (vmark server)
document_insert_at_cursor- Insert text (appears as AI suggestion)cursor_set_position- Move cursor to positioncursor_get_context- Get surrounding text contextselection_set/selection_get- Manage text selectionformat_toggle- Toggle formatting (bold, italic, etc.)
Critical Pattern: AI Content Acceptance
When using vmark MCP to insert content, it appears as an AI suggestion that must be accepted with Enter via tauri-mcp:
1. vmark: document_insert_at_cursor("text")
2. tauri: keyboard(action: "press", key: "Enter") # Accept
3. tauri: keyboard(action: "press", key: "Escape") # Dismiss follow-up
This pattern is required for all content insertion operations.
References
- Load
references/flows.mdfor detailed flow patterns and examples.
More from xiaolai/vmark
tiptap-editor
Tiptap editor API patterns for vmark WYSIWYG development. Use when working with editor commands, node traversal, selection handling, or format operations.
268ai-coding-agents
Comprehensive guide for using Codex CLI (OpenAI) and Claude Code CLI (Anthropic) - AI-powered coding agents. Use when orchestrating CLI commands, automating tasks, configuring agents, or troubleshooting issues.
138tiptap-dev
Expert guidance for building rich text editors with Tiptap - a headless, framework-agnostic editor built on ProseMirror. Use when creating custom nodes, marks, or extensions for Tiptap, implementing input rules or paste rules, working with the Tiptap commands API, building React integrations with useEditor, extending existing extensions, or creating custom node views.
71tauri-app-dev
Expert guidance for building cross-platform desktop applications with Tauri 2.0 and Rust. Use when developing Tauri apps including commands and IPC, file system operations, window management, state management, system tray, menus, plugin development, security configuration (capabilities/permissions), bundling/distribution, and auto-updates. Covers patterns for editor applications requiring file dialogs, native menus, and frontend-backend communication.
67tauri-mcp-testing
E2E testing expert for Tauri applications using Tauri MCP server. Use when testing running Tauri apps - session management, webview interaction, IPC verification, screenshot capture, and debugging. ALWAYS use tauri_* tools, NEVER Chrome DevTools MCP for Tauri apps.
65rust-tauri-backend
Implement or modify VMark's Rust/Tauri backend. Use when adding Tauri commands, menu items, filesystem integration, or platform behaviors in src-tauri.
61