Skip to content

Commit 8383714

Browse files
Merge branch 'main' into bugfix/authorization-url-generate-state
2 parents 379126d + 9f6e731 commit 8383714

21 files changed

+1941
-128
lines changed

cli/src/cli.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,21 @@ async function runWebClient(args: Args): Promise<void> {
6666
abort.abort();
6767
});
6868

69+
// Build arguments to pass to start.js
70+
const startArgs: string[] = [];
71+
72+
// Pass environment variables
73+
for (const [key, value] of Object.entries(args.envArgs)) {
74+
startArgs.push("-e", `${key}=${value}`);
75+
}
76+
77+
// Pass command and args (using -- to separate them)
78+
if (args.command) {
79+
startArgs.push("--", args.command, ...args.args);
80+
}
81+
6982
try {
70-
await spawnPromise("node", [inspectorClientPath], {
83+
await spawnPromise("node", [inspectorClientPath, ...startArgs], {
7184
signal: abort.signal,
7285
echoOutput: true,
7386
});

client/bin/start.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ async function startProdServer(serverOptions) {
9191
"node",
9292
[
9393
inspectorServerPath,
94-
...(command ? [`--env`, command] : []),
95-
...(mcpServerArgs ? [`--args=${mcpServerArgs.join(" ")}`] : []),
94+
...(command ? [`--command`, command] : []),
95+
...(mcpServerArgs && mcpServerArgs.length > 0
96+
? [`--args`, mcpServerArgs.join(" ")]
97+
: []),
9698
],
9799
{
98100
env: {

client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@
2525
"cleanup:e2e": "node e2e/global-teardown.js"
2626
},
2727
"dependencies": {
28-
"@modelcontextprotocol/sdk": "^1.13.1",
28+
"@modelcontextprotocol/sdk": "^1.14.0",
2929
"@radix-ui/react-checkbox": "^1.1.4",
30-
"ajv": "^6.12.6",
3130
"@radix-ui/react-dialog": "^1.1.3",
3231
"@radix-ui/react-icons": "^1.3.0",
3332
"@radix-ui/react-label": "^2.1.0",
@@ -37,6 +36,7 @@
3736
"@radix-ui/react-tabs": "^1.1.1",
3837
"@radix-ui/react-toast": "^1.2.6",
3938
"@radix-ui/react-tooltip": "^1.1.8",
39+
"ajv": "^6.12.6",
4040
"class-variance-authority": "^0.7.0",
4141
"clsx": "^2.1.1",
4242
"cmdk": "^1.0.4",

0 commit comments

Comments
 (0)