File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -120,3 +120,5 @@ log.txt
120120log.txt.meta
121121Server~ /build /*
122122Server~ /node_modules /*
123+ .bmad-core /
124+ .windsurf /
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ private void DrawServerTab()
175175 mcpUnityServer . StopServer ( ) ;
176176 }
177177
178- Repaint ( ) ;
178+ // Repaint();
179179
180180 GUI . enabled = true ;
181181 EditorGUILayout . EndHorizontal ( ) ;
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ public void StartServer()
127127 {
128128 var host = McpUnitySettings . Instance . AllowRemoteConnections ? "0.0.0.0" : "localhost" ;
129129 _webSocketServer = new WebSocketServer ( $ "ws://{ host } :{ McpUnitySettings . Instance . Port } ") ;
130+ _webSocketServer . ReuseAddress = true ;
130131 _webSocketServer . AddWebSocketService ( "/McpUnity" , ( ) => new McpUnitySocketHandler ( this ) ) ;
131132 _webSocketServer . Start ( ) ;
132133 McpLogger . LogInfo ( $ "WebSocket server started successfully on { host } :{ McpUnitySettings . Instance . Port } .") ;
You can’t perform that action at this time.
0 commit comments