Skip to content

Commit c70d198

Browse files
committed
fix: Pass args as string from client to server
1 parent fd0b962 commit c70d198

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/bin/start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async function startProdServer(serverOptions) {
9393
inspectorServerPath,
9494
...(command ? [`--command`, command] : []),
9595
...(mcpServerArgs && mcpServerArgs.length > 0
96-
? [`--args`, mcpServerArgs.join(" ")]
96+
? [`--args`, `"${mcpServerArgs.join(" ")}"`]
9797
: []),
9898
],
9999
{

server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ app.get("/config", originValidationMiddleware, authMiddleware, (req, res) => {
522522
res.json({
523523
defaultEnvironment,
524524
defaultCommand: values.command,
525-
defaultArgs: values.args,
525+
defaultArgs: values.args.substring(1, values.args.length - 1), // Remove quotes from args
526526
});
527527
} catch (error) {
528528
console.error("Error in /config route:", error);

0 commit comments

Comments
 (0)