Electron Debug MCP Server logo

Electron Debug MCP Server

by amafjarkasi

A powerful Model Context Protocol (MCP) server for debugging Electron applications with deep Chrome DevTools Protocol integration. It enables advanced debugging capabilities through a standardized API.

View on GitHub

Last updated: N/A

What is Electron Debug MCP Server?

Electron Debug MCP Server is a bridge between the Model Context Protocol (MCP) and Electron applications, enabling advanced debugging capabilities through a standardized API. It allows you to start, monitor, debug, and control Electron applications programmatically, with deep integration with Chrome DevTools Protocol for advanced debugging features.

How to use Electron Debug MCP Server?

To use the server, first clone the repository, install dependencies, and build the project. Then, start the server using npm run start. Clients can connect using an MCP client library, directly via stdin/stdout, or a tool that supports MCP. The server exposes resource endpoints to manage processes and access CDP functionalities.

Key features of Electron Debug MCP Server

  • Start and stop Electron applications with debugging enabled

  • List active Electron processes and monitor their status

  • Discover and connect to debugging targets using Chrome DevTools Protocol

  • Execute CDP commands and evaluate JavaScript in the context of pages

Use cases of Electron Debug MCP Server

  • Debugging Electron applications

  • Programmatically controlling Electron applications

  • Automated testing of Electron applications

  • Monitoring and logging Electron application behavior

FAQ from Electron Debug MCP Server

How do I start the server?

Run npm run start in the project directory.

How do I connect to the server?

Use an MCP client library, connect directly via stdin/stdout, or use a tool that supports MCP.

What are the resource endpoints?

The server exposes endpoints like electron://info, electron://process/{id}, electron://logs/{id}, electron://targets, and electron://cdp/{processId}/{targetId}.

How do I execute JavaScript in a page?

Use the electron://cdp/{processId}/{targetId}/Runtime/evaluate endpoint with the JavaScript expression in the request body.

How do I list available debugging targets?

Use the electron://targets endpoint.