File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed
frontend/src/views/admin/mcp-server-catalog Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ export interface CreateMcpServerRequest {
110110 tags ?: string [ ] ;
111111 featured ?: boolean ;
112112 auto_install_new_default_team ?: boolean ;
113+ source ?: 'official_registry' | 'manual' ;
113114
114115 // Official Registry Sync Tracking
115116 official_name ?: string ;
@@ -460,6 +461,7 @@ export class McpCatalogService {
460461 status : 'active' ,
461462 featured : userRole === 'global_admin' ? ( data . featured || false ) : false ,
462463 auto_install_new_default_team : userRole === 'global_admin' ? ( data . auto_install_new_default_team || false ) : false ,
464+ source : ( data as any ) . source || 'manual' ,
463465
464466 // Official Registry Sync Tracking
465467 official_name : ( data as any ) . official_name || null ,
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ export interface McpServer {
4747 status : 'active' | 'deprecated' | 'maintenance'
4848 featured : boolean
4949 auto_install_new_default_team : boolean
50+ source : 'official_registry' | 'manual'
5051 created_at : string
5152 updated_at : string
5253 last_sync_at ?: string
Original file line number Diff line number Diff line change @@ -518,6 +518,18 @@ const goBack = () => {
518518 {{ t(`mcpCatalog.status.${server.status}`) }}
519519 </Badge >
520520 </div >
521+ <div class =" flex items-center gap-2" >
522+ <span class =" font-medium" >Source:</span >
523+ <Badge
524+ :variant =" server.source === 'official_registry' ? 'default' : 'secondary'"
525+ :class =" {
526+ 'bg-blue-100 text-blue-800 border-blue-200': server.source === 'official_registry',
527+ 'bg-gray-100 text-gray-800 border-gray-200': server.source === 'manual'
528+ }"
529+ >
530+ {{ server.source === 'official_registry' ? 'Official Registry' : 'Manual' }}
531+ </Badge >
532+ </div >
521533 <div ><span class =" font-medium" >{{ t('mcpCatalog.edit.values.visibility') }}</span > {{ server.visibility }}</div >
522534 </div >
523535 </dd >
You can’t perform that action at this time.
0 commit comments