mirror of
https://github.com/penpot/penpot-mcp.git
synced 2026-07-23 14:38:38 +00:00
Switch WebSocket port from 8080 to 4402
This commit is contained in:
parent
3da2065a18
commit
afb00f6033
@ -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
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -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
|
||||
*/
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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 = () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user