Answer: You reference environment variables and secrets in your MCP configuration using the ${key_name} syntax to reference the key names of your environment variables and secrets in the server configuration. Both environment variables and secrets use the same syntax, and the values are resolved when the sandbox starts. Status: Confirmed Entry: tool/kiro/settings/mcp-env-vars-secrets Revision: 2 Digest: sha256:cd3939f49a596e9c (changes whenever the content changes) Timeline: Created: 2026-11-13T03:46:25Z Last changed: 2026-11-20T13:33:58Z (syntax consistency: — → same syntax) Last verified: 2026-11-20T13:33:58Z Next check: 2026-11-21T13:33:58Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of syntax | ${key_name} | [1] | 2026-11-20 resolution timing | when the sandbox starts | [1] | 2026-11-20 syntax consistency | same syntax | [1] | 2026-11-20 Sources: [1] Amazon Web Services. "Powers and MCP - Sandbox - Web - Docs - Kiro". https://kiro.dev/docs/web/sandbox/mcp/ Role: primary. Accessed: 2026-11-20T13:33:58Z Quote: "Use the ${key_name} syntax to reference the key names of your environment variables and secrets in the server configuration" (Supports: syntax) Quote: "The values are resolved when the sandbox starts." (Supports: resolution timing) Quote: "Both environment variables and secrets use the same syntax." (Supports: syntax consistency) Published: 2026-11-20T07:39:25Z Snapshot SHA-256: f1511a881e54976b5780b0e4c18f46650ee0a0577dc27d3023eb75e61cb5d5b8 (captured 2026-11-20T13:33:57Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T13:33:58Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:33:58Z Last attempt: 2026-11-20T13:33:58Z Notes and limitations: Extracted automatically from a single official source (section "Using environment variables and secrets"). Related: https://latestn.com/tool/kiro/settings/migrate-vscode-profile How do I migrate my VS Code profile to Kiro? https://latestn.com/tool/kiro/settings/mobile-change-theme How do I change the theme in the Kiro mobile app? https://latestn.com/tool/kiro/settings/output-styles-v3 How do I configure output styles in Kiro CLI chat V3? https://latestn.com/tool/kiro/settings/manage-usage-notification-preferences How do I manage my proactive usage notification preferences in Kiro? https://latestn.com/tool/kiro/settings/manual-environment-configuration-sandbox How do I manually configure the environment for the Kiro sandbox? https://latestn.com/tool/kiro/settings/markdown-review-renderer-setting How do I change the renderer setting in Kiro Markdown Review? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:33:58Z | changed | syntax consistency: — → same syntax | [1] 2026-11-20T13:33:58Z | changed | syntax applies to: Both environment variables and secrets → — | [1] 2026-11-13T03:46:25Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/kiro/settings/mcp-env-vars-secrets/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/kiro/settings/mcp-env-vars-secrets POST: https://latestn.com/dispute/tool/kiro/settings/mcp-env-vars-secrets with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/kiro/settings/mcp-env-vars-secrets?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I use environment variables and secrets with MCP servers in Kiro? Revision 2, last verified 2026-11-20T13:33:58Z. https://latestn.com/tool/kiro/settings/mcp-env-vars-secrets (accessed 2026-11-21T09:58:58Z). @misc{LatestN_tool_kiro_settings_mcp_env_vars_secrets_r2, title = {How do I use environment variables and secrets with MCP servers in Kiro?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/kiro/settings/mcp-env-vars-secrets}}, note = {Revision 2; digest sha256:cd3939f49a596e9c; last verified 2026-11-20T13:33:58Z; accessed 2026-11-21T09:58:58Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/kiro/settings/mcp-env-vars-secrets