Convocore MCP Server
A Model Context Protocol (MCP) server that connects AI assistants (Claude Desktop, Cursor, and other MCP hosts) to the Convocore HTTP API. The host spawns this process, talks to it over stdio (standard input/output), and gains many tools for agents, conversations, knowledge bases (including mass URL ingest), and single-URL scraping.
What this project is
| Piece | Role |
|---|---|
| MCP | A protocol so clients (e.g. Claude) can list and call tools with structured arguments and get text (or other) results back. |
| This server | A small Node.js app using @modelcontextprotocol/sdk: it registers tools, validates arguments with Zod, and proxies calls to Convocore’s REST API with your workspace bearer token. |
| Convocore API | Backend at https://{region}-api.vg-stuff.com/v3 (see Regions). Your WORKSPACE_SECRET is sent as Authorization: Bearer …. |
This repository is not a chat UI. It is the bridge between an MCP-capable assistant and Convocore.
What the server exposes (capabilities)
The server declares tools only (no MCP resources or prompts in code). Each successful tool call returns MCP content with a single text part whose body is pretty-printed JSON (JSON.stringify(result, null, 2)) from the Convocore API response.
| Area | Tools | Purpose |
|---|---|---|
| Agents | ~12 | CRUD, list, search, export/import, clone, usage, CSS, patch prompt |
| Conversations | ~12 | CRUD, list, export, assign, bulk/query, channel send |
| Knowledge base | ~14 | CRUD, patch, bulk get/create/delete, URL ingest, search, images, quota |
| Orgs / agency / clients | 6 | orgs_read/write, agency_read/write, clients_read/write |
| Leads CRM | 2 | leads_read / leads_write (list, export, import, magic import, …) |
| Agent HTTP tools | 5 | list/get/create/update/delete Convocore agent tools (not MCP tools) |
| Agent variables | 5 | list/get/create/update/delete agent variables |
| Channels | 4 | get_agent_channels, create_channel_connect_link, get_connect_link_status, disconnect_meta_page — connect WhatsApp / Messenger / Instagram through a no-login link |
| WhatsApp AI rules | 3 | get_whatsapp_ai_rules, update_whatsapp_ai_rules, update_whatsapp_number_settings — when the AI replies on WhatsApp |
| Campaigns | 2 | campaigns_read / campaigns_write — outbound call campaigns (create, edit, start/stop, restart, delete) |
| Call logs | 2 | call_logs_read / call_logs_write — list, get, export, create, edit, delete |
| Outbound calls & SMS | 4 | get_agent_phone, start_outbound_call, send_sms, contact_leads |
| Custom metrics | 2 | custom_metrics_read / custom_metrics_write — define metrics and read their data |
| Lead groups | 2 | lead_groups_read / lead_groups_write — list, create, assign, rename, delete |
| Folders | 2 | folders_read / folders_write — agent folders |
| Agent extras | 5 | get_agent_audit_log, send_handoff_reminder, generate_conversation_summaries, agent_gallery_templates, notification_email |
| WhatsApp management | 6 | whatsapp_numbers_read/write, whatsapp_templates_read/write, whatsapp_campaigns_read/write |
| Meta pages, SMS, email | 5 | meta_pages_read, sms_numbers_read/write, email_channel_read/write |
| Integrations | 3 | integrations_read / integrations_write / integrations_test — every connection (Google Calendar, Outlook Calendar, Google Sheets, Airtable, Shopify, Calendly, Zoho CRM, Gmail, Outlook mail, Zoho Mail, Google Drive), assign / update / remove on agents, diagnose an agent's setup, and inspect or run the agent's real integration tools |
| Zoho CRM records | 2 | zoho_crm_records_read / zoho_crm_records_write — list, search, COQL, get; create, update, upsert, delete, notes |
| Contacts | 2 | contacts_read / contacts_write — cross-channel identities |
| Agent backups | 2 | agent_backups_read / agent_backups_write — backup, restore, revert prompt, prompt caching |
| Code tools & sharing | 2 | code_tools, tool_sharing |
| Workspace | 3 | workspace_read / workspace_write, generate_lead_funnel |
| Testing | 3 | test_agent_tool, test_agent_tool_request, run_agent_auto_test |
| Discovery | 1 | search_mcp_tools — find the right tool without guessing |
| Scrape / embed / voice | many | scrape, embed code, voices, Twilio utils |
| Interact (WS) | 1 | Drive one agent turn; supports toolTest + variablesOverrides |
| Specs | 3 | UI Engine, channel integration, pricing |
Light mode
The tools in the rows from "Campaigns" down to "Agent extras" (and every list tool) take mode:
compact(default): every record and field, but long text is cut and bulky blobs (transcripts, page content, histories) are replaced by a size marker.full: the complete API response.
How it runs (transport and lifecycle)
- The host (Claude Desktop, Cursor, etc.) starts the server as a subprocess: e.g.
npx -y convocore-mcp,docker run …, ornode dist/index.js. - Communication uses
StdioServerTransport: JSON-RPC messages on stdin/stdout. Do not write logs to stdout; the server logs to stderr (e.g.Convocore MCP Server running on stdio). - On startup,
getConfig()reads env vars. IfWORKSPACE_SECRETis missing, the process throws and exits. - The host sends
tools/listandtools/call. Each call is validated, thenConvocoreClientperformsfetch()to the REST API.
flowchart LR
Host[MCP host]
MCP[convocore-mcp stdio]
API[Convocore REST API v3]
Host <--> MCP
MCP --> API
Repository layout
| Path | Purpose |
|---|---|
src/index.ts |
MCP server, tool definitions (JSON Schema for hosts), Zod validation, tool dispatch |
src/convocore-client.ts |
HTTP client: paths, methods, query strings, JSON bodies |
src/agent-theme-palette.ts |
hexToHsl / handleAutoGenPallet — builds nineColorPallet for customThemeJSONString |
src/config.ts |
WORKSPACE_SECRET, CONVOCORE_API_REGION, optional CONVOCORE_WORKSPACE_ID, resolved baseUrl |
src/types.ts |
Shared TypeScript types for config and agent payloads |
dist/ |
Compiled output (pnpm run build / tsc) — what npm publishes |
Dockerfile |
Multi-stage image: build with pnpm, run node dist/index.js (alternative distribution) |
docker-compose.yml |
Example service (see Docker Compose note) |
claude_desktop_config.example.json |
Sample Claude Desktop MCP entry |
openapi.json |
OpenAPI spec (reference for API shape) |
Environment variables
| Variable | Required | Default | Meaning |
|---|---|---|---|
WORKSPACE_SECRET |
Yes | — | Bearer token for the Convocore workspace (same as API key/secret from your dashboard). |
CONVOCORE_API_REGION |
No | eu-gcp |
eu-gcp or na-gcp; selects API host (see below). |
CONVOCORE_API_BASE_URL |
No | — | Optional full REST base URL override. Useful for local dev, e.g. http://localhost:5000/v3. Overrides CONVOCORE_API_REGION when set. The /interact WebSocket URL is derived from this (scheme swapped to ws/wss, path replaced with /interact) unless CONVOCORE_INTERACT_WS_URL is also set. |
CONVOCORE_INTERACT_WS_URL |
No | — | Optional explicit override for only the /interact WebSocket URL, e.g. ws://localhost:5000/interact. Set this when you want REST traffic on prod but WebSocket traffic on a local debug server (or vice-versa). Used verbatim — supply scheme, host, port, and path. |
CONVOCORE_WORKSPACE_ID |
No | — | Workspace/org UUID (agent.ownerID). When set, MCP avoids heavy GET /agents scans used only to infer the workspace id. |
CONVOCORE_TELEMETRY |
No | on | Set to 0 to turn off anonymous usage telemetry. See Telemetry. |
The server reads WORKSPACE_SECRET, CONVOCORE_API_REGION, optional CONVOCORE_API_BASE_URL, optional CONVOCORE_INTERACT_WS_URL, optional CONVOCORE_WORKSPACE_ID, and optional CONVOCORE_TELEMETRY / CONVOCORE_TELEMETRY_DEBUG / DO_NOT_TRACK. Any other variables in compose files or docs are ignored unless you wire them yourself.
API regions and base URLs
CONVOCORE_API_REGION |
Base URL |
|---|---|
eu-gcp |
https://eu-gcp-api.vg-stuff.com/v3 |
na-gcp |
https://na-gcp-api.vg-stuff.com/v3 |
For local development, set CONVOCORE_API_BASE_URL=http://localhost:5000/v3 to redirect both REST and WebSocket, or set CONVOCORE_INTERACT_WS_URL=ws://localhost:5000/interact to redirect only the /interact WebSocket while REST keeps using the regional host.
Authentication
Every request from ConvocoreClient includes:
Authorization: Bearer <WORKSPACE_SECRET>Content-Type: application/json
Non-OK responses: body is parsed as JSON; message is thrown as an error when present, otherwise a generic status message. Keep WORKSPACE_SECRET out of prompts, screenshots, and shared configs; use env vars or your host’s secret mechanism.
Gray-label client connections
Agencies can let a whitelabel client connect Claude, ChatGPT or Cursor to only the agents assigned to that client, under the agency's brand, on a neutral host (https://mcp-project.vg-stuff.com/mcp, extra hosts via GRAY_LABEL_MCP_HOSTS).
- The agency turns on AI assistant access for the client (
mcpAccesson the client). The client clicks Connect AI in their dashboard; the API mints agl_…connection token stored as a hash on the agency workspace (users/{workspaceId}/mcpClientConnections). - The agency host accepts
gl_tokens only, andgl_tokens work only there. The API scopes every call to the client's agents (client.widgetIDs ∪ org.widgetIDs, read live) and refuses workspace-level routes; this server also narrows the tool list and checks agent ids. - Server name, instructions, tool text, results, errors and the OAuth Connect page carry the agency brand (
{Agency} - {Client}), never the platform's. Scope and brand refresh every minute on open sessions; revoking a connection or turning access off stops it.
Quick start
Prerequisites
- A Convocore workspace secret (
WORKSPACE_SECRET). - Optional: correct region (
eu-gcp/na-gcp). - Node.js 20+ (ships with
npx). Docker is optional and only needed for the container workflow.
Option A: npx (recommended)
You don't have to install anything. Your MCP host (Claude Desktop, Cursor, etc.) runs the server on demand:
npx -y convocore-mcp
Set WORKSPACE_SECRET (and optionally CONVOCORE_API_REGION) in the host's env block — see the Claude Desktop example below.
The first invocation downloads the package (a few seconds); subsequent runs are cached by npm.
Option B: Docker
docker run -i --rm \
-e WORKSPACE_SECRET="your_workspace_secret_here" \
-e CONVOCORE_API_REGION="eu-gcp" \
moe003/convocore-mcp:latest
-i keeps stdin open so the MCP host can speak JSON-RPC to the container.
Option C: Local Node (development)
git clone https://github.com/moe003/convocore-mcp.git
cd convocore-mcp
pnpm install
pnpm run build
export WORKSPACE_SECRET="your_workspace_secret_here"
export CONVOCORE_API_REGION="eu-gcp"
node dist/index.js
Connecting MCP hosts
Gemini CLI
Install the extension (uses the hosted server; the first tool call opens a browser to sign in with your Convocore account):
gemini extensions install https://github.com/Moe03/convocore-mcp
Claude Desktop
Config path:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
npx (recommended):
{
"mcpServers": {
"convocore": {
"command": "npx",
"args": ["-y", "convocore-mcp"],
"env": {
"WORKSPACE_SECRET": "your_workspace_secret_here",
"CONVOCORE_API_REGION": "eu-gcp"
}
}
}
}
Windows note: if Claude Desktop fails to spawn
npxdirectly, wrap it withcmd:{ "mcpServers": { "convocore": { "command": "cmd", "args": ["/c", "npx", "-y", "convocore-mcp"], "env": { "WORKSPACE_SECRET": "your_workspace_secret_here", "CONVOCORE_API_REGION": "eu-gcp" } } } }
After saving the config, fully quit and relaunch Claude Desktop. The convocore server should appear in the MCP server list and the tools become available in chat.
Docker (alternative): pull the image first to avoid first-run timeout in the host:
docker pull moe003/convocore-mcp:latest
{
"mcpServers": {
"convocore": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "WORKSPACE_SECRET=your_workspace_secret_here",
"-e", "CONVOCORE_API_REGION=eu-gcp",
"moe003/convocore-mcp:latest"
]
}
}
}
Local Node (development): use an absolute path to dist/index.js:
{
"mcpServers": {
"convocore": {
"command": "node",
"args": ["/absolute/path/to/convocore-mcp/dist/index.js"],
"env": {
"WORKSPACE_SECRET": "your_workspace_secret_here",
"CONVOCORE_API_REGION": "eu-gcp"
}
}
}
}
Cursor and other clients
Any client that supports stdio MCP servers can use the same command + args + env pattern as above. The recommended command/args is npx + ["-y", "convocore-mcp"]; Docker and local Node also work. Set the same environment variables.
Dashboard one-click install (hosted MCP)
For a workspace dashboard button, call the hosted helper with the MCP URL, region, and workspace secret:
curl -sS -X POST https://mcp.convocore.ai/v1/install-links \
-H 'Content-Type: application/json' \
-d '{
"mcpUrl": "https://mcp.convocore.ai/mcp",
"workspaceSecret": "vg_…",
"region": "na-gcp",
"workspaceName": "Acme Agency"
}'
Response highlights — connector / install name defaults to Convocore {workspaceName} (e.g. Convocore Acme Agency) for Claude, Cursor, and other hosts:
| Field | Use |
|---|---|
name |
Display name used in Claude connectorName, Cursor deeplink name, Claude Desktop key |
cursor.deeplink |
Add to Cursor — true one-click (cursor://…/mcp/install with URL + Authorization + X-Convocore-Region in base64 config) |
cursor.webFallback |
https://cursor.com/en/install-mcp?… if the protocol handler is not registered yet |
claude.installUrl |
Add to Claude — opens the official prefilled custom-connector modal |
claude.connectorUrl |
/t/<base64url(secret)>/mcp?region=… (path keeps the secret after Claude strips ?token= from OAuth resource) |
claudeDesktop |
Optional local mcp-remote JSON for Claude Desktop config files |
Why Claude needs ?token= (and OAuth on the host)
- Cursor deeplinks embed headers in base64 — secret travels with the install.
- Claude’s install URL only prefills name + connector URL. No header query params exist.
- Claude then runs OAuth Dynamic Client Registration against the MCP host. Without
/oauth/register+ authorize/token, you get “Couldn't register with Convocore’s sign-in service”. - Hosted MCP implements that OAuth AS. Claude often strips
?token=from OAuthresource, so the secret is in the path (/t/…/mcp). Authorize shows a one-click Connect page (auto-submits) — no paste. Access tokens are the workspace secret,expires_in≈ 10 years, plus refresh. - MCP transport sessions idle-evict after ~1 year by default (
CONVOCORE_HOSTED_SESSION_IDLE_MS=0disables eviction). Reconnect recreates a session with the same secret.
Security note: ?token= in a Claude connector URL is a pragmatic tradeoff (logs/history). Prefer Cursor headers when possible; rotate the workspace secret if a link leaks.
You can also build the same URLs client-side with buildInstallLinks from dist/install-links.js without calling the API.
HTTP API mapping (what each tool calls)
All paths are relative to baseUrl (e.g. https://eu-gcp-api.vg-stuff.com/v3).
| Tool | Method | Path / pattern |
|---|---|---|
create_agent |
POST | /agents body { agent: { … } } (legacy/raw mode) |
create_agent_from_template |
POST workflow | Preferred: explicit systemPrompt / branding / merged voiceConfig; optional sourceUrl scrape + KB; then POST /agents; response includes full agent via follow-up get_agent |
get_agent |
GET | /agents/{agentId} |
update_agent |
PATCH | /agents/{agentId} body { agent: { … } } |
patch_agent_prompt |
GET+PATCH | get_agent then exact old_string→new_string on prompt/CSS field (Cursor StrReplace-style); PATCH only the changed fields |
delete_agent |
DELETE | /agents/{agentId} |
list_agents |
GET | /agents optional ?limit= when supported |
search_agents |
GET | /agents/search?workspaceId=…&page&limit&sortBy&starredOnly&search? (workspace resolved internally from MCP config/workspace secret context) |
export_agent |
GET | /agents/{agentId}/export-template |
import_agent |
POST | /agents/import-template |
get_agent_usage |
POST | /agents/{agentId}/usage body { range } |
list_conversations |
GET | /agents/{agentId}/convos?limit&cursor (cursor pagination; page>1 without cursor rejected) |
get_conversations_bulk |
GET×N | Fan-out GET /agents/{agentId}/convos/{convoId} (max 50 IDs, concurrency pool) |
query_conversations |
MCP | Cursor list + bulk filter (not server SQL; maxScan bound) |
get_agent_usage_bulk |
POST×N | Fan-out POST /agents/{agentId}/usage (max 20 agents) |
get_kb_docs_bulk |
GET×N | Fan-out GET /agents/{agentId}/kb/{docId} (max 30 docs) |
create_conversation |
POST | /agents/{agentId}/convos body { conversation } |
get_conversation |
GET | /agents/{agentId}/convos/{convoId} |
update_conversation |
PATCH | /agents/{agentId}/convos/{convoId} body { conversation } |
list_conversation_notes |
GET | /agents/{agentId}/convos/{convoId}/notes |
add_conversation_note |
POST | /agents/{agentId}/convos/{convoId}/notes body { text, authorName? } |
update_conversation_note |
PATCH | /agents/{agentId}/convos/{convoId}/notes/{noteId} body { text, authorName? } |
delete_conversation_note |
DELETE | /agents/{agentId}/convos/{convoId}/notes/{noteId} |
delete_conversation |
DELETE | /agents/{agentId}/convos/{convoId} |
export_all_conversations |
GET | /agents/{agentId}/convos/export?format=&limit=&cursor=&… (requires paid workspace / hasEverPaid) |
export_conversation |
GET | /agents/{agentId}/convos/{convoId}/export?format= |
assign_conversation |
POST | /agents/{agentId}/convos/{convoId}/assign body { assignToUserId, delegatedBy? } |
create_kb_from_urls |
POST×N or 1 | Fan-out / batch POST /agents/{agentId}/kb with sourceType=url + scrapeContent |
create_kb_doc |
POST | /agents/{agentId}/kb body: KB fields |
list_kb_docs |
GET | /agents/{agentId}/kb?page&pageSize |
get_kb_doc |
GET | /agents/{agentId}/kb/{docId} |
update_kb_doc |
PATCH | /agents/{agentId}/kb/{docId} |
patch_kb_doc |
GET+PATCH | get_kb_doc then exact old_string→new_string on content/name (Cursor StrReplace-style) |
delete_kb_doc |
DELETE | /agents/{agentId}/kb/{docId} |
get_kb_stats |
GET | /agents/{agentId}/kb/stats |
scrape_url |
HTTP ping or crawler | mode=check (default): fast status for up to 20 URLs/images; mode=scrape: full page scrape (1 URL) |