Skip to main content

Crate victauri_plugin

Crate victauri_plugin 

Source
Expand description

Victauri — full-stack introspection for Tauri apps via an embedded MCP server.

Add this plugin to your Tauri app for AI-agent-driven testing and debugging: DOM snapshots, IPC tracing, cross-boundary verification, and 59 more tools — all accessible over the Model Context Protocol.

§Quick Start

tauri::Builder::default()
    .plugin(victauri_plugin::init())
    .run(tauri::generate_context!())
    .unwrap();

In debug builds this starts an MCP server on port 7373. In release builds the plugin is a no-op with zero overhead.

§Configuration

tauri::Builder::default()
    .plugin(
        victauri_plugin::VictauriBuilder::new()
            .port(8080)
            .generate_auth_token()
            .strict_privacy_mode()
            .build(),
    )
    .run(tauri::generate_context!())
    .unwrap();

Re-exports§

pub use error::BuilderError;

Modules§

auth
bridge
error
Typed error enums for the victauri-plugin crate.
mcp
privacy
redaction

Structs§

VictauriBuilder
Builder for configuring the Victauri plugin before adding it to a Tauri app.
VictauriState
Runtime state shared between the MCP server and all tool handlers.

Functions§

init
Initialize the Victauri plugin with default settings (port 7373 or VICTAURI_PORT env var).

Type Aliases§

PendingCallbacks
Map of pending JavaScript eval callbacks, keyed by request ID. Each entry holds a oneshot sender that resolves when the webview returns a result.

Attribute Macros§

inspectable
Marks a #[tauri::command] as inspectable by Victauri.