File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import cors from "cors";
4
4
import EventSource from "eventsource" ;
5
5
import { parseArgs } from "node:util" ;
6
6
import { parse as shellParseArgs } from "shell-quote" ;
7
- import { platform } from "node:os" ;
8
7
9
8
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js" ;
10
9
import {
@@ -43,12 +42,7 @@ const createTransport = async (query: express.Request["query"]) => {
43
42
const origArgs = shellParseArgs ( query . args as string ) as string [ ] ;
44
43
const env = query . env ? JSON . parse ( query . env as string ) : undefined ;
45
44
46
- // On Windows, we need to find the actual executable to run
47
- // On other platforms, we can just use the command as-is
48
- const { cmd, args } =
49
- platform ( ) === "win32"
50
- ? findActualExecutable ( command , origArgs )
51
- : { cmd : command , args : origArgs } ;
45
+ const { cmd, args } = findActualExecutable ( command , origArgs ) ;
52
46
53
47
console . log (
54
48
`Stdio transport: command=${ cmd } , args=${ args } , env=${ JSON . stringify ( env ) } ` ,
You can’t perform that action at this time.
0 commit comments