LearnDCAgentMCPServer
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LearnDCAgentMCPServerQuery Snowflake for account analytics for Acme Corp"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π Omni-Channel Customer Success Intelligence Platform
Salesforce Lightning β‘ Google Cloud Platform βοΈ Slack Enterprise π¬ Snowflake DWH βοΈ Google Gemini 3.6 Flash π§
π Executive Overview
The Omni-Channel Customer Success Intelligence Platform is an enterprise-grade, event-driven solution that unifies Salesforce Lightning CRM, Google Cloud Platform, Slack Enterprise, Snowflake Cloud Data Warehouse, and Google AI Studio (Gemini 3.6 Flash) into a single, cohesive customer success copilot.
Customer Success Managers (CSMs) and Account Executives (AEs) operate with complete workflow continuity across Salesforce record pages, Slack channels, and private direct messagesβwith zero platform friction, zero brand leakage, and strict enterprise security guardrails.
Related MCP server: Snowflake Cortex AI MCP Server
ποΈ Grand Unified Architecture
graph TD
subgraph SF_PLATFORM["Salesforce Lightning Platform (CRM)"]
LWC_BOT["slackBotAgent (LWC)<br/>β’ Left Thread History<br/>β’ User Privacy Isolation<br/>β’ Native Desktop Alerts<br/>β’ Slash Commands Palette"]
LWC_GMAIL["accountGmail (LWC)<br/>β’ Split-Pane Reader<br/>β’ RFC 2822 Header Threading<br/>β’ Whole Thread AI Summary"]
LWC_CAL["accountGoogleCalendar (LWC)<br/>β’ Meeting Scheduler<br/>β’ Auto Google Meet Link<br/>β’ Event Type Isolation"]
CTRL_BOT["SlackBotAgentController.cls<br/>& SlackUserIdentityService.cls"]
CTRL_GMAIL["AccountGmailController.cls<br/>& AccountGmailInboundHandler.cls"]
CTRL_CAL["AccountCalendarController.cls<br/>& GoogleAuthService.cls (JWT)"]
MCP_SERVER["LearnDCAgentMCPServer.cls<br/>(Apex Invocable MCP Server)<br/>β’ search_accounts<br/>β’ query_snowflake<br/>β’ create_account_task"]
LWC_BOT --> CTRL_BOT
LWC_GMAIL --> CTRL_GMAIL
LWC_CAL --> CTRL_CAL
CTRL_BOT --> MCP_SERVER
end
subgraph GCP_CLOUDRUN["Google Cloud Platform (slack-gemini-agent)"]
GATEWAY["Express HTTP Gateway (Port 8080)<br/>β’ GET /auth/login<br/>β’ POST /auth/slack/confirm<br/>β’ POST /api/chat<br/>β’ GET /health"]
CONSENT_UI["Slack Workspace Consent Screen<br/>(Branded User Authorization UI)"]
GEMINI_ENGINE["Google AI Studio Gemini 3.6 Flash<br/>β’ Multi-turn Session Manager<br/>β’ Autonomous Tool Loop"]
SNOW_DAEMON["SnowflakeSyncDaemon.ts<br/>β’ Continuous 5s Bi-Directional Sync<br/>β’ 0s On-Demand SLA Reconciliation"]
GATEWAY --> CONSENT_UI
GATEWAY --> GEMINI_ENGINE
GATEWAY --> SNOW_DAEMON
end
subgraph SLACK_WORKSPACE["Slack Enterprise Workspace (T0BU7EDE40P)"]
SOCKET_MODE["Socket Mode WebSocket (wss://)<br/>β’ No Public Ports / Ngrok<br/>β’ Outbound Persistent Tunnel"]
SLACK_BOT["Slack App: test_agent_app<br/>(App ID: A0BU7FHCFEK)"]
SLASH_CMDS["Slash Commands Engine<br/>β’ /account-brief (3s ack)<br/>β’ /summarize-thread<br/>β’ /snowflake<br/>β’ /help"]
PRIVATE_DMS["Private 1-on-1 DMs<br/>(conversations.open per CSM)"]
SOCKET_MODE --> SLACK_BOT
SLACK_BOT --> SLASH_CMDS
SLACK_BOT --> PRIVATE_DMS
end
subgraph SNOWFLAKE_DWH["Snowflake Cloud Data Warehouse (hjyxziv-mi58790)"]
BASE_ANALYTICS[("LEARNDC_DB.ANALYTICS<br/>ACCOUNT_ANALYTICS<br/>(Base Table - 5s Sync)")]
SECURE_MCP[("LEARNDC_MCP_DB.SECURE_ANALYTICS<br/>V_ACCOUNT_INSIGHTS<br/>(8 Sanitized Telemetry Fields)")]
MCP_ROLE["Role: MCP_AGENT_READER_ROLE<br/>β’ Least-Privilege Read-Only<br/>β’ Key-Pair RSA Authentication"]
BASE_ANALYTICS --> SECURE_MCP
SECURE_MCP --> MCP_ROLE
end
subgraph GOOGLE_WORKSPACE["Google Workspace Services"]
GMAIL_SVC["Gmail API & Inbound Relay<br/>(RFC 2822 Headers & csm-reply@...)"]
GCAL_SVC["Google Calendar API v3<br/>& Google Meet Video Link Generator"]
GPUSH_SVC["Google Push Notifications Webhook<br/>(Delta Sync with syncToken)"]
end
CTRL_BOT <==>|Fast Identity & REST Invocable| GATEWAY
GATEWAY <==>|Socket Mode wss://| SOCKET_MODE
GEMINI_ENGINE <==>|Autonomous Function Calling| MCP_SERVER
SNOW_DAEMON <==>|MERGE INTO & Telemetry Writeback| BASE_ANALYTICS
GEMINI_ENGINE <==>|Read-Only Parameterized SQL| SECURE_MCP
CTRL_GMAIL <==>|Inbound & Outbound Dual Delivery| GMAIL_SVC
CTRL_CAL <==>|RSA JWT Bearer & Webhook Push| GCAL_SVC
GPUSH_SVC -->|Delta Notification Ping| CTRL_CALβ‘ Key Core Capabilities & Architectural Pillars
1. π€ Omni-Channel Slack Bot Agent & LWC Copilot (slackBotAgent)
Headless AI Agent Architecture: Single primary Gemini 3.6 Flash engine powers both Slack and the Salesforce Account LWC.
Left Sidebar Thread History: Scoped by Account and strictly isolated by user (
CreatedById = :currentUserId). Users never see other reps' private chats.Activity Timeline Hygiene: General chats never flood Salesforce with dummy tasks. Salesforce
Taskrecords are only created with explicit parameters and an intentional user confirmation modal.Slack Deep Links (
Slack β): One-click navigation to the exact persistent Slack thread in desktop or web.Hybrid High-Availability Fallback: Automatic failover from Node.js Gateway to native Apex MCP Server if the gateway is ever offline.
2. π¬ Domain-Free Bidirectional Gmail Threading
Overcomes Domain & Admin Restrictions: Bypasses corporate Google Workspace domain verification and daily developer email limits.
RFC 2822 Inbound & Outbound Header Engine: Injects
Message-ID,In-Reply-To, andReferencesheaders, ensuring native Gmail thread grouping.Dual-Delivery Routing: Automatically delivers to the customer and mirrors to the CSM's personal inbox (
skgsummo5@gmail.com).Whole-Thread AI Summarizer: Gemini 3.6 Flash analyzes entire conversation chains to produce an executive summary, discussion highlights, and action items, cached in
Gmail_Thread_Summary__c.
3. π Real-Time Google Calendar & Meet Sync
Enterprise JWT Bearer Authentication: Apex crafts RSA-SHA256 signed JWT assertion tokens for Google Workspace Domain-Wide Delegation.
Google Meet Auto-Generation: Seamlessly generates and binds Google Meet video links (
https://meet.google.com/...) upon booking.Push Webhook Delta-Syncing: Inbound changes from Google Calendar trigger webhook pings, processed via queueable jobs using
syncTokento eliminate infinite loops.Event Type Isolation: Calendar meetings and email interactions maintain strict type separation on the standard
Eventobject.
4. β¨οΈ Slack Slash Commands Engine (/account-brief, etc.)
3-Second Acknowledgment Rule: Immediate
await ack()prevents Slackoperation_timeouterrors.360Β° Account Briefing (
/account-brief): Parallel retrieval of Salesforce CRM vitals, Snowflake telemetry, and Gmail thread intelligence in an executive Block Kit card.Dynamic Thread Summarization (
/summarize-thread): Extracts critical action items from email chains on demand.Snowflake Telemetry (
/snowflake): Direct read of warehouse health scores and compute hours.
5. π Native OS Desktop Notifications & Background Alerts
Page Visibility API: Detects when the user minimizes the browser or multitasks in another tab (
document.hidden === true).HTML5 Web Notification API: Dispatches native Windows 11 / macOS desktop toast cards with sound and Salesforce cloud branding.
One-Click Tab Focus: Clicking the notification instantly brings the browser tab to the front.
Tab Title Pulsing: Alternates tab title with
π (1) New Reply Ready | Salesforceuntil focused.
6. βοΈ Snowflake Two-Tier Bi-Directional Sync & Secure MCP View
Tier 1 (5s Daemon):
SnowflakeSyncDaemon.tscontinuously syncs modified Accounts toLEARNDC_DB.ANALYTICS.ACCOUNT_ANALYTICSand writes back telemetry.Tier 2 (Secure MCP): Dedicated database
LEARNDC_MCP_DBand Secure ViewV_ACCOUNT_INSIGHTSrestrict access to strictly 8 sanitized telemetry fields.Least-Privilege Role:
MCP_AGENT_READER_ROLEwith key-pair RSA authentication and zero DML/DDL permissions.Zero Platform Brand Leakage: AI synthesizes unified dossiers without exposing vendor names to business users.
7. π Multi-User Identity & OAuth Consent Handshake
Frictionless Onboarding: Clicking "Sign in with Slack" opens a secure popup to the GCP Gateway (
/auth/login).User Authorization Screen: Presents a branded Slack Workspace Consent Screen detailing permissions.
Automated DM Channel Provisioning:
POST /auth/slack/confirmcreates a dedicated 1-on-1 private channel (conversations.open) and updates the SalesforceUserrecord in <5ms.
π Repository Structure
βββ force-app/main/default/ # Salesforce DX Metadata
β βββ classes/ # Apex Controllers, Services & Tests (100% Pass)
β β βββ SlackBotAgentController.cls # LWC Copilot Controller & Session Resumption
β β βββ SlackUserIdentityService.cls # User Identity Resolver & Auth URL Generator
β β βββ AccountGmailController.cls # Gmail Split-Pane Backend Controller
β β βββ AccountGmailInboundHdlr.cls # Inbound RFC 2822 Email Service Handler
β β βββ GmailAIService.cls # Whole Thread Gemini AI Summarizer
β β βββ AccountCalendarCtrl.cls # Google Calendar Meeting Scheduler
β β βββ GoogleAuthService.cls # RSA-SHA256 JWT Bearer Assertion Generator
β β βββ GoogleCalendarService.cls # Google Calendar API v3 Callout Engine
β β βββ GoogleCalendarQueueable.cls # Delta-Syncing Webhook Queueable Job
β β βββ LearnDCAgentMCPServer.cls # Apex Invocable MCP Server Provider
β βββ lwc/ # Lightning Web Components
β βββ slackBotAgent/ # AI Copilot Cockpit & Notification Controller
β βββ accountGmail/ # Master-Detail Split-Pane Conversation Reader
β βββ accountGoogleCalendar/ # Interactive Meeting Scheduler with Meet Link
βββ slack-gemini-agent/ # Google Cloud Platform Node.js/TS Middleware
β βββ src/
β β βββ index.ts # Express HTTP Server & Socket Mode Entry Point
β β βββ api/auth.ts # OAuth Handshake & Consent Screen Controller
β β βββ bot/slackBot.ts # Slack Bolt Framework Event Orchestration
β β βββ commands/slashCommands.ts # Slash Command Handlers (/account-brief, etc.)
β β βββ services/geminiService.ts # Google AI Studio Gemini 3.6 Flash Interface
β β βββ services/snowflakeDaemon.ts # 5-Second Real-Time Salesforce <-> Snowflake Sync
β β βββ mcp/ # Model Context Protocol Client Implementations
β βββ Dockerfile # Multi-stage Container Runtime
β βββ package.json # Node.js Dependencies & Build Scripts
βββ docs/ # Technical Markdown Documentation
βββ docs-html/ # Interactive HTML Documentation with Mermaid & SVGsπ Documentation Library
Every architectural component is documented with both a Markdown specification and an interactive HTML guide featuring embedded SVG illustrations and Mermaid diagrams:
Documentation Topic | Markdown Guide ( | Interactive HTML Guide ( |
β Grand Unified Master Playbook | ||
βοΈ GCP Slackbot & Salesforce MCP Setup | ||
π¬ Gmail Real-Time Bidirectional Sync | ||
π Google Calendar & Meet Booking | ||
π€ Slack & Google AI Studio Integration | ||
βοΈ Snowflake Two-Tier Bi-Directional DWH | ||
π¬ Slack Bot Agent LWC Architecture | ||
β¨οΈ Slack Slash Commands Implementation | ||
π Native OS Desktop Notifications | ||
π Snowflake Model Context Protocol (MCP) |
π οΈ Quick Start & Local Setup
1. Prerequisites
Node.js:
v20.xorv22.x+Salesforce CLI (
sf):v2.x+Docker (Optional, for containerized local runtime)
2. Salesforce Deployment
Deploy the metadata to your target org:
sf project deploy start -o <your-org-alias>Run the test suite to verify 100% test pass rate:
sf apex run test -n "SlackBotAgentControllerTest,SlackUserIdentityServiceTest" -o <your-org-alias> -r human -c3. Middleware Service Configuration
Navigate to slack-gemini-agent and configure environment variables:
cd slack-gemini-agent
cp .env.example .envFill in your secrets:
PORT=8080
GEMINI_API_KEY=your_gemini_api_key
SLACK_BOT_TOKEN=xoxb-...
SLACK_SIGNING_SECRET=your_signing_secret
SLACK_APP_TOKEN=xapp-...
SF_LOGIN_URL=https://login.salesforce.com
SF_CLIENT_ID=your_connected_app_client_id
SF_CLIENT_SECRET=your_connected_app_client_secret
SF_USERNAME=your_salesforce_username
SF_PASSWORD=your_password_and_token
SNOWFLAKE_ACCOUNT=your_snowflake_account
SNOWFLAKE_USERNAME=LEARNDC_MCP_AGENT
SNOWFLAKE_PRIVATE_KEY_PATH=./secrets/rsa_key.p8
SNOWFLAKE_DATABASE=LEARNDC_MCP_DB
SNOWFLAKE_SCHEMA=SECURE_ANALYTICS
SNOWFLAKE_ROLE=MCP_AGENT_READER_ROLEInstall dependencies and start the service:
npm install
npm run build
npm run startπ‘οΈ Enterprise Security & Quality Certification
Zero Brand Leakage: Business users interact with a unified AI persona without underlying infrastructure seams.
Least-Privilege Security: Snowflake access is restricted to read-only views with key-pair authentication.
Privacy Isolation: User chat histories in Salesforce are scoped by
CreatedById, preventing cross-rep data leaks.Activity Hygiene: Chat messages do not pollute CRM timelines with unnecessary tasks.
Production Certified: Verified with 100% Apex test coverage across all controller and service classes.
π€ Author & Support
Lead Engineer & Architect: Summo CSM (
skgsummo5@gmail.com)Organization: Teqfocus Solutions / Learn DC Enterprise Architecture
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Let AI agents query data and act across all your business apps via MCP.
Salesforce-grounded retrieval, diagnoses, and a vetted-Force marketplace for MCP clients.
Unified MCP Server is a remote MCP connector for AI agents and vertical AI products that provides access to 22,000+ authorized SaaS tools across 400+ integrations and 24 categories directly inside LLMs (Claude, GPT, Gemini, Cohere). Tools operate only on explicitly authorized customer connections, enabling agents to safely read and write against live third-party systems.
Automate 1,000+ services from any MCP-compatible AI agent: build Applets, run actions and queries.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Salesforce organizations through natural language by exposing Salesforce APIs (REST, Bulk v2, GraphQL, Tooling, Auth) as MCP tools for querying data, managing records, and executing SOQL queries.819MIT
- AlicenseNot gradedqualityDmaintenanceIntegrates Snowflake Cortex AI features like Cortex Search and Analyst into the MCP ecosystem, enabling retrieval-augmented generation and structured data analysis. It also provides tools for chat completions and agentic orchestration using Snowflake-hosted large language models.Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Salesforce data and services via custom MCP tools, including account analytics, opportunity queries, case creation, and AI agent invocation.4-
- AlicenseAqualityCmaintenanceEnables AI agents to interact with Salesforce through MCP, supporting queries, records, metadata, and bulk operations with flexible OAuth authentication.16MIT