Skip to content

Commit 1aea337

Browse files
refactor: use ES6 shorthand property syntax in start.js
Replace explicit property assignments with shorthand syntax when property names match variable names (e.g., SERVER_PORT: SERVER_PORT becomes just SERVER_PORT).
1 parent 042e7a2 commit 1aea337

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

client/bin/start.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ async function startDevServer(serverOptions) {
3838
cwd: resolve(__dirname, "../..", "server"),
3939
env: {
4040
...process.env,
41-
SERVER_PORT: SERVER_PORT,
42-
CLIENT_PORT: CLIENT_PORT,
41+
SERVER_PORT,
42+
CLIENT_PORT,
4343
MCP_PROXY_TOKEN: sessionToken,
4444
MCP_ENV_VARS: JSON.stringify(envVars),
4545
},
@@ -97,8 +97,8 @@ async function startProdServer(serverOptions) {
9797
{
9898
env: {
9999
...process.env,
100-
SERVER_PORT: SERVER_PORT,
101-
CLIENT_PORT: CLIENT_PORT,
100+
SERVER_PORT,
101+
CLIENT_PORT,
102102
MCP_PROXY_TOKEN: sessionToken,
103103
MCP_ENV_VARS: JSON.stringify(envVars),
104104
},
@@ -128,7 +128,7 @@ async function startDevClient(clientOptions) {
128128

129129
const client = spawn(clientCommand, clientArgs, {
130130
cwd: resolve(__dirname, ".."),
131-
env: { ...process.env, CLIENT_PORT: CLIENT_PORT },
131+
env: { ...process.env, CLIENT_PORT },
132132
signal: abort.signal,
133133
echoOutput: true,
134134
});
@@ -190,7 +190,7 @@ async function startProdClient(clientOptions) {
190190
await spawnPromise("node", [inspectorClientPath], {
191191
env: {
192192
...process.env,
193-
CLIENT_PORT: CLIENT_PORT,
193+
CLIENT_PORT,
194194
INSPECTOR_URL: url,
195195
},
196196
signal: abort.signal,

0 commit comments

Comments
 (0)