Back to Home
Tom687 icon

context-bridge-mcp

by Tom687

Overview

An Electron desktop application demonstrating context bridge communication between renderer and main processes, allowing the execution of system commands from the renderer.

Installation

Run Command
npx electron .

Security Notes

CRITICAL RISK: The application exposes an 'executeCommand' function via the context bridge, allowing the renderer process (and thus potentially untrusted web content via an input field) to execute arbitrary system commands on the host machine using `child_process.exec`. This is a severe remote code execution vulnerability, allowing any user of the application to execute any command on their system. The `executeMCPCommand` function is also dangerous, as it executes commands with `mc-p` prefix, which could still lead to unintended system changes or exploits depending on what `mc-p` is.

Similar Servers

Stats

Interest Score0
Security Score1
Cost ClassLow
Avg Tokens100
Stars0
Forks0
Last Update2025-11-29

Tags

ElectronContext BridgeIPCSystem CommandsDesktop App