File tree Expand file tree Collapse file tree 3 files changed +6
-14
lines changed Expand file tree Collapse file tree 3 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ async function main() {
75
75
} ) ;
76
76
let server , serverOk ;
77
77
try {
78
-
79
78
server = spawnPromise (
80
79
"node" ,
81
80
[
@@ -92,26 +91,22 @@ async function main() {
92
91
signal : abort . signal ,
93
92
echoOutput : true ,
94
93
} ,
95
- )
94
+ ) ;
96
95
97
96
// Make sure server started before starting client
98
97
serverOk = await Promise . race ( [ server , delay ( 2 * 1000 ) ] ) ;
99
-
100
- } catch ( error ) { }
98
+ } catch ( error ) { }
101
99
102
100
if ( serverOk ) {
103
101
try {
104
-
105
102
await spawnPromise ( "node" , [ inspectorClientPath ] , {
106
103
env : { ...process . env , PORT : CLIENT_PORT } ,
107
104
signal : abort . signal ,
108
105
echoOutput : true ,
109
106
} ) ;
110
-
111
107
} catch ( e ) {
112
108
if ( ! cancelled || process . env . DEBUG ) throw e ;
113
109
}
114
-
115
110
}
116
111
117
112
return 0 ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ server.on("listening", () => {
20
20
console . log (
21
21
`🔍 MCP Inspector is up and running at http://127.0.0.1:${ port } 🚀` ,
22
22
) ;
23
- } )
23
+ } ) ;
24
24
server . on ( "error" , ( err ) => {
25
25
if ( err . message . includes ( `EADDRINUSE` ) ) {
26
26
console . error (
@@ -29,5 +29,5 @@ server.on("error", (err) => {
29
29
} else {
30
30
throw err ;
31
31
}
32
- } )
32
+ } ) ;
33
33
server . listen ( port ) ;
Original file line number Diff line number Diff line change @@ -190,12 +190,9 @@ server.on("listening", () => {
190
190
} ) ;
191
191
server . on ( "error" , ( err ) => {
192
192
if ( err . message . includes ( `EADDRINUSE` ) ) {
193
- console . error (
194
- `❌ Proxy Server PORT IS IN USE at port ${ PORT } ❌ ` ,
195
- ) ;
193
+ console . error ( `❌ Proxy Server PORT IS IN USE at port ${ PORT } ❌ ` ) ;
196
194
} else {
197
195
console . error ( err . message ) ;
198
196
}
199
197
process . exit ( 1 ) ;
200
- } )
201
-
198
+ } ) ;
You can’t perform that action at this time.
0 commit comments