File tree Expand file tree Collapse file tree 4 files changed +153
-6
lines changed Expand file tree Collapse file tree 4 files changed +153
-6
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,13 @@ The MCP Inspector includes a proxy server that can run and communicate with loca
54
54
55
55
The MCP Inspector supports the following configuration settings. To change them, click on the ` Configuration ` button in the MCP Inspector UI:
56
56
57
- | Setting | Description | Default |
58
- | --------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ------- |
59
- | ` MCP_SERVER_REQUEST_TIMEOUT ` | Timeout for requests to the MCP server (ms) | 10000 |
60
- | ` MCP_REQUEST_TIMEOUT_RESET_ON_PROGRESS ` | Reset timeout on progress notifications | true |
61
- | ` MCP_REQUEST_MAX_TOTAL_TIMEOUT ` | Maximum total timeout for requests sent to the MCP server (ms) (Use with progress notifications) | 60000 |
62
- | ` 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 | "" |
57
+ | Setting | Description | Default |
58
+ | --------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------- |
59
+ | ` MCP_SERVER_REQUEST_TIMEOUT ` | Timeout for requests to the MCP server (ms) | 10000 |
60
+ | ` MCP_REQUEST_TIMEOUT_RESET_ON_PROGRESS ` | Reset timeout on progress notifications | true |
61
+ | ` MCP_REQUEST_MAX_TOTAL_TIMEOUT ` | Maximum total timeout for requests sent to the MCP server (ms) (Use with progress notifications) | 60000 |
62
+ | ` 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 | "" |
63
+ | ` MCP_AUTO_OPEN_ENABLED ` | Enable automatic browser opening when inspector starts. Only as environment var, not configurable in browser. | true |
63
64
64
65
These settings can be adjusted in real-time through the UI and will persist across sessions.
65
66
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
+ import open from "open" ;
3
4
import { resolve , dirname } from "path" ;
4
5
import { spawnPromise } from "spawn-rx" ;
5
6
import { fileURLToPath } from "url" ;
@@ -99,6 +100,9 @@ async function main() {
99
100
100
101
if ( serverOk ) {
101
102
try {
103
+ if ( process . env . MCP_AUTO_OPEN_ENABLED !== "false" ) {
104
+ open ( `http://127.0.0.1:${ CLIENT_PORT } ` ) ;
105
+ }
102
106
await spawnPromise ( "node" , [ inspectorClientPath ] , {
103
107
env : { ...process . env , PORT : CLIENT_PORT } ,
104
108
signal : abort . signal ,
Original file line number Diff line number Diff line change 45
45
"@modelcontextprotocol/inspector-server" : " ^0.12.0" ,
46
46
"@modelcontextprotocol/sdk" : " ^1.11.0" ,
47
47
"concurrently" : " ^9.0.1" ,
48
+ "open" : " ^10.1.0" ,
48
49
"shell-quote" : " ^1.8.2" ,
49
50
"spawn-rx" : " ^5.1.2" ,
50
51
"ts-node" : " ^10.9.2" ,
You can’t perform that action at this time.
0 commit comments