Skip to content

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.

ops-mcp: never start an owner-present OAuth flow from the watchdog (#828)

Aurora Capital2c1165037a03
diff --git a/claude-ops/scripts/ops-mcp-reauth.py b/claude-ops/scripts/ops-mcp-reauth.py
index 50c55973..7bdbefde 100755
--- a/claude-ops/scripts/ops-mcp-reauth.py
+++ b/claude-ops/scripts/ops-mcp-reauth.py
@@ -42,6 +42,7 @@ import subprocess
import sys
import time
from pathlib import Path
+from urllib.parse import urlparse
LOG_PREFIX = "[ops-mcp-reauth]"
HOME = Path(os.path.expanduser("~"))
@@ -52,6 +53,8 @@ LOG_FILE = STATE_DIR / "run.log"
HEADLESS = os.environ.get("MCP_REAUTH_HEADLESS", "1") == "1"
TIMEOUT = int(os.environ.get("MCP_REAUTH_TIMEOUT", "90"))
+INTERACTIVE_ONLY_OAUTH_HOSTS = {"mcp.carrier.llc", "mcp.esimmcp.com"}
+
# Regex for the OAuth authorize URL mcp-remote logs
AUTH_URL_RE = re.compile(r"(https?://[^\s\"'<>]+/authorize\?[^\s\"'<>]+)")
@@ -278,6 +281,10 @@ def main() -> int:
return 0
url = sys.argv[1]
+ host = (urlparse(url).hostname or "").lower()
+ if host in INTERACTIVE_ONLY_OAUTH_HOSTS:
+ log(f"{host} requires owner-present OAuth; use `claude mcp login carrier`")
+ return 4
proc, auth_url = spawn_mcp_remote(url)
try:
if auth_url is None:
diff --git a/claude-ops/scripts/ops-mcp-watchdog.py b/claude-ops/scripts/ops-mcp-watchdog.py
index 6c21d0de..be6f3eb1 100755
--- a/claude-ops/scripts/ops-mcp-watchdog.py
+++ b/claude-ops/scripts/ops-mcp-watchdog.py
@@ -64,6 +64,10 @@ REAUTH_SCRIPT = Path(__file__).resolve().parent / "ops-mcp-reauth.py"
UA_HEADER = "ops-mcp-watchdog/0.1 (Mozilla/5.0)"
+# These providers require an owner-present browser login. Starting them from a
+# cron tick leaves a browser on a localhost callback after its listener exits.
+INTERACTIVE_ONLY_OAUTH_HOSTS = {"mcp.carrier.llc", "mcp.esimmcp.com"}
+
# MCPs that use a Bearer API key (not OAuth). The key lives in keychain under
# the listed `keychain_service` name; we'll inject it as Authorization: Bearer.
API_KEY_MCPS = {
@@ -536,6 +540,10 @@ def main() -> int:
for name, info in cur_state.items():
if info.get("state") != "needs_bootstrap":
continue
+ host = (urlparse.urlparse(info["url"]).hostname or "").lower()
+ if host in INTERACTIVE_ONLY_OAUTH_HOSTS:
+ log(f"{name}: interactive OAuth only; skipping background auto-reauth")
+ continue
log(f"{name}: attempting Playwright auto-reauth")
try:
proc = subprocess.run(