pub struct VictauriState {
pub event_log: EventLog,
pub registry: CommandRegistry,
pub port: AtomicU16,
pub pending_evals: PendingCallbacks,
pub recorder: EventRecorder,
pub privacy: PrivacyConfig,
pub eval_timeout: Duration,
pub shutdown_tx: Sender<bool>,
pub started_at: Instant,
pub tool_invocations: AtomicU64,
pub allow_file_navigation: bool,
}Expand description
Runtime state shared between the MCP server and all tool handlers.
Fields§
§event_log: EventLogRing-buffer event log for IPC calls, state changes, and DOM mutations.
registry: CommandRegistryRegistry of all discovered Tauri commands with metadata.
port: AtomicU16TCP port the MCP server listens on (may differ from configured port if fallback was used).
pending_evals: PendingCallbacksPending JavaScript eval callbacks awaiting webview responses.
recorder: EventRecorderSession recorder for time-travel debugging.
privacy: PrivacyConfigPrivacy configuration (tool disabling, command filtering, output redaction).
eval_timeout: DurationTimeout for JavaScript eval operations.
shutdown_tx: Sender<bool>Sends true to signal graceful MCP server shutdown.
started_at: InstantInstant the plugin was initialized, for uptime tracking.
tool_invocations: AtomicU64Total number of MCP tool invocations since startup.
Whether file: URLs are allowed in the navigate tool’s go_to action.
Defaults to false — only http and https are permitted unless opted in
via VictauriBuilder::allow_file_navigation.