Environment Variables
Bridge resolves ${VAR} placeholders from .env and process environment.
Recommended pattern
Section titled “Recommended pattern”- Put secrets in
~/.mcp-bridge/.env - Reference secrets in
config.json - Keep config portable and secret-free
TODOIST_API_TOKEN=your-tokenGITHUB_TOKEN=ghp_xxxxxNOTION_TOKEN=ntn_xxxxx{ "env": { "TODOIST_API_KEY": "${TODOIST_API_TOKEN}", "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}" }}mcp-bridge initsets.envfile mode to 600- Recipes must not contain raw credentials (spec security requirement)
- OpenClaw plugin adds an extra env resolution pass for unresolved placeholders
See also OpenClaw configuration.