Skip to content

Commit a16649b

Browse files
committed
Fix argument splitting to work on spaces
1 parent 567c15a commit a16649b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const createTransport = async (query: express.Request["query"]) => {
2323

2424
if (transportType === "stdio") {
2525
const command = query.command as string;
26-
const args = (query.args as string).split(",");
26+
const args = (query.args as string).split(/\s+/);
2727
console.log(`Stdio transport: command=${command}, args=${args}`);
2828
const transport = new StdioClientTransport({ command, args });
2929
await transport.start();

0 commit comments

Comments
 (0)