Keep MCP credentials out of claude's arguments #19

Merged
mikluko merged 2 commits from fix/mcp-config-file into main 2026-11-17 14:28:59 +00:00
Owner

Write MCP server JSON to a 0600 file in a private temporary directory and
pass its path to --mcp-config. Remove the file when claude exits and when
starting it fails, so HTTP header and stdio environment credentials no
longer appear in ps or /proc//cmdline.

claude 2.1.326 documents --mcp-config as accepting JSON files or strings.
Teach claude-tee to redact those files when recording cassettes.

Assisted-By: goose (Kimi)

Write MCP server JSON to a 0600 file in a private temporary directory and pass its path to --mcp-config. Remove the file when claude exits and when starting it fails, so HTTP header and stdio environment credentials no longer appear in ps or /proc/<pid>/cmdline. claude 2.1.326 documents --mcp-config as accepting JSON files or strings. Teach claude-tee to redact those files when recording cassettes. Assisted-By: goose (Kimi)
Keep MCP credentials out of claude's arguments
All checks were successful
CI / Changelog (pull_request) Successful in 4s
CI / Lint (pull_request) Successful in 36s
CI / Test (pull_request) Successful in 40s
168f96ea85
Write MCP server JSON to a 0600 file in a private temporary directory and
pass its path to --mcp-config. Remove the file when claude exits and when
starting it fails, so HTTP header and stdio environment credentials no
longer appear in ps or /proc/<pid>/cmdline.

claude 2.1.326 documents --mcp-config as accepting JSON files or strings.
Teach claude-tee to redact those files when recording cassettes.

Assisted-By: goose (Kimi)
claudeagent: Spec says its Args may name local files
All checks were successful
CI / Changelog (pull_request) Successful in 4s
CI / Test (pull_request) Successful in 28s
CI / Lint (pull_request) Successful in 1m22s
0d80519fc3
A Spawner that runs claude elsewhere cannot assume every argument is
self-contained since --mcp-config names a file.

Assisted-By: Claude <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/claudeacp!19
No description provided.