File tree Expand file tree Collapse file tree 4 files changed +4
-53
lines changed Expand file tree Collapse file tree 4 files changed +4
-53
lines changed Original file line number Diff line number Diff line change @@ -405,6 +405,7 @@ const Sidebar = ({
405
405
/>
406
406
) : typeof configItem . value === "boolean" ? (
407
407
< Select
408
+ data-testid = { `${ configKey } -select` }
408
409
value = { configItem . value . toString ( ) }
409
410
onValueChange = { ( val ) => {
410
411
const newConfig = { ...config } ;
@@ -415,25 +416,12 @@ const Sidebar = ({
415
416
setConfig ( newConfig ) ;
416
417
} }
417
418
>
418
- < SelectTrigger
419
- id = { `${ configKey } -input` }
420
- data-testid = { `${ configKey } -input` }
421
- >
419
+ < SelectTrigger id = { `${ configKey } -input` } >
422
420
< SelectValue />
423
421
</ SelectTrigger >
424
422
< SelectContent >
425
- < SelectItem
426
- data-testid = { `${ configKey } -input-true` }
427
- value = "true"
428
- >
429
- True
430
- </ SelectItem >
431
- < SelectItem
432
- data-testid = { `${ configKey } -input-false` }
433
- value = "false"
434
- >
435
- False
436
- </ SelectItem >
423
+ < SelectItem value = "true" > True</ SelectItem >
424
+ < SelectItem value = "false" > False</ SelectItem >
437
425
</ SelectContent >
438
426
</ Select >
439
427
) : (
Original file line number Diff line number Diff line change @@ -576,33 +576,6 @@ describe("Sidebar Environment Variables", () => {
576
576
) ;
577
577
} ) ;
578
578
579
- it ( "should update auto browser open disabled" , ( ) => {
580
- const setConfig = jest . fn ( ) ;
581
- renderSidebar ( { config : DEFAULT_INSPECTOR_CONFIG , setConfig } ) ;
582
-
583
- openConfigSection ( ) ;
584
-
585
- const autoOpenDisabledInput = screen . getByTestId (
586
- "MCP_AUTO_OPEN_ENABLED-input" ,
587
- ) ;
588
- fireEvent . click ( autoOpenDisabledInput ) ;
589
- const falseOption = screen . getByTestId (
590
- "MCP_AUTO_OPEN_ENABLED-input-false" ,
591
- ) ;
592
- fireEvent . click ( falseOption ) ;
593
-
594
- expect ( setConfig ) . toHaveBeenCalledWith (
595
- expect . objectContaining ( {
596
- MCP_AUTO_OPEN_ENABLED : {
597
- label : "Auto Browser Open Enabled" ,
598
- description :
599
- "Enable automatic browser opening when inspector starts" ,
600
- value : false ,
601
- } ,
602
- } ) ,
603
- ) ;
604
- } ) ;
605
-
606
579
it ( "should maintain configuration state after multiple updates" , ( ) => {
607
580
const setConfig = jest . fn ( ) ;
608
581
const { rerender } = renderSidebar ( {
Original file line number Diff line number Diff line change @@ -33,9 +33,4 @@ export type InspectorConfig = {
33
33
* The full address of the MCP Proxy Server, in case it is running on a non-default address. Example: http://10.1.1.22:5577
34
34
*/
35
35
MCP_PROXY_FULL_ADDRESS : ConfigItem ;
36
-
37
- /**
38
- * Disable automatic browser opening when inspector starts.
39
- */
40
- MCP_AUTO_OPEN_ENABLED : ConfigItem ;
41
36
} ;
Original file line number Diff line number Diff line change @@ -52,9 +52,4 @@ export const DEFAULT_INSPECTOR_CONFIG: InspectorConfig = {
52
52
"Set this if you are running the MCP Inspector Proxy on a non-default address. Example: http://10.1.1.22:5577" ,
53
53
value : "" ,
54
54
} ,
55
- MCP_AUTO_OPEN_ENABLED : {
56
- label : "Auto Browser Open Enabled" ,
57
- description : "Enable automatic browser opening when inspector starts" ,
58
- value : true ,
59
- } ,
60
55
} as const ;
You can’t perform that action at this time.
0 commit comments