Skip to main content

Crate egui_mcp_protocol

Crate egui_mcp_protocol 

Source
Expand description

Common protocol definitions for egui-mcp

This crate defines the shared types and protocols used for IPC communication between the MCP server and egui client applications.

Note: UI tree access, element search, and click/text input operations are handled via AT-SPI on Linux. This protocol is only used for features that require direct client integration (screenshots, coordinate-based input, etc.).

Structs§

FrameStats
Frame statistics for performance monitoring
LogEntry
Log entry captured from the application
NodeInfo
Information about a UI node (used for AT-SPI responses)
PerfReport
Performance report from a recording session
Rect
A rectangle in screen coordinates
UiTree
UI tree containing all nodes (used for AT-SPI responses)

Enums§

MouseButton
Mouse button for click operations
ProtocolError
Protocol errors
Request
Request types for IPC communication
Response
Response types for IPC communication

Constants§

MAX_MESSAGE_SIZE
Maximum message size (1 MB)

Functions§

default_socket_path
Default socket path for IPC communication
read_message
Read a length-prefixed message from a reader
read_request
Read and deserialize a request
read_response
Read and deserialize a response
write_message
Write a length-prefixed message to a writer
write_request
Write and serialize a request
write_response
Write and serialize a response