We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
command
1 parent 8d8af87 commit 9a1540cCopy full SHA for 9a1540c
server/src/index.ts
@@ -181,7 +181,7 @@ const createTransport = async (req: express.Request): Promise<Transport> => {
181
const transportType = query.transportType as string;
182
183
if (transportType === "stdio") {
184
- const command = query.command as string;
+ const command = (query.command as string).trim();
185
const origArgs = shellParseArgs(query.args as string) as string[];
186
const queryEnv = query.env ? JSON.parse(query.env as string) : {};
187
const env = { ...process.env, ...defaultEnvironment, ...queryEnv };
0 commit comments