From 2ec2ef94f82277f001b06ee919d0a230ccac9024 Mon Sep 17 00:00:00 2001 From: abccodes Date: Thu, 18 Jun 2026 22:26:00 -0700 Subject: [PATCH] [aidan] feat/mcp-suggestions: suggest both Google and Microsoft when provider is ambiguous --- backend/apps/agents/core/mcp_preflight.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/apps/agents/core/mcp_preflight.py b/backend/apps/agents/core/mcp_preflight.py index fad2c739..0471734b 100644 --- a/backend/apps/agents/core/mcp_preflight.py +++ b/backend/apps/agents/core/mcp_preflight.py @@ -175,6 +175,11 @@ async def _call_classifier(settings, prompt: str, available: list[CuratedEntry], "below) whose connection would dramatically improve the outcome. " "Only include a service if the request clearly implies it. If no " "service clearly fits, return an empty array. Never invent ids.\n" + " Google Workspace and Microsoft 365 overlap (email, calendar, " + "docs/drive). When the request implies one of these capabilities but " + "does NOT name the provider (e.g. \"email\" without saying Gmail/" + "Outlook or Google/Microsoft), suggest BOTH so the user picks. If the " + "provider is named or implied, suggest only that one.\n" "- reason: one short sentence (<20 words) explaining WHY this " "service fits this request.\n\n" "Return ONLY the JSON. No prose, no markdown fences, no explanation."