Skip to content

Commit 77d4050

Browse files
committed
Avoid double negative
1 parent ddd13ee commit 77d4050

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The MCP Inspector supports the following configuration settings. To change them,
5656
| `MCP_REQUEST_TIMEOUT_RESET_ON_PROGRESS` | Reset timeout on progress notifications | true |
5757
| `MCP_REQUEST_MAX_TOTAL_TIMEOUT` | Maximum total timeout for requests sent to the MCP server (ms) (Use with progress notifications) | 60000 |
5858
| `MCP_PROXY_FULL_ADDRESS` | Set this if you are running the MCP Inspector Proxy on a non-default address. Example: http://10.1.1.22:5577 | "" |
59-
| `MCP_AUTO_OPEN_DISABLED` | Disable automatic browser opening when inspector starts | false |
59+
| `MCP_AUTO_OPEN_ENABLED` | Enable automatic browser opening when inspector starts | true |
6060

6161
The inspector also supports configuration files to store settings for different MCP servers. This is useful when working with multiple servers or complex configurations:
6262

client/bin/start.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async function main() {
100100

101101
if (serverOk) {
102102
try {
103-
if (process.env.MCP_AUTO_OPEN_DISABLED !== "true") {
103+
if (process.env.MCP_AUTO_OPEN_ENABLED === "false") {
104104
open(`http://127.0.0.1:${CLIENT_PORT}`);
105105
}
106106
await spawnPromise("node", [inspectorClientPath], {

client/src/components/__tests__/Sidebar.test.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -583,21 +583,21 @@ describe("Sidebar Environment Variables", () => {
583583
openConfigSection();
584584

585585
const autoOpenDisabledInput = screen.getByTestId(
586-
"MCP_AUTO_OPEN_DISABLED-input",
586+
"MCP_AUTO_OPEN_ENABLED-input",
587587
);
588588
fireEvent.click(autoOpenDisabledInput);
589-
const trueOption = screen.getByTestId(
590-
"MCP_AUTO_OPEN_DISABLED-input-true",
589+
const falseOption = screen.getByTestId(
590+
"MCP_AUTO_OPEN_ENABLED-input-false",
591591
);
592-
fireEvent.click(trueOption);
592+
fireEvent.click(falseOption);
593593

594594
expect(setConfig).toHaveBeenCalledWith(
595595
expect.objectContaining({
596-
MCP_AUTO_OPEN_DISABLED: {
597-
label: "Auto Browser Open Disabled",
596+
MCP_AUTO_OPEN_ENABLED: {
597+
label: "Auto Browser Open Enabled",
598598
description:
599-
"Disable automatic browser opening when inspector starts",
600-
value: true,
599+
"Enable automatic browser opening when inspector starts",
600+
value: false,
601601
},
602602
}),
603603
);

client/src/lib/configurationTypes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ export type InspectorConfig = {
3737
/**
3838
* Disable automatic browser opening when inspector starts.
3939
*/
40-
MCP_AUTO_OPEN_DISABLED: ConfigItem;
40+
MCP_AUTO_OPEN_ENABLED: ConfigItem;
4141
};

client/src/lib/constants.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ export const DEFAULT_INSPECTOR_CONFIG: InspectorConfig = {
5252
"Set this if you are running the MCP Inspector Proxy on a non-default address. Example: http://10.1.1.22:5577",
5353
value: "",
5454
},
55-
MCP_AUTO_OPEN_DISABLED: {
56-
label: "Auto Browser Open Disabled",
57-
description: "Disable automatic browser opening when inspector starts",
58-
value: false,
55+
MCP_AUTO_OPEN_ENABLED: {
56+
label: "Auto Browser Open Enabled",
57+
description: "Enable automatic browser opening when inspector starts",
58+
value: true,
5959
},
6060
} as const;

0 commit comments

Comments
 (0)