{"id":50139595,"url":"https://github.com/aydiler/egui-mcp","last_synced_at":"2026-05-24T00:07:03.951Z","repository":{"id":358111934,"uuid":"1139544575","full_name":"aydiler/egui-mcp","owner":"aydiler","description":"MCP server for E2E testing of egui applications","archived":false,"fork":false,"pushed_at":"2026-05-15T18:43:08.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-15T20:59:17.182Z","etag":null,"topics":["accessibility","egui","mcp","rust","testing"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aydiler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-22T05:10:26.000Z","updated_at":"2026-05-15T18:43:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/aydiler/egui-mcp","commit_stats":null,"previous_names":["aydiler/egui-mcp"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/aydiler/egui-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aydiler%2Fegui-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aydiler%2Fegui-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aydiler%2Fegui-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aydiler%2Fegui-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aydiler","download_url":"https://codeload.github.com/aydiler/egui-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aydiler%2Fegui-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33416337,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T22:14:44.296Z","status":"ssl_error","status_checked_at":"2026-05-23T22:14:43.778Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accessibility","egui","mcp","rust","testing"],"created_at":"2026-05-24T00:07:02.896Z","updated_at":"2026-05-24T00:07:03.843Z","avatar_url":"https://github.com/aydiler.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# egui-mcp\n\nMCP (Model Context Protocol) server for E2E testing egui applications.\n\n## Features\n\n- 🤖 **AI-Powered Testing** - Test egui apps using natural language via Claude Code\n- 🎯 **AccessKit Integration** - Automatic UI tree inspection\n- 🖱️ **Full Interaction** - Click, type, fill, hover, scroll\n- 🚀 **App Lifecycle Management** - Launch, kill, connect\n- 🖥️ **Virtual Display Support** - Auto-detects X11 mode for Xvfb testing\n- 📸 **Visual Verification** - Combine with screenshot tools\n\n## Quick Start\n\n### 1. Add MCP Bridge to Your App\n\n```toml\n[dependencies]\negui-mcp-bridge = { path = \"path/to/egui-mcp/crates/egui-mcp-bridge\" }\n\n[features]\nmcp = [\"egui-mcp-bridge\"]\n```\n\n```rust\nuse egui_mcp_bridge::McpBridge;\n\nstruct MyApp {\n    #[cfg(feature = \"mcp\")]\n    bridge: McpBridge,\n}\n\nimpl eframe::App for MyApp {\n    fn raw_input_hook(\u0026mut self, _ctx: \u0026Context, raw_input: \u0026mut RawInput) {\n        #[cfg(feature = \"mcp\")]\n        {\n            self.bridge.process_commands();\n            self.bridge.inject_raw_input(raw_input);\n        }\n    }\n\n    fn update(\u0026mut self, ctx: \u0026Context, _frame: \u0026mut Frame) {\n        #[cfg(feature = \"mcp\")]\n        {\n            ctx.enable_accesskit();\n            self.bridge.begin_frame();\n        }\n\n        // Your UI code...\n        let btn = ui.button(\"Click Me\");\n        \n        #[cfg(feature = \"mcp\")]\n        self.bridge.register_widget(\"Click Me\", \"button\", \u0026btn, None);\n\n        #[cfg(feature = \"mcp\")]\n        self.bridge.capture_output(ctx);\n    }\n}\n```\n\n### 2. Add MCP Server to Claude Code\n\n```bash\n# Build release binary\ncd egui-mcp\ncargo build --release -p egui-mcp-server\n\n# Add to Claude Code\nclaude mcp add egui ~/egui-mcp/target/release/egui-mcp-server -s user\n```\n\n### 3. Test Your App\n\n```\n# Launch app on virtual display\negui_launch({\n  applicationPath: \"./target/debug/my-app\",\n  args: [\"file.txt\"],\n  env: { \"DISPLAY\": \":99\" }  // Auto-detects X11 mode!\n})\n\n# Inspect UI\negui_snapshot()\n\n# Interact\negui_click({ ref: \"n5\" })\negui_type({ ref: \"n3\", text: \"Hello\" })\negui_key({ key: \"F\", modifiers: [\"ctrl\"] })   # Send a shortcut (Ctrl+F)\negui_key({ key: \"Escape\" })                    # Send a bare key\n\n# Cleanup\negui_kill()\n```\n\n## Virtual Display Testing\n\nFor isolated testing that doesn't interfere with your desktop:\n\n```bash\n# Start Xvfb (once)\nXvfb :99 -screen 0 1920x1080x24 \u0026\n\n# Launch app (auto-detects X11 mode)\negui_launch({\n  applicationPath: \"./target/debug/my-app\",\n  env: { \"DISPLAY\": \":99\" }\n})\n```\n\n**The tool automatically:**\n- Sets `WINIT_UNIX_BACKEND=x11` when DISPLAY is specified\n- Removes `WAYLAND_DISPLAY` to prevent Wayland preference\n- Ensures egui apps use the virtual X11 display on Wayland systems\n\n## Available Tools\n\n| Tool | Description |\n|------|-------------|\n| `egui_launch` | Launch app with env vars, auto-connect |\n| `egui_kill` | Kill launched app and disconnect |\n| `egui_connect` | Connect to already-running app |\n| `egui_disconnect` | Disconnect from app |\n| `egui_status` | Check connection status |\n| `egui_snapshot` | Get accessibility tree |\n| `egui_click` | Click element by ref |\n| `egui_type` | Type text into input |\n| `egui_key` | Send a keyboard event with optional modifiers (e.g. Ctrl+F, Esc, F5) |\n| `egui_fill` | Set value (sliders, etc.) |\n| `egui_focus` | Focus element |\n| `egui_hover` | Hover over element |\n| `egui_get_value` | Get element value |\n| `egui_scroll` | Scroll at position |\n\n## Architecture\n\n```\n┌─────────────┐     stdio      ┌──────────────────┐     TCP/JSON-RPC    ┌────────────────┐\n│ Claude Code │ ◄──────────────► │ egui-mcp-server  │ ◄──────────────────► │ egui-mcp-bridge│\n│   (Client)  │                 │   (MCP Server)   │                      │  (in egui app) │\n└─────────────┘                 └──────────────────┘                      └────────────────┘\n```\n\n- **egui-mcp-bridge** - Rust library embedded in your egui app\n- **egui-mcp-server** - Standalone MCP server binary\n\n## Development\n\n```bash\n# Build all\ncargo build\n\n# Build release\ncargo build --release\n\n# Run test app\ncargo run -p test-app --features mcp\n\n# Run clippy\ncargo clippy\n\n# Format\ncargo fmt\n```\n\n## License\n\nMIT OR Apache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faydiler%2Fegui-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faydiler%2Fegui-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faydiler%2Fegui-mcp/lists"}