Skip to content

Commit 406828a

Browse files
committed
Revert "fix(server) Differentiate command resolution by platform"
This reverts commit 0fa56e1.
1 parent 0fa56e1 commit 406828a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

server/src/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import cors from "cors";
44
import EventSource from "eventsource";
55
import { parseArgs } from "node:util";
66
import { parse as shellParseArgs } from "shell-quote";
7-
import { platform } from "node:os";
87

98
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
109
import {
@@ -43,12 +42,7 @@ const createTransport = async (query: express.Request["query"]) => {
4342
const origArgs = shellParseArgs(query.args as string) as string[];
4443
const env = query.env ? JSON.parse(query.env as string) : undefined;
4544

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);
5246

5347
console.log(
5448
`Stdio transport: command=${cmd}, args=${args}, env=${JSON.stringify(env)}`,

0 commit comments

Comments
 (0)