Skip to content
Agent Orchestration
Skill

/tauri-mcp-testing

E2E testing of a running VMark debug build through the Tauri MCP server - session management, webview interaction, IPC verification, screenshots, logs - and when to use VMark MCP instead. Use when running or updating UI flows in the desktop app. ALWAYS use the mcp__tauri__*

From plugin
vmark
92210 skills6 agents7 commands1 MCP

Claude Code

$ npx -y skills add xiaolai/vmark --skill tauri-mcp-testing --agent claude-code

SKILL.md

tauri-mcp-testing.SKILL.md
name: tauri-mcp-testing
description: E2E testing of a running VMark debug build through the Tauri MCP server - session management, webview interaction, IPC verification, screenshots, logs - and when to use VMark MCP instead. Use when running or updating UI flows in the desktop app. ALWAYS use the mcp__tauri__* tools, NEVER Chrome DevTools MCP.

Tauri MCP E2E Testing (VMark)

**CRITICAL:** VMark is a Tauri app. Drive it with the Tauri MCP tools (`mcp__tauri__driver_session`, `mcp__tauri__webview_screenshot`, …; this skill writes them without the `mcp__tauri__` prefix). NEVER use Chrome DevTools MCP.

Which server tests what

| What is under test | Drive it through | |---|---| | Non-AI UI and plumbing: tabs, modes, toolbar, settings, save, find bar | Tauri MCP (`127.0.0.1:9323`, debug builds only) | | AI features and anything an MCP client does | VMark MCP (`mcp__vmark__session`, `document`, `selection`, `workspace`, `workflow`, `browser`, `browser_read`, `coherence`) |

`pnpm tauri:dev` runs as `app.vmark.dev`, with its own settings and `mcp-port`; point a VMark MCP client at it with `VMARK_APP_IDENTIFIER=app.vmark.dev`. The VMark MCP port is dynamic (read from `mcp-port`). The scripted journeys (`pnpm e2e:journeys`) and their guide are in `e2e/README.md`.

Running a flow

1. Confirm `pnpm tauri:dev` is running; if not, ask the user to start it. 2. `driver_session({ action: 'start', port: 9323 })`, then `manage_window({ action: 'list' })` and pick the target window. 3. Run the flow. VMark MCP calls: `session.get_state` to orient, `document.read` before `document.write` (pass `revision` back as `expected_revision`), `selection.get`/`selection.set` for targeted edits. 4. Verify with a screenshot, `webview_find_element` or `document.read`; read `read_logs` on failure. Stop the session when done. 5. Report each flow as passed or failed, with errors and repro steps.

Common flows: app startup (main window visible); open recent and open from the picker; WYSIWYG ↔ Source toggle (F7); format toolbar (Ctrl+E); change a setting and confirm it persists; edit, save, and confirm the dirty flag clears.

Quick Reference

| Task | MCP Tool | |------|----------| | Connect to app | `driver_session` | | Take screenshot | `webview_screenshot` | | Find elements | `webview_find_element` | | Click/scroll/swipe | `webview_interact` | | Type text | `webview_keyboard` | | Wait for element | `webview_wait_for` | | Execute JS | `webview_execute_js` | | Get CSS styles | `webview_execute_js` with `getComputedStyle` | | Test IPC commands | `ipc_execute_command` | | Monitor IPC calls | `ipc_monitor` | | Read console logs | `read_logs` | | Manage windows | `manage_window` |

Prerequisites

1. **MCP Bridge Plugin installed** in the Tauri app 2. **App running** in development mode (`pnpm tauri:dev`) 3. **Port 9323** accessible for VMark automation. VMark pins the debug-only Tauri MCP bridge to `127.0.0.1:9323`; port 9223 is VMark's own auth-protected MCP server and is not valid for E2E automation.

If connection fails, run `get_setup_instructions` to get plugin installation guide.

Core Workflow

1. START SESSION    → Connect to running Tauri app
2. VERIFY STATE     → Screenshot + find elements
3. INTERACT         → Click, type, scroll
4. WAIT             → Wait for expected results
5. VERIFY           → Check IPC, logs, DOM state
6. CLEANUP          → Stop session when done

Session Management

Start Session

// Connect to VMark's automation bridge
driver_session({ action: 'start', port: 9323 })

// Connect to specific port
driver_session({ action: 'start', port: 9324 })

// Connect to remote host (mobile testing)
driver_session({ action: 'start', host: '<device-ip>', port: 9323 })

Check Status

driver_session({ action: 'status' })
// Returns: connected apps, default app, identifiers

Stop Session

// Stop all sessions
driver_session({ action: 'stop' })

// Stop specific app
driver_session({ action: 'stop', appIdentifier: 9323 })

Testing Patterns

Pattern 1: Visual Verification

// 1. Take screenshot to see current state
webview_screenshot()

// 2. Take screenshot of specific element
webview_screenshot({ uid: 'editor-content' })

// 3. Save to file for comparison
webview_screenshot({ filePath: 'dev-docs/archive/test-screenshots/test-screenshot.png' })

Pattern 2: Element Interaction

// 1. Find element first
webview_find_element({ selector: '.save-button' })

// 2. Click element
webview_interact({ action: 'click', selector: '.save-button' })

// 3. Double-click
webview_interact({ action: 'double-click', selector: '.editor' })

// 4. Long-press (touch simulation)
webview_interact({ action: 'long-press', selector: '.item', duration: 500 })

// 5. Scroll
webview_interact({ action: 'scroll', selector: '.content', scrollY: 500 })

// 6. Swipe
webview_interact({
  action: 'swipe',
  fromX: 300, fromY: 400,
  toX: 100, toY: 400,
  duration: 300
})

Pattern 3: Keyboard Input

// Type into focused element
webview_keyboard({
  action: 'type',
  selector: '.editor-input',
  text: '# Hello World'
})

// Press key
webview_keyboard({ action: 'press', key: 'Enter' })

// Key with modifiers
webview_keyboard({
  action: 'press',
  key: 's',
  modifiers: ['Control']  // Ctrl+S
})

// Key combinations
webview_keyboard({
  action: 'press',
  key: 'z',
  modifiers: ['Meta', 'Shift']  // Cmd+Shift+Z (redo on macOS)
})

Pattern 4: Wait for State

// Wait for element to appear
webview_wait_for({
  type: 'selector',
  value: '.success-toast',
  timeout: 5000
})

// Wait for text to appear
webview_wait_for({
  type: 'text',
  value: 'File saved successfully',
  timeout: 3000
})

// Wait for IPC event
webview_wait_for({
  type: 'ipc-event',
  value: 'file-saved',
  timeout: 5000
})

Pattern 5: IPC Testing

// Start monito
Read more
@xiaolai
Ships withvmark

The Plain-Text Workspace Where Humans and AI Collaborate Free. Local-first. Format-aware. VMark is the plain-text workspace where humans and AI collaborate.

92210 skills6 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
922
Star history of xiaolai/vmark on GitHub, a chart by star-history.com

Other skills on vmark.

css-design-tdd

css-design-tdd

Test-driven CSS design system modifications. Run checks before/after CSS changes to verify token usage, variable definitions,…

@xiaolai@xiaolaiInstall Skill
mcp-dev

mcp-dev

Build or change VMark's MCP integration - the server/mcp sidecar's tools and schemas, the Rust bridge, the frontend bridge…

@xiaolai@xiaolaiInstall Skill
plan-audit

plan-audit

Audit or verify an implementation against a plan (dev-docs/plans/* or .claude/tdd-guardian/*). Audit mode inspects for gaps,…

@xiaolai@xiaolaiInstall Skill
planning

planning

Create comprehensive implementation plans and write them to plan files. Use when the user asks for a plan, comprehensive plan,…

@xiaolai@xiaolaiInstall Skill
react-app-dev

react-app-dev

Implement or modify VMark React UI with project conventions (Zustand selectors, Tailwind v4, shadcn/ui). Use for components,…

@xiaolai@xiaolaiInstall Skill
rust-tauri-backend

rust-tauri-backend

Implement or modify VMark's Rust/Tauri v2 backend and its frontend bridge - Tauri commands, invoke/emit/listen IPC, menu items…

@xiaolai@xiaolaiInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw6d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca4d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip4d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about tauri-mcp-testing.

Which coding agents can use tauri-mcp-testing?
tauri-mcp-testing installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.