From fcaa0058f77d9299f147939567786cc8c4aa4ff9 Mon Sep 17 00:00:00 2001 From: Patrick Dawkins Date: Sun, 17 May 2026 11:21:41 +0100 Subject: [PATCH] fix(mcp): make UPSUN_API_TOKEN env var optional The .mcp.json header used ${UPSUN_API_TOKEN} which Claude Code treats as a required env var, so installing the plugin without setting the token fails with "Missing environment variables: UPSUN_API_TOKEN" even though the MCP server authenticates via OAuth by default. Switch to the ${UPSUN_API_TOKEN:-} shell-style default so the header is sent empty when the var is unset, and OAuth handles auth as documented. Co-Authored-By: Claude Opus 4.7 (1M context) --- plugins/upsun/.mcp.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/upsun/.mcp.json b/plugins/upsun/.mcp.json index 455e5bc..52b71e3 100644 --- a/plugins/upsun/.mcp.json +++ b/plugins/upsun/.mcp.json @@ -4,7 +4,7 @@ "type": "http", "url": "https://mcp.upsun.com/mcp", "headers": { - "upsun-api-token": "${UPSUN_API_TOKEN}", + "upsun-api-token": "${UPSUN_API_TOKEN:-}", "enable-write": "false" } }