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§
- Frame
Stats - Frame statistics for performance monitoring
- LogEntry
- Log entry captured from the application
- Node
Info - Information about a UI node (used for AT-SPI responses)
- Perf
Report - Performance report from a recording session
- Rect
- A rectangle in screen coordinates
- UiTree
- UI tree containing all nodes (used for AT-SPI responses)
Enums§
- Mouse
Button - Mouse button for click operations
- Protocol
Error - 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