mirror of
https://github.com/thomasnordquist/MQTT-Explorer.git
synced 2026-07-28 04:07:18 +00:00
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
23 lines
706 B
Bash
Executable File
23 lines
706 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Script to launch MQTT Explorer with MCP introspection enabled
|
|
# This allows tools like GitHub Copilot with Playwright MCP to interact with the app
|
|
|
|
REMOTE_DEBUG_PORT="${REMOTE_DEBUG_PORT:-9222}"
|
|
|
|
echo "Starting MQTT Explorer with MCP introspection enabled"
|
|
echo "Remote debugging port: $REMOTE_DEBUG_PORT"
|
|
echo ""
|
|
echo "You can now use Playwright MCP or other debugging tools to connect to the app"
|
|
echo "Connect to: http://localhost:$REMOTE_DEBUG_PORT"
|
|
echo ""
|
|
|
|
# Build the app if needed
|
|
if [ ! -d "dist" ]; then
|
|
echo "Building the app..."
|
|
yarn build
|
|
fi
|
|
|
|
# Start the app with MCP introspection flags
|
|
electron . --enable-mcp-introspection --remote-debugging-port=$REMOTE_DEBUG_PORT "$@"
|