Skip to content

Commit 96f09e5

Browse files
author
colinmcneil
committed
Slight tweaks to mcp client view
1 parent e8ee82e commit 96f09e5

File tree

2 files changed

+35
-22
lines changed

2 files changed

+35
-22
lines changed

src/extension/ui/src/components/CatalogGrid.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,9 @@ export const CatalogGrid: React.FC<CatalogGridProps> = ({ appProps }) => {
7676
justifyContent="center"
7777
sx={CATALOG_LAYOUT_SX}
7878
>
79-
<Typography variant="h3">Docker MCP Catalog</Typography>
79+
<Typography variant="h3">Docker MCP Toolkit</Typography>
8080
<Typography sx={{ color: 'text.secondary' }}>
81-
Browse the Docker MCP Catalog and connect Dockerized MCP servers to
82-
your favorite MCP Client
81+
Find and connect your favorite tools to MCP clients. One click away.
8382
</Typography>
8483
</Stack>
8584
{hasOutOfCatalog && (

src/extension/ui/src/components/tabs/YourClients.tsx

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import ContinueIcon from '../../assets/continue.svg';
2626
import CursorIcon from '../../assets/cursor.svg';
2727
import GordonIcon from '../../assets/gordon-icon.png';
2828
import { CATALOG_LAYOUT_SX, DOCKER_MCP_COMMAND } from '../../Constants';
29-
import { LinkOffOutlined, LinkOutlined } from '@mui/icons-material';
29+
import { LinkOff, LinkOffOutlined, LinkOutlined } from '@mui/icons-material';
3030

3131
// Initialize the Docker Desktop client
3232
const client = createDockerDesktopClient();
@@ -43,12 +43,15 @@ const iconMap = {
4343
};
4444

4545
const ConnectButtonStyle = (theme: Theme) => ({
46-
fontSize: '1.3em',
46+
fontSize: '14px',
4747
p: 1,
4848
alignItems: 'center',
4949
justifyContent: 'center',
5050
[theme.breakpoints.down('sm')]: {
51-
fontSize: '1em',
51+
p: '2px',
52+
'& .MuiTypography-root': {
53+
fontSize: '12px',
54+
},
5255
},
5356
});
5457

@@ -190,6 +193,7 @@ function ClientSetting({
190193
{
191194
mcpClientState.exists && mcpClientState.configured && (
192195
<Button
196+
color="warning"
193197
onClick={async () => {
194198
setButtonsLoading({
195199
...buttonsLoading,
@@ -212,22 +216,25 @@ function ClientSetting({
212216
<Stack direction="row" alignItems="center" spacing={1} sx={ConnectButtonStyle}>
213217
{(buttonsLoading[name] && (
214218
<>
215-
<Typography sx={{ fontSize: 12, width: 70 }}>
219+
<LinkOutlined />
220+
<Typography>
216221
Connect
217222
</Typography>
218223
<CircularProgress size={12} />
219224
</>
220225
)) || (
221-
<Typography sx={{ fontSize: 12, width: 90 }}>
222-
Disconnect
223-
</Typography>
226+
<>
227+
<LinkOffOutlined />
228+
<Typography>
229+
Disconnect
230+
</Typography>
231+
</>
224232
)}
225233
</Stack>
226234
</Button>
227235
)}
228236
{mcpClientState.exists && !mcpClientState.configured && (
229237
<Button
230-
sx={{ fontSize: 12 }}
231238
onClick={async () => {
232239
setButtonsLoading({
233240
...buttonsLoading,
@@ -257,25 +264,28 @@ function ClientSetting({
257264
<Stack direction="row" alignItems="center" spacing={1} sx={ConnectButtonStyle}>
258265
{(buttonsLoading[name] && (
259266
<>
260-
<Typography sx={{ fontSize: 12, width: 70 }}>
267+
<LinkOffOutlined />
268+
<Typography>
261269
Disconnect
262270
</Typography>
263271
<CircularProgress size={12} />
264272
</>
265273
)) || (
266-
<Typography sx={{ fontSize: 12, width: 90 }}>
267-
Connect
268-
</Typography>
274+
<>
275+
<LinkOutlined />
276+
<Typography>
277+
Connect
278+
</Typography>
279+
</>
269280
)}
270281
</Stack>
271282
</Button>
272283
)}
273284
{
274285
!mcpClientState.exists && (
275286
<Button
276-
sx={{ fontSize: 12 }}
277287
size="small"
278-
disabled
288+
variant="outlined"
279289
onClick={async () => {
280290
setButtonsLoading({
281291
...buttonsLoading,
@@ -294,15 +304,19 @@ function ClientSetting({
294304
<Stack direction="row" alignItems="center" spacing={1} sx={ConnectButtonStyle}>
295305
{(buttonsLoading[name] && (
296306
<>
297-
<Typography sx={{ fontSize: 12, width: 70 }}>
298-
Disconnect
307+
<LinkOffOutlined />
308+
<Typography>
309+
Attempt disconnect
299310
</Typography>
300311
<CircularProgress size={12} />
301312
</>
302313
)) || (
303-
<Typography sx={{ fontSize: 12, width: 90 }}>
304-
Connect
305-
</Typography>
314+
<>
315+
<LinkOutlined />
316+
<Typography>
317+
Attempt connection
318+
</Typography>
319+
</>
306320
)}
307321
</Stack>
308322
</Button>

0 commit comments

Comments
 (0)