Tough Customer MCP
Integrates with GitHub for repository management and deployment workflows when setting up the MCP server on Vercel.
Built as a Next.js application, serving as the framework for the MCP server implementation and UI components.
Supports deployment to Vercel hosting platform, with instructions for linking GitHub repositories and deploying production instances.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Tough Customer MCP
Remote MCP server (Next.js on Vercel) that exposes the Tough Customer roleplay setup workflow to LLM clients (Claude, ChatGPT, MCP Inspector).
Auth model: Model B — Supabase Auth is the OAuth Authorization Server.
Claude carries a Supabase-issued JWT, never a raw Salesforce token.
Salesforce is a downstream backend; users link it once at /connect, and
the MCP server stores an envelope-encrypted refresh token and mints
short-lived SF access tokens per request. SOQL runs WITH USER_MODE, so
Salesforce enforces FLS + sharing as the linked end user.
See userstories.md (especially §2.1, §2.2, §2.7) for the full architecture
and security rationale.
Endpoints
Route | Purpose |
| MCP streamable-HTTP endpoint (connect Claude here) |
| RFC 9728 metadata pointing at the Supabase AS |
| One-time Salesforce account-linking UI |
| Begins SF PKCE flow |
| SF redirect target — server-side token exchange + vault save |
| Removes SF link, revokes refresh token at SF |
| Supabase Google OAuth glue |
| Landing page |
Related MCP server: MCP from Scratch Server
Tools exposed
list_opportunitieslist_voiceslist_scenariosget_opportunity_contactscreate_roleplay_sessionPrompt:
setup_sales_roleplay
Local development
npm install
cp .env.example .env.local # fill in the values
npm run dev
# http://localhost:3000
# MCP endpoint: http://localhost:3000/mcpFor local dev without Supabase / Salesforce, set TC_MODE=mock — the server
serves in-memory data and skips auth.
Inspect with the MCP Inspector:
npx @modelcontextprotocol/inspector
# Transport: Streamable HTTP
# URL: http://localhost:3000/mcpDeploy to Vercel
gh repo create mcp --public --source=. --remote=origin --push
npx vercel link
npx vercel --prodProvision Supabase via the Vercel Marketplace integration so
NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY, and
SUPABASE_SERVICE_ROLE_KEY are auto-populated across all environments.
Apply database migrations:
supabase db pushCustom domains (production):
mcp.toughcustomer.ai→ this Vercel projectapp.toughcustomer.ai→ this Vercel project (alias; serves/connect)auth.toughcustomer.ai→ Supabase (custom hostname; seedocs/CUSTOM_DOMAIN.md)
Salesforce setup
The Connected App is a downstream backend, not the AS for Claude.
See docs/SALESFORCE_SETUP.md for the Connected App runbook and
docs/SALESFORCE_OBJECTS.md for the custom objects + fields the SF admin
must create. No Apex deploy required — the MCP server uses SF REST
GraphQL exclusively, which enforces FLS + sharing for all profiles
including admins.
Vault graduation
v1 encrypts SF refresh tokens with AES-256-GCM keyed by the VAULT_KEY_V1
env var. Before any non-internal customer connects real Salesforce data,
graduate to Supabase Vault or external KMS — see docs/VAULT_V2.md.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
Hosted Notion MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
MCP server for AI dialogue using various LLM models via AceDataCloud
Hosted Web Crawler MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables users to manage, search, and apply specialized AI personas within Claude Desktop and Claude Code CLI. It features a local-first architecture with YAML-based storage for organizing curated prompts and role collections.1MIT
- AlicenseNot gradedqualityDmaintenanceA fully working MCP server built from scratch in plain Node.js, implementing tools, resources, prompts, notifications, and sampling according to the MCP specification, designed to connect to Claude Desktop or any MCP client.36MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables Claude to deploy full-stack web apps to Cloudflare, including databases, authentication, and file storage, directly through natural language.-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that lets you switch between different MCP configuration profiles directly from inside Claude Desktop.-