Skip to content

Commit 53db5a2

Browse files
author
colinmcneil
committed
Improve settings copy
1 parent a6a5f9f commit 53db5a2

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

src/extension/ui/src/components/Settings.tsx

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ import {
1818
Stack,
1919
Grid2,
2020
Link,
21-
CircularProgress
21+
CircularProgress,
22+
Alert,
23+
AlertTitle
2224
} from '@mui/material';
2325
import {
2426
ExpandMore as ExpandMoreIcon,
@@ -110,14 +112,19 @@ const Settings = ({ settings, setSettings, mcpClientStates, onUpdate }: { onUpda
110112
))}
111113
</List>
112114
<Divider />
113-
<Stack direction="row" alignItems="center" justifyContent="space-evenly" spacing={1} sx={{ mt: 2 }}>
114-
<IconButton onClick={() => navigator.clipboard.writeText(DOCKER_MCP_CONFIG.command + ' ' + DOCKER_MCP_CONFIG.args.join(' '))}>
115-
<ContentCopy />
116-
</IconButton>
117-
<Typography variant="caption" sx={theme => ({ backgroundColor: theme.palette.grey[200], padding: 1, borderRadius: 1, fontFamily: 'monospace', whiteSpace: 'nowrap', overflow: 'auto' })}>
118-
{DOCKER_MCP_CONFIG.command} {DOCKER_MCP_CONFIG.args.join(' ')}
119-
</Typography>
120-
</Stack>
115+
<Alert severity="info">
116+
<AlertTitle>Other MCP Clients</AlertTitle>
117+
You can connect other MCP clients to the same server by specifying the following command:
118+
<Stack direction="row" alignItems="center" justifyContent="space-evenly" spacing={1} sx={{ mt: 2 }}>
119+
<IconButton onClick={() => navigator.clipboard.writeText(DOCKER_MCP_CONFIG.command + ' ' + DOCKER_MCP_CONFIG.args.join(' '))}>
120+
<ContentCopy />
121+
</IconButton>
122+
<Typography variant="caption" sx={theme => ({ backgroundColor: theme.palette.grey[200], padding: 1, borderRadius: 1, fontFamily: 'monospace', whiteSpace: 'nowrap', overflow: 'auto' })}>
123+
{DOCKER_MCP_CONFIG.command} {DOCKER_MCP_CONFIG.args.join(' ')}
124+
</Typography>
125+
</Stack>
126+
</Alert>
127+
121128
</Paper>
122129
</AccordionDetails>
123130
</Accordion >
@@ -196,7 +203,7 @@ const Settings = ({ settings, setSettings, mcpClientStates, onUpdate }: { onUpda
196203
</Accordion >
197204

198205
{/* Developer Settings Section */}
199-
< Accordion >
206+
< Accordion sx={{ width: '100%' }}>
200207
<AccordionSummary
201208
expandIcon={<ExpandMoreIcon />}
202209
aria-controls="developer-settings-content"
@@ -207,7 +214,12 @@ const Settings = ({ settings, setSettings, mcpClientStates, onUpdate }: { onUpda
207214
<AccordionDetails>
208215
<Paper elevation={0} sx={{ p: 2 }}>
209216
<Grid2 container spacing={3}>
210-
217+
<Grid2 size={12}>
218+
<Button variant="contained" color="primary" onClick={() => {
219+
localStorage.clear();
220+
window.location.reload();
221+
}}>Reset Local Storage</Button>
222+
</Grid2>
211223
</Grid2>
212224
</Paper>
213225
</AccordionDetails>

0 commit comments

Comments
 (0)