mirror of
https://github.com/penpot/penpot.git
synced 2026-09-23 20:36:15 +00:00
🐛 Bind MCP PluginBridge WebSocket to configured host (#11605)
The plugin WebSocket bridge ignored PENPOT_MCP_SERVER_HOST and bound all interfaces, exposing unauthenticated task dispatch to the network in single-user mode. Pass mcpServer.host into WebSocketServer, mirroring the ReplServer fix, so the bridge binds localhost by default and 0.0.0.0 only on explicit opt-in. Closes #11603. AI-assisted-by: muse-spark-1.3-contributor
This commit is contained in:
parent
5c22f5bfb7
commit
b5274a4476
@ -94,7 +94,7 @@ export class PluginBridge {
|
||||
private readonly taskTimeoutSecs: number,
|
||||
private readonly redisBridge?: RedisBridge
|
||||
) {
|
||||
this.wsServer = new WebSocketServer({ port: port });
|
||||
this.wsServer = new WebSocketServer({ port: port, host: mcpServer.host });
|
||||
this.setupWebSocketHandlers();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user