Fix argument splitting to work on spaces
This commit is contained in:
@@ -23,7 +23,7 @@ const createTransport = async (query: express.Request["query"]) => {
|
|||||||
|
|
||||||
if (transportType === "stdio") {
|
if (transportType === "stdio") {
|
||||||
const command = query.command as string;
|
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}`);
|
console.log(`Stdio transport: command=${command}, args=${args}`);
|
||||||
const transport = new StdioClientTransport({ command, args });
|
const transport = new StdioClientTransport({ command, args });
|
||||||
await transport.start();
|
await transport.start();
|
||||||
|
|||||||
Reference in New Issue
Block a user