Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.
Shell agent-teamsai-agentai-automationanthropicautonomous-agentawsbusiness-operationsclaudeclaude-codeclaude-code-plugindevopsecommerceinbox-zeroklaviyomarketingmcpmorning-briefingpr-automationshopifyterminal
fix(mcp): resolve Doppler token via launcher so the MCP stops failing by default (#422)
Aurora Capital8ed93b686c0e
diff --git a/claude-ops/.mcp.json b/claude-ops/.mcp.jsonindex 65314105..14e60742 100644--- a/claude-ops/.mcp.json+++ b/claude-ops/.mcp.json@@ -19,10 +19,10 @@}},"doppler": {- "command": "npx",- "args": ["-y", "-p", "@dopplerhq/mcp-server", "doppler-mcp"],+ "command": "bash",+ "args": ["${CLAUDE_PLUGIN_ROOT}/mcp-servers/doppler-launcher.sh"],"env": {- "DOPPLER_TOKEN": "${user_config.doppler_token}"+ "DOPPLER_TOKEN_CONFIG": "${user_config.doppler_token}"}},"desktop-act": {diff --git a/claude-ops/CHANGELOG.md b/claude-ops/CHANGELOG.mdindex 27d4f2b9..a88e9b26 100644--- a/claude-ops/CHANGELOG.md+++ b/claude-ops/CHANGELOG.md@@ -1,5 +1,10 @@# Changelog+## [Unreleased]++### Fixed+- **Doppler MCP no longer fails by default.** The server was wired with `DOPPLER_TOKEN: "${user_config.doppler_token}"`, and the `doppler_token` config defaults to `""` — so a blank value was passed to `npx doppler-mcp` as `DOPPLER_TOKEN=""`, clobbering any inherited token and forcing a "Not authenticated" exit (MCP showed "Failed to connect" on every box without a pasted token). The config description's promise — "leave blank — runtime resolves automatically" — was never actually implemented. Added `mcp-servers/doppler-launcher.sh`, which resolves the token from the pasted config value → inherited `DOPPLER_TOKEN` → `doppler configure get token` (a prior `doppler login`), and crucially never exports an empty `DOPPLER_TOKEN`. When no token resolves, the server starts with the var unset so it can use its own `doppler login` store instead of being force-failed.+## [2.18.9] - 2026-05-31### Addeddiff --git a/claude-ops/mcp-servers/doppler-launcher.sh b/claude-ops/mcp-servers/doppler-launcher.shnew file mode 100755index 00000000..3d15b55a--- /dev/null+++ b/claude-ops/mcp-servers/doppler-launcher.sh@@ -0,0 +1,44 @@+#!/usr/bin/env bash+# doppler-launcher.sh — resolve a Doppler token, then exec the Doppler MCP server.+#+# Why this exists:+# The plugin wires the Doppler MCP as+# env: { "DOPPLER_TOKEN": "${user_config.doppler_token}" }+# and the doppler_token userConfig field defaults to "". Its description tells+# users they may "leave blank — runtime resolves automatically". That promise+# was false: a blank value was passed straight to `npx doppler-mcp` as+# DOPPLER_TOKEN="", which (a) clobbered any inherited token and (b) made the+# server exit "Not authenticated", so the MCP showed as Failed to connect on+# every box that didn't paste a literal token.+#+# This launcher makes the documented behavior true. Resolution order:+# 1. $DOPPLER_TOKEN_CONFIG — the pasted userConfig token (if non-empty).+# 2. $DOPPLER_TOKEN already present in the spawn env (if non-empty).+# 3. `doppler configure get token --plain` — the token from a prior+# `doppler login` / service-token setup (the common case).+# If none yield a token we DO NOT export an empty DOPPLER_TOKEN — we exec the+# server with the token unset so it can fall back to its own `doppler login`+# store and report its real auth state, instead of being force-failed by "".+#+# Deliberately does not export a static token into anything but this server's+# own process env (keeps `doppler login` token rotation in shells unmasked).+set -euo pipefail++token=""+if [[ -n "${DOPPLER_TOKEN_CONFIG:-}" ]]; then+ token="${DOPPLER_TOKEN_CONFIG}"+elif [[ -n "${DOPPLER_TOKEN:-}" ]]; then+ token="${DOPPLER_TOKEN}"+elif command -v doppler >/dev/null 2>&1; then+ token="$(doppler configure get token --plain 2>/dev/null || true)"+fi++if [[ -n "${token}" ]]; then+ export DOPPLER_TOKEN="${token}"+else+ unset DOPPLER_TOKEN || true+fi+# DOPPLER_TOKEN_CONFIG is an internal hint — never leak it to the child.+unset DOPPLER_TOKEN_CONFIG || true++exec npx -y -p @dopplerhq/mcp-server doppler-mcp