Skip to content

Commit b9f8a66

Browse files
committed
Configured 체크 로직 수정
1 parent 837228d commit b9f8a66

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

MCPForUnity/Editor/Clients/McpClientConfiguratorBase.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ public override McpStatus CheckStatus(bool attemptAutoRewrite = true)
241241
}
242242
else
243243
{
244-
client.SetStatus(McpStatus.IncorrectPath);
244+
// Configuration exists but does not match expected values (e.g. transport changed)
245+
client.SetStatus(McpStatus.NotConfigured);
245246
}
246247
}
247248
catch (Exception ex)
@@ -359,7 +360,8 @@ public override McpStatus CheckStatus(bool attemptAutoRewrite = true)
359360
}
360361
else
361362
{
362-
client.SetStatus(McpStatus.IncorrectPath);
363+
// Configuration exists but does not match expected values (e.g. transport changed)
364+
client.SetStatus(McpStatus.NotConfigured);
363365
}
364366
}
365367
catch (Exception ex)

MCPForUnity/Editor/Windows/MCPForUnityEditorWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public void CreateGUI()
146146
var connectionRoot = connectionTree.Instantiate();
147147
connectionPlaceholder.Add(connectionRoot);
148148
connectionSection = new McpConnectionSection(connectionRoot);
149-
connectionSection.OnManualConfigUpdateRequested += () => clientConfigSection?.UpdateManualConfiguration();
149+
connectionSection.OnManualConfigUpdateRequested += () => clientConfigSection?.RefreshSelectedClient();
150150
}
151151

152152
// 4. Client Config Section

0 commit comments

Comments
 (0)