@@ -4,7 +4,6 @@ import SearchIcon from '@mui/icons-material/Search';
4
4
import SwapVert from '@mui/icons-material/SwapVert' ;
5
5
import {
6
6
Alert ,
7
- Badge ,
8
7
Box ,
9
8
Button ,
10
9
CircularProgress ,
@@ -24,7 +23,6 @@ import {
24
23
import React , { Suspense , useMemo , useState } from 'react' ;
25
24
26
25
import { CATALOG_LAYOUT_SX } from '../Constants' ;
27
- import { MCPClientState } from '../MCPClients' ;
28
26
import { CatalogItemRichened } from '../types/catalog' ;
29
27
import YourClients from './tabs/YourClients' ;
30
28
@@ -39,12 +37,7 @@ interface CatalogGridProps {
39
37
40
38
export const CatalogGrid : React . FC < CatalogGridProps > = ( { appProps } ) => {
41
39
// Extract all the values we need from appProps
42
- const {
43
- catalogItems,
44
- registryItems,
45
- mcpClientStates,
46
- isLoading : mcpLoading ,
47
- } = appProps ;
40
+ const { catalogItems, registryItems } = appProps ;
48
41
49
42
const [ search , setSearch ] = useState < string > ( '' ) ;
50
43
const [ tab , setTab ] = useState < number > ( 0 ) ;
@@ -83,14 +76,6 @@ export const CatalogGrid: React.FC<CatalogGridProps> = ({ appProps }) => {
83
76
) ;
84
77
}
85
78
86
- // Check if there are any configured clients
87
- const noConfiguredClients =
88
- ! mcpLoading && mcpClientStates
89
- ? ! Object . values ( mcpClientStates as Record < string , MCPClientState > ) . some (
90
- ( state ) => state . exists && state . configured
91
- )
92
- : false ;
93
-
94
79
return (
95
80
< Stack spacing = { 2 } justifyContent = "center" alignItems = "center" >
96
81
< Stack
@@ -140,18 +125,7 @@ export const CatalogGrid: React.FC<CatalogGridProps> = ({ appProps }) => {
140
125
sx = { CATALOG_LAYOUT_SX }
141
126
>
142
127
< Tab label = "Tools" />
143
- < Tab
144
- label = {
145
- < Badge
146
- variant = "dot"
147
- invisible = { ! noConfiguredClients }
148
- badgeContent = { 'TEST' }
149
- color = "error"
150
- >
151
- Clients
152
- </ Badge >
153
- }
154
- />
128
+ < Tab label = "Clients" />
155
129
</ Tabs >
156
130
{ tab === 0 && (
157
131
< Stack
0 commit comments