@@ -16,16 +16,17 @@ import {
16
16
ListItem ,
17
17
ListItemText ,
18
18
Stack ,
19
+ Tooltip ,
19
20
Typography ,
20
21
} from '@mui/material' ;
21
22
import { useState } from 'react' ;
22
23
23
24
import ChatGPTIcon from '../../assets/chatgpt.svg' ;
24
25
import ClaudeIcon from '../../assets/claude-ai-icon.svg' ;
26
+ import ContinueIcon from '../../assets/continue.svg' ;
25
27
import CursorIcon from '../../assets/cursor.svg' ;
26
28
import GordonIcon from '../../assets/gordon-icon.png' ;
27
29
import WindsurfIcon from '../../assets/windsurf.svg' ;
28
- import ContinueIcon from '../../assets/continue.svg' ;
29
30
import { CATALOG_LAYOUT_SX , DOCKER_MCP_COMMAND } from '../../Constants' ;
30
31
31
32
// Initialize the Docker Desktop client
@@ -175,23 +176,34 @@ function ClientSetting({
175
176
}
176
177
title = { < Typography variant = "subtitle2" > { name } </ Typography > }
177
178
subheader = {
178
- < Typography
179
- variant = "body2"
180
- sx = { {
181
- color : 'text.secondary' ,
182
- alignItems : 'center' ,
183
- display : 'flex' ,
184
- cursor : 'pointer' ,
185
- } }
186
- onClick = { ( ) => setExpanded ( ! expanded ) }
187
- >
188
- Manual configuration
189
- { expanded ? (
190
- < KeyboardArrowDownIcon fontSize = "small" />
191
- ) : (
192
- < KeyboardArrowRightIcon fontSize = "small" />
193
- ) }
194
- </ Typography >
179
+ mcpClientState . exists ? (
180
+ < Typography
181
+ variant = "body2"
182
+ sx = { {
183
+ color : 'text.secondary' ,
184
+ alignItems : 'center' ,
185
+ display : 'flex' ,
186
+ cursor : 'pointer' ,
187
+ } }
188
+ onClick = { ( ) => setExpanded ( ! expanded ) }
189
+ >
190
+ Manual configuration
191
+ { expanded ? (
192
+ < KeyboardArrowDownIcon fontSize = "small" />
193
+ ) : (
194
+ < KeyboardArrowRightIcon fontSize = "small" />
195
+ ) }
196
+ </ Typography >
197
+ ) : (
198
+ < Typography
199
+ variant = "body2"
200
+ sx = { {
201
+ color : 'text.secondary' ,
202
+ } }
203
+ >
204
+ Client not installed
205
+ </ Typography >
206
+ )
195
207
}
196
208
action = {
197
209
< Stack direction = "row" spacing = { 1 } >
@@ -278,6 +290,7 @@ function ClientSetting({
278
290
< Button
279
291
sx = { { fontSize : 12 } }
280
292
size = "small"
293
+ disabled
281
294
onClick = { async ( ) => {
282
295
setButtonsLoading ( {
283
296
...buttonsLoading ,
0 commit comments