rust-debug-mcp
Provides tools for debugging and operating Rust Tauri applications over WebSocket, including app lifecycle management, core debugging, metrics inspection, UI automation, and more.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@rust-debug-mcpcheck connection to my Tauri app"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
rust-debug-mcp
A Model Context Protocol (MCP) server for debugging and operating Rust Tauri applications over WebSocket.
Table of Contents
Related MCP server: Electron MCP Server
Overview
rust-debug-mcp bridges MCP clients and Tauri debug backends. It provides a single tool (tauri_debug_command) that routes commands to specialized handlers for app lifecycle operations, core debugging, metrics/task inspection, frontend actions, and UI automation.
It supports multiple target apps through configs/apps.json, including capability checks per app before command execution.
Features
Core Functionality
Multi-app registry support with per-app command capability gating
App lifecycle management (
start_app,kill_app)Core debug command forwarding through a typed WebSocket bridge
Response verbosity control (
conciseanddetailed)
Debugging & Inspection
Task/session/metrics commands for Commander-style backends
Frontend broadcast support for app-side actions
UI automation commands (
click,fill,select,type,press_key, snapshots, screenshots, wait/hover/scroll, console logs)
Reliability
Connection status checks and reconnect behavior in bridge manager
Request timeout handling for bridge calls
Ordered handler routing with clean command-to-handler resolution
Installation
Quick Setup
# Clone repository
git clone https://github.com/ruizrica/rust-debug-mcp.git
# Enter project
cd rust-debug-mcp
# Install dependencies
npm install
# Build
npm run buildInstalling in an MCP Client
Add to your MCP config (example):
{
"mcpServers": {
"tauri-debug": {
"command": "node",
"args": ["/absolute/path/to/rust-debug-mcp/dist/server.js"],
"env": {
"LOG_LEVEL": "info",
"TAURI_WS_URL": "ws://localhost:9002",
"COMMANDER_WS_URL": "ws://localhost:9002"
}
}
}
}For deeper setup and troubleshooting, see docs/RUNBOOK.md.
Usage
Starting the Server
npm run dev
# or
npm startThe server communicates over stdio and is intended to be launched by an MCP client.
Multi-App Configuration
configs/apps.json controls default app, app endpoints, and command capability sets:
{
"default": "commander",
"apps": {
"commander": {
"name": "Commander",
"wsUrl": "ws://localhost:9002",
"commands": ["all"]
},
"photon": {
"name": "Photon CLI",
"wsUrl": "ws://localhost:9847",
"commands": ["core", "ui_automation"]
}
}
}Tools API
The server exposes one MCP tool:
Tool | Description |
| Execute a debug command against a selected app ( |
Command Categories
App lifecycle:
start_app,kill_appCore:
test_connection,get_debug_mode,set_debug_mode,get_app_dir,get_logs,get_system_metrics,test_command,simple_testTask/session/metrics:
get_session_metrics,get_task_metrics,get_all_tasks,get_task,get_tasks_by_status,get_task_groups,list_windowsFrontend action:
broadcast_to_frontendUI automation:
click,fill,select,type,press_key,get_snapshot,take_screenshot,wait_for,hover,scroll,get_console_logs
For full payload details, see docs/COMMAND_REFERENCE.md.
Examples
Minimal Command
{
"command": "test_connection"
}Targeting a Specific App
{
"command": "get_debug_mode",
"app": "commander"
}UI Interaction
{
"command": "click",
"app": "photon",
"params": {
"uid": "e5"
}
}Development
Project Structure
rust-debug-mcp/
├── src/
│ ├── server.ts # MCP server entry point
│ ├── bridge-manager.ts # WebSocket bridge and manager
│ ├── app-registry.ts # Multi-app registry and capability checks
│ ├── handlers/ # Command handlers and router
│ ├── response-formatter.ts # Concise/detailed output formatter
│ └── types.ts # Type definitions
├── configs/
│ └── apps.json
├── docs/
├── tests/
├── package.json
└── tsconfig.jsonBuild
npm run buildTypecheck
npm run typecheckTesting
npm test
npm run test:unit
npm run test:integrationContributing
Contributions are welcome.
Fork the repository
Create a feature branch
Make and test your changes
Open a pull request
License
MIT
Built with TypeScript, Rust, Tauri, and MCP.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ruizrica/rust-debug-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server