You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Editor/UnityBridge/McpUnityEditorWindow.cs
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,24 @@ private void DrawServerTab()
107
107
108
108
EditorGUILayout.Space();
109
109
110
+
// Test timeout setting
111
+
EditorGUILayout.BeginHorizontal();
112
+
intnewTimeout=EditorGUILayout.IntField(newGUIContent("Request Timeout (seconds)","Timeout in seconds for tool request"),settings.RequestTimeoutSeconds);
Debug.LogError($"Request timeout must be at least {McpUnitySettings.RequestTimeoutMinimum} seconds.");
117
+
}
118
+
119
+
if(newTimeout!=settings.RequestTimeoutSeconds)
120
+
{
121
+
settings.RequestTimeoutSeconds=newTimeout;
122
+
settings.SaveSettings();
123
+
}
124
+
EditorGUILayout.EndHorizontal();
125
+
126
+
EditorGUILayout.Space();
127
+
110
128
// Auto start server toggle
111
129
boolautoStartServer=EditorGUILayout.Toggle(newGUIContent("Auto Start Server","Automatically starts the MCP server when Unity opens"),settings.AutoStartServer);
0 commit comments