File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22
3- import { join , dirname } from "path" ;
3+ import { resolve , dirname } from "path" ;
44import { spawnPromise } from "spawn-rx" ;
55import { fileURLToPath } from "url" ;
66
@@ -10,10 +10,22 @@ async function main() {
1010 // Get command line arguments
1111 const [ , , command , ...mcpServerArgs ] = process . argv ;
1212
13- const inspectorServerPath = join ( __dirname , "../server/build/index.js" ) ;
13+ const inspectorServerPath = resolve (
14+ __dirname ,
15+ ".." ,
16+ "server" ,
17+ "build" ,
18+ "index.js" ,
19+ ) ;
1420
1521 // Path to the client entry point
16- const inspectorClientPath = join ( __dirname , "../client/bin/cli.js" ) ;
22+ const inspectorClientPath = resolve (
23+ __dirname ,
24+ ".." ,
25+ "client" ,
26+ "bin" ,
27+ "cli.js" ,
28+ ) ;
1729
1830 const CLIENT_PORT = process . env . CLIENT_PORT ?? "5173" ;
1931 const SERVER_PORT = process . env . SERVER_PORT ?? "3000" ;
You can’t perform that action at this time.
0 commit comments