Fix argument splitting to work on spaces

This commit is contained in:
Justin Spahr-Summers 2024-10-21 14:20:26 +01:00
commit a16649be87
No known key found for this signature in database

View file

@ -23,7 +23,7 @@ const createTransport = async (query: express.Request["query"]) => {
if (transportType === "stdio") {
const command = query.command as string;
const args = (query.args as string).split(",");
const args = (query.args as string).split(/\s+/);
console.log(`Stdio transport: command=${command}, args=${args}`);
const transport = new StdioClientTransport({ command, args });
await transport.start();