@@ -59,7 +59,6 @@ const MCPClientSettings = ({ appProps }: MCPClientSettingsProps) => {
59
59
60
60
return (
61
61
< Stack sx = { CATALOG_LAYOUT_SX } spacing = { 2 } >
62
- < Typography > Connect to runtimes for your tools</ Typography >
63
62
< Stack direction = "column" spacing = { 1 } >
64
63
{ Object . entries ( mcpClientStates ) . map (
65
64
( [ name , mcpClientState ] : [ string , any ] ) => {
@@ -175,19 +174,7 @@ function ClientSetting({
175
174
)
176
175
}
177
176
title = {
178
- < Typography variant = "subtitle2" >
179
- { name } { ' ' }
180
- { mcpClientState . exists && (
181
- < Chip
182
- label = { mcpClientState . configured ? 'Connected' : 'Disconnected' }
183
- color = { mcpClientState . configured ? 'success' : 'primary' }
184
- size = "small"
185
- />
186
- ) }
187
- { ! mcpClientState . exists && (
188
- < Chip label = "No Config Found" color = "warning" size = "small" />
189
- ) }
190
- </ Typography >
177
+ < Typography variant = "subtitle2" > { name } </ Typography >
191
178
}
192
179
subheader = {
193
180
< Typography
@@ -231,8 +218,15 @@ function ClientSetting({
231
218
size = "small"
232
219
>
233
220
< Stack direction = "row" alignItems = "center" spacing = { 1 } >
234
- < Typography sx = { { fontSize : 12 } } > Disconnect</ Typography >
235
- { buttonsLoading [ name ] && < CircularProgress size = { 12 } /> }
221
+ { buttonsLoading [ name ]
222
+ &&
223
+ < >
224
+ < Typography sx = { { fontSize : 12 , width : 70 } } > Connect</ Typography >
225
+ < CircularProgress size = { 12 } />
226
+ </ >
227
+ ||
228
+ < Typography sx = { { fontSize : 12 , width : 90 } } > Disconnect</ Typography >
229
+ }
236
230
</ Stack >
237
231
</ Button >
238
232
) }
@@ -261,8 +255,15 @@ function ClientSetting({
261
255
size = "small"
262
256
>
263
257
< Stack direction = "row" alignItems = "center" spacing = { 1 } >
264
- < Typography sx = { { fontSize : 12 } } > Connect</ Typography >
265
- { buttonsLoading [ name ] && < CircularProgress size = { 12 } /> }
258
+ { buttonsLoading [ name ]
259
+ &&
260
+ < >
261
+ < Typography sx = { { fontSize : 12 , width : 70 } } > Disconnect</ Typography >
262
+ < CircularProgress size = { 12 } />
263
+ </ >
264
+ ||
265
+ < Typography sx = { { fontSize : 12 , width : 90 } } > Connect</ Typography >
266
+ }
266
267
</ Stack >
267
268
</ Button >
268
269
) }
@@ -286,8 +287,15 @@ function ClientSetting({
286
287
} }
287
288
>
288
289
< Stack direction = "row" alignItems = "center" spacing = { 1 } >
289
- < Typography sx = { { fontSize : 12 } } > Configure</ Typography >
290
- { buttonsLoading [ name ] && < CircularProgress size = { 12 } /> }
290
+ { buttonsLoading [ name ]
291
+ &&
292
+ < >
293
+ < Typography sx = { { fontSize : 12 , width : 70 } } > Disconnect</ Typography >
294
+ < CircularProgress size = { 12 } />
295
+ </ >
296
+ ||
297
+ < Typography sx = { { fontSize : 12 , width : 90 } } > Connect</ Typography >
298
+ }
291
299
</ Stack >
292
300
</ Button >
293
301
) }
0 commit comments