🎉 v5.7.1 - Universal ${} Placeholder Syntax
#156
Replies: 2 comments 8 replies
-
|
Great addition! I wish all tooling would follow this principle. I loath having to put secrets in my shell |
Beta Was this translation helpful? Give feedback.
-
|
The environment variant works for me: For the headers variant, resolving does not appear to kick in: Calling "who am I" tells me I am anonymous. Disclaimer: I did not yet read the troubleshooting docs. Not sure if this is normal, but I was a bit surprised the node process does not honor the |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
✨ What's New
Universal
${}Placeholder SyntaxYou can now use consistent placeholder syntax across all configuration fields:
{ "mcpServers": { "my-server": { "command": "${MCP_BINARY_PATH}/server", "args": [ "--token", "${API_TOKEN}", "--secret", "${cmd: op read op://vault/secret}" ], "env": { "API_TOKEN": "${cmd: aws ssm get-parameter --name /app/token --query Parameter.Value --output text}", "DB_URL": "postgresql://user:${DB_PASSWORD}@localhost/db" } }, "remote-server": { "url": "https://${PRIVATE_DOMAIN}/mcp", "headers": { "Authorization": "Bearer ${cmd: op read op://vault/api/token}" } } } }Two Powerful Patterns
${ENV_VAR}- Resolve environment variables${cmd: command args}- Execute commands and use their outputEnhanced Security & Flexibility
servers.jsonto source control🔄 Migration
Your existing configurations continue to work! Legacy syntax (
$VARand$: command) is still supported with deprecation warnings.Beta Was this translation helpful? Give feedback.
All reactions