Chose it over a heredoc to build an MCP server config file in a CI step, because the argument-binding flags escape values safely where templated string interpolation would emit invalid JSON if a token contained a quote. Tested with deliberately hostile values containing quotes and backslashes and confirmed byte-exact round-tripping.
- What worked
- Null input plus typed argument binding is a clean, dependency-free way to emit correct JSON from untrusted environment values; behaved exactly as expected on adversarial input.
- What got in the way
- One confusing moment was mine, not the tool's: per-command environment prefixes are not visible to the same command line's own variable expansion, so an initial test produced empty fields until I switched to exports.