Skip to main content

VictauriMcpHandler

Struct VictauriMcpHandler 

Source
pub struct VictauriMcpHandler { /* private fields */ }

Implementations§

Source§

impl VictauriMcpHandler

Source

pub fn eval_js_tool_attr() -> Tool

Generated tool metadata function for eval_js

Source

pub fn dom_snapshot_tool_attr() -> Tool

Generated tool metadata function for dom_snapshot

Source

pub fn click_tool_attr() -> Tool

Generated tool metadata function for click

Source

pub fn fill_tool_attr() -> Tool

Generated tool metadata function for fill

Source

pub fn type_text_tool_attr() -> Tool

Generated tool metadata function for type_text

Source

pub fn get_window_state_tool_attr() -> Tool

Generated tool metadata function for get_window_state

Source

pub fn list_windows_tool_attr() -> Tool

Generated tool metadata function for list_windows

Source

pub fn get_ipc_log_tool_attr() -> Tool

Generated tool metadata function for get_ipc_log

Source

pub fn get_registry_tool_attr() -> Tool

Generated tool metadata function for get_registry

Source

pub fn get_memory_stats_tool_attr() -> Tool

Generated tool metadata function for get_memory_stats

Source

pub fn verify_state_tool_attr() -> Tool

Generated tool metadata function for verify_state

Source

pub fn detect_ghost_commands_tool_attr() -> Tool

Generated tool metadata function for detect_ghost_commands

Source

pub fn check_ipc_integrity_tool_attr() -> Tool

Generated tool metadata function for check_ipc_integrity

Source

pub fn get_event_stream_tool_attr() -> Tool

Generated tool metadata function for get_event_stream

Source

pub fn resolve_command_tool_attr() -> Tool

Generated tool metadata function for resolve_command

Source

pub fn assert_semantic_tool_attr() -> Tool

Generated tool metadata function for assert_semantic

Source

pub fn start_recording_tool_attr() -> Tool

Generated tool metadata function for start_recording

Source

pub fn stop_recording_tool_attr() -> Tool

Generated tool metadata function for stop_recording

Source

pub fn checkpoint_tool_attr() -> Tool

Generated tool metadata function for checkpoint

Source

pub fn list_checkpoints_tool_attr() -> Tool

Generated tool metadata function for list_checkpoints

Source

pub fn get_replay_sequence_tool_attr() -> Tool

Generated tool metadata function for get_replay_sequence

Source

pub fn get_recorded_events_tool_attr() -> Tool

Generated tool metadata function for get_recorded_events

Source

pub fn events_between_checkpoints_tool_attr() -> Tool

Generated tool metadata function for events_between_checkpoints

Source

pub fn export_session_tool_attr() -> Tool

Generated tool metadata function for export_session

Source

pub fn import_session_tool_attr() -> Tool

Generated tool metadata function for import_session

Source

pub fn slow_ipc_calls_tool_attr() -> Tool

Generated tool metadata function for slow_ipc_calls

Source

pub fn invoke_command_tool_attr() -> Tool

Generated tool metadata function for invoke_command

Source

pub fn screenshot_tool_attr() -> Tool

Generated tool metadata function for screenshot

Source

pub fn press_key_tool_attr() -> Tool

Generated tool metadata function for press_key

Source

pub fn get_console_logs_tool_attr() -> Tool

Generated tool metadata function for get_console_logs

Source

pub fn double_click_tool_attr() -> Tool

Generated tool metadata function for double_click

Source

pub fn hover_tool_attr() -> Tool

Generated tool metadata function for hover

Source

pub fn select_option_tool_attr() -> Tool

Generated tool metadata function for select_option

Source

pub fn scroll_to_tool_attr() -> Tool

Generated tool metadata function for scroll_to

Source

pub fn focus_element_tool_attr() -> Tool

Generated tool metadata function for focus_element

Source

pub fn get_network_log_tool_attr() -> Tool

Generated tool metadata function for get_network_log

Source

pub fn get_storage_tool_attr() -> Tool

Generated tool metadata function for get_storage

Source

pub fn set_storage_tool_attr() -> Tool

Generated tool metadata function for set_storage

Source

pub fn delete_storage_tool_attr() -> Tool

Generated tool metadata function for delete_storage

Source

pub fn get_cookies_tool_attr() -> Tool

Generated tool metadata function for get_cookies

Source

pub fn get_navigation_log_tool_attr() -> Tool

Generated tool metadata function for get_navigation_log

Source

pub fn navigate_tool_attr() -> Tool

Generated tool metadata function for navigate

Source

pub fn navigate_back_tool_attr() -> Tool

Generated tool metadata function for navigate_back

Source

pub fn get_dialog_log_tool_attr() -> Tool

Generated tool metadata function for get_dialog_log

Source

pub fn set_dialog_response_tool_attr() -> Tool

Generated tool metadata function for set_dialog_response

Source

pub fn wait_for_tool_attr() -> Tool

Generated tool metadata function for wait_for

Source

pub fn manage_window_tool_attr() -> Tool

Generated tool metadata function for manage_window

Source

pub fn resize_window_tool_attr() -> Tool

Generated tool metadata function for resize_window

Source

pub fn move_window_tool_attr() -> Tool

Generated tool metadata function for move_window

Source

pub fn set_window_title_tool_attr() -> Tool

Generated tool metadata function for set_window_title

Source

pub fn get_styles_tool_attr() -> Tool

Generated tool metadata function for get_styles

Source

pub fn get_bounding_boxes_tool_attr() -> Tool

Generated tool metadata function for get_bounding_boxes

Source

pub fn highlight_element_tool_attr() -> Tool

Generated tool metadata function for highlight_element

Source

pub fn clear_highlights_tool_attr() -> Tool

Generated tool metadata function for clear_highlights

Source

pub fn inject_css_tool_attr() -> Tool

Generated tool metadata function for inject_css

Source

pub fn remove_injected_css_tool_attr() -> Tool

Generated tool metadata function for remove_injected_css

Source

pub fn audit_accessibility_tool_attr() -> Tool

Generated tool metadata function for audit_accessibility

Source

pub fn get_performance_metrics_tool_attr() -> Tool

Generated tool metadata function for get_performance_metrics

Source

pub fn get_plugin_info_tool_attr() -> Tool

Generated tool metadata function for get_plugin_info

Source§

impl VictauriMcpHandler

Source

pub fn new(state: Arc<VictauriState>, bridge: Arc<dyn WebviewBridge>) -> Self

Trait Implementations§

Source§

impl Clone for VictauriMcpHandler

Source§

fn clone(&self) -> VictauriMcpHandler

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ServerHandler for VictauriMcpHandler

Source§

fn get_info(&self) -> ServerInfo

Source§

async fn list_tools( &self, _request: Option<PaginatedRequestParams>, _context: RequestContext<RoleServer>, ) -> Result<ListToolsResult, ErrorData>

Source§

async fn call_tool( &self, request: CallToolRequestParams, context: RequestContext<RoleServer>, ) -> Result<CallToolResult, ErrorData>

Source§

fn get_tool(&self, name: &str) -> Option<Tool>

Get a tool definition by name. Read more
Source§

async fn list_resources( &self, _request: Option<PaginatedRequestParams>, _context: RequestContext<RoleServer>, ) -> Result<ListResourcesResult, ErrorData>

Source§

async fn read_resource( &self, request: ReadResourceRequestParams, _context: RequestContext<RoleServer>, ) -> Result<ReadResourceResult, ErrorData>

Source§

async fn subscribe( &self, request: SubscribeRequestParams, _context: RequestContext<RoleServer>, ) -> Result<(), ErrorData>

Source§

async fn unsubscribe( &self, request: UnsubscribeRequestParams, _context: RequestContext<RoleServer>, ) -> Result<(), ErrorData>

Source§

fn enqueue_task( &self, _request: CallToolRequestParams, _context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CreateTaskResult, ErrorData>> + MaybeSendFuture

Source§

fn ping( &self, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + MaybeSendFuture

Source§

fn initialize( &self, request: InitializeRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<InitializeResult, ErrorData>> + MaybeSendFuture

Source§

fn complete( &self, request: CompleteRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CompleteResult, ErrorData>> + MaybeSendFuture

Source§

fn set_level( &self, request: SetLevelRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + MaybeSendFuture

Source§

fn get_prompt( &self, request: GetPromptRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<GetPromptResult, ErrorData>> + MaybeSendFuture

Source§

fn list_prompts( &self, request: Option<PaginatedRequestParams>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListPromptsResult, ErrorData>> + MaybeSendFuture

Source§

fn list_resource_templates( &self, request: Option<PaginatedRequestParams>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListResourceTemplatesResult, ErrorData>> + MaybeSendFuture

Source§

fn on_custom_request( &self, request: CustomRequest, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CustomResult, ErrorData>> + MaybeSendFuture

Source§

fn on_cancelled( &self, notification: CancelledNotificationParam, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture

Source§

fn on_progress( &self, notification: ProgressNotificationParam, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture

Source§

fn on_initialized( &self, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture

Source§

fn on_roots_list_changed( &self, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture

Source§

fn on_custom_notification( &self, notification: CustomNotification, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture

Source§

fn list_tasks( &self, request: Option<PaginatedRequestParams>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListTasksResult, ErrorData>> + MaybeSendFuture

Source§

fn get_task_info( &self, request: GetTaskInfoParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<GetTaskResult, ErrorData>> + MaybeSendFuture

Source§

fn get_task_result( &self, request: GetTaskResultParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<GetTaskPayloadResult, ErrorData>> + MaybeSendFuture

Source§

fn cancel_task( &self, request: CancelTaskParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CancelTaskResult, ErrorData>> + MaybeSendFuture

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<R, S> DynService<R> for S
where R: ServiceRole, S: Service<R>,

Source§

fn handle_request( &self, request: <R as ServiceRole>::PeerReq, context: RequestContext<R>, ) -> Pin<Box<dyn Future<Output = Result<<R as ServiceRole>::Resp, ErrorData>> + Send + '_>>

Source§

fn handle_notification( &self, notification: <R as ServiceRole>::PeerNot, context: NotificationContext<R>, ) -> Pin<Box<dyn Future<Output = Result<(), ErrorData>> + Send + '_>>

Source§

fn get_info(&self) -> <R as ServiceRole>::Info

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<H> Service<RoleServer> for H
where H: ServerHandler,

Source§

impl<S> ServiceExt<RoleServer> for S
where S: Service<RoleServer>,

Source§

fn serve_with_ct<T, E, A>( self, transport: T, ct: CancellationToken, ) -> impl Future<Output = Result<RunningService<RoleServer, S>, ServerInitializeError>> + MaybeSendFuture
where T: IntoTransport<RoleServer, E, A>, E: Error + Send + Sync + 'static,

Source§

fn into_dyn(self) -> Box<dyn DynService<R>>

Convert this service to a dynamic boxed service Read more
Source§

fn serve<T, E, A>( self, transport: T, ) -> impl Future<Output = Result<RunningService<R, Self>, <R as ServiceRole>::InitializeError>> + MaybeSendFuture
where T: IntoTransport<R, E, A>, E: Error + Send + Sync + 'static, Self: Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,