You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to commit my .claude.json file so that I can keep a history of my setup, as I do with all other config files. However currently the recommended approach for setting up MCP servers with credentials is to hardcode the secrets into the env field of the server config in the Claude json file. This stops it from being able to be safely commited.
Desired solution
I would like for env variables to have some magic prefix (maybe !cmd:) that will cause them to be evaluated in a shell and the output to be substituted for the variable value. This would allow me to replace this:
Usecase
I want to be able to commit my
.claude.json
file so that I can keep a history of my setup, as I do with all other config files. However currently the recommended approach for setting up MCP servers with credentials is to hardcode the secrets into theenv
field of the server config in the Claude json file. This stops it from being able to be safely commited.Desired solution
I would like for env variables to have some magic prefix (maybe
!cmd:
) that will cause them to be evaluated in a shell and the output to be substituted for the variable value. This would allow me to replace this:with this, which can be commited:
The text was updated successfully, but these errors were encountered: