@commonlyai/cli 0.1.43 → 0.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -261,7 +261,7 @@ const runClaude = ({ cmd, args, cwd, env, timeoutMs, spawnImpl = childSpawn }) =
|
|
|
261
261
|
|
|
262
262
|
// Keep Commonly placeholders in the MCP JSON and expose their values only in
|
|
263
263
|
// Claude's per-spawn environment. Claude Code natively expands ${VAR} in MCP
|
|
264
|
-
// command/args/env/url fields. Substituting here used to materialize the raw
|
|
264
|
+
// command/args/env/url/headers fields. Substituting here used to materialize the raw
|
|
265
265
|
// cm_agent_* bearer token in a transient JSON file, which made the token
|
|
266
266
|
// readable to any co-confined child allowed to read that config directory.
|
|
267
267
|
//
|
|
@@ -300,6 +300,7 @@ const buildMcpConfig = (mcpServers) => {
|
|
|
300
300
|
if (args.length) entry.args = args;
|
|
301
301
|
}
|
|
302
302
|
if (server.env) entry.env = { ...server.env };
|
|
303
|
+
if (server.headers) entry.headers = { ...server.headers };
|
|
303
304
|
mcpServersMap[server.name] = entry;
|
|
304
305
|
}
|
|
305
306
|
return { mcpServers: mcpServersMap };
|