File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { api } from "./client" ;
22
33export type SearchEntityType =
4- "servers" | "gateways" | "tools" | "resources" | "prompts" | "agents" | "teams" | "users" ;
4+ | "servers"
5+ | "gateways"
6+ | "tools"
7+ | "resources"
8+ | "prompts"
9+ | "agents"
10+ | "teams"
11+ | "users" ;
512
613export interface GlobalSearchItem {
714 id ?: string ;
Original file line number Diff line number Diff line change @@ -70,7 +70,9 @@ interface Prompt {
7070}
7171
7272type ComponentWithType =
73- ( Tool & { type : "tools" } ) | ( Resource & { type : "resources" } ) | ( Prompt & { type : "prompts" } ) ;
73+ | ( Tool & { type : "tools" } )
74+ | ( Resource & { type : "resources" } )
75+ | ( Prompt & { type : "prompts" } ) ;
7476
7577interface MCPServersResponse {
7678 gateways ?: MCPServer [ ] ;
Original file line number Diff line number Diff line change @@ -68,7 +68,9 @@ interface Prompt {
6868}
6969
7070type ComponentWithType =
71- ( Tool & { type : "tools" } ) | ( Resource & { type : "resources" } ) | ( Prompt & { type : "prompts" } ) ;
71+ | ( Tool & { type : "tools" } )
72+ | ( Resource & { type : "resources" } )
73+ | ( Prompt & { type : "prompts" } ) ;
7274
7375function DetailRow ( {
7476 label,
Original file line number Diff line number Diff line change @@ -402,26 +402,32 @@ const MCPServerAccordionItem = memo(function MCPServerAccordionItem({
402402 const StatusIcon = status . Icon ;
403403 const tools = useMemo (
404404 ( ) =>
405- getResponseItems ( toolsData , "tools" ) . map ( ( tool ) : SelectableComponent => ( {
406- ...tool ,
407- kind : "tools" ,
408- } ) ) ,
405+ getResponseItems ( toolsData , "tools" ) . map (
406+ ( tool ) : SelectableComponent => ( {
407+ ...tool ,
408+ kind : "tools" ,
409+ } ) ,
410+ ) ,
409411 [ toolsData ] ,
410412 ) ;
411413 const resources = useMemo (
412414 ( ) =>
413- getResponseItems ( resourcesData , "resources" ) . map ( ( resource ) : SelectableComponent => ( {
414- ...resource ,
415- kind : "resources" ,
416- } ) ) ,
415+ getResponseItems ( resourcesData , "resources" ) . map (
416+ ( resource ) : SelectableComponent => ( {
417+ ...resource ,
418+ kind : "resources" ,
419+ } ) ,
420+ ) ,
417421 [ resourcesData ] ,
418422 ) ;
419423 const prompts = useMemo (
420424 ( ) =>
421- getResponseItems ( promptsData , "prompts" ) . map ( ( prompt ) : SelectableComponent => ( {
422- ...prompt ,
423- kind : "prompts" ,
424- } ) ) ,
425+ getResponseItems ( promptsData , "prompts" ) . map (
426+ ( prompt ) : SelectableComponent => ( {
427+ ...prompt ,
428+ kind : "prompts" ,
429+ } ) ,
430+ ) ,
425431 [ promptsData ] ,
426432 ) ;
427433 const isLoadingComponents = toolsLoading || resourcesLoading || promptsLoading ;
You can’t perform that action at this time.
0 commit comments