Switch WebSocket port from 8080 to 4402

This commit is contained in:
Dominik Jain 2025-09-27 18:55:03 +02:00 committed by Dominik Jain
parent 3da2065a18
commit afb00f6033
6 changed files with 7 additions and 9 deletions

View File

@ -28,8 +28,6 @@ A Model Context Protocol (MCP) server that provides Penpot integration capabilit
npm start
A custom port can be specified: `npm start -- --port 8080`
### Summary of Commands

View File

@ -29,8 +29,8 @@ export class PenpotMcpServer {
};
constructor(
public port: number = 4401,
public webSocketPort: number = 8080,
private port: number = 4401,
private webSocketPort: number = 4402,
replPort: number = 4403
) {
this.configLoader = new ConfigurationLoader();

View File

@ -14,7 +14,7 @@ export class PluginBridge {
private readonly taskTimeouts: Map<string, NodeJS.Timeout> = new Map();
constructor(
port: number,
private port: number,
private taskTimeoutSecs: number = 30
) {
this.wsServer = new WebSocketServer({ port: port });
@ -53,7 +53,7 @@ export class PluginBridge {
});
});
this.logger.info("WebSocket server started on port 8080");
this.logger.info("WebSocket server started on port %d", this.port);
}
/**

View File

@ -11,7 +11,7 @@ import { createLogger } from "./logger";
*
* Usage:
* - Default port: node dist/index.js (runs on 4401)
* - Custom port: node dist/index.js --port 8080
* - Custom port: node dist/index.js --port <port>
* - Help: node dist/index.js --help
*/

View File

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Penpot MCP REPL</title>
<title>Penpot API REPL</title>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<style>
body {

View File

@ -42,7 +42,7 @@ function connectToMcpServer(): void {
}
try {
ws = new WebSocket("ws://localhost:8080");
ws = new WebSocket("ws://localhost:4402");
updateConnectionStatus("Connecting...", false);
ws.onopen = () => {