@@ -26,7 +26,6 @@ import type {
2626 McpFaq ,
2727 McpProbeRequest ,
2828 McpTransport ,
29- McpVisibility ,
3029} from "../types/mcp" ;
3130import { isImageIcon } from "../utils/icon" ;
3231
@@ -97,7 +96,6 @@ const EMPTY: CreateMcpParams = {
9796 usageExamples : [ ] ,
9897 faqs : [ ] ,
9998 notes : [ ] ,
100- visibility : "public" ,
10199} ;
102100
103101const TRANSPORT_OPTIONS : McpTransport [ ] = [ "stdio" , "streamable-http" , "sse" ] ;
@@ -194,7 +192,6 @@ function detailToForm(detail: McpDetail): CreateMcpParams {
194192 usageExamples : detail . usageExamples ,
195193 faqs : detail . faqs ,
196194 notes : detail . notes ,
197- visibility : detail . visibility ?? "public" ,
198195 } ;
199196}
200197
@@ -991,11 +988,6 @@ const McpCreateModal: React.FC<McpCreateModalProps> = ({
991988 label : t ( `mcp.create.transport.${ tr } ` ) ,
992989 } ) ) ;
993990
994- const visibilitySegments = [
995- { value : "public" as McpVisibility , label : t ( "mcp.create.visPublic" ) } ,
996- { value : "private" as McpVisibility , label : t ( "mcp.create.visPrivate" ) } ,
997- ] ;
998-
999991 // Preview src: the freshly-picked file's object URL wins; otherwise the
1000992 // stored icon (a persisted storage URL, or a legacy base64 icon on edit).
1001993 const iconSrc = iconPreview || form . icon ;
@@ -1684,15 +1676,6 @@ const McpCreateModal: React.FC<McpCreateModalProps> = ({
16841676 ) }
16851677 </ Section >
16861678
1687- { /* 7. 可见范围 */ }
1688- < Section full title = { t ( "mcp.create.sectionVisibility" ) } >
1689- < Segments
1690- full
1691- value = { form . visibility }
1692- options = { visibilitySegments }
1693- onChange = { ( v ) => update ( "visibility" , v ) }
1694- />
1695- </ Section >
16961679 </ >
16971680 ) }
16981681 </ >
0 commit comments