MCP, usar o Groupilot a partir do Claude
Conectar o Claude, o Cursor ou qualquer cliente MCP ao Groupilot, as ferramentas expostas, o prompt de sequência, o recurso de documentação e as regras de segurança.
O Groupilot opera um servidor MCP. Conecte-o ao seu assistente e diga "crie meu webi de domingo às 20h com uma sequência J-1, H-1 e gravação". O assistente chama a mesma API que todo mundo, com a sua conexão OAuth ou a sua chave, e pede confirmação antes de tudo o que toca pessoas de verdade.
Conectar
Servidor remoto (recomendado)
| URL | https://app.groupilot.com/mcp |
| Transporte | Streamable HTTP, sem sessão, respostas JSON |
| Auth | OAuth (o cliente abre a janela de autorização do Groupilot, nenhuma chave para copiar) ou, para uma ferramenta sem OAuth, Authorization: Bearer gp_live_… |
A URL e o passo a passo de cada ferramenta estão no app, em Configurações, MCP: Claude, ChatGPT, Claude Code, Cursor e Codex se conectam com a sua conta do Groupilot, sem API key. O guia retoma essas etapas: MCP: conectar seu assistente de IA.
Sem token, o servidor responde 401 com WWW-Authenticate: Bearer realm="groupilot", resource_metadata="https://app.groupilot.com/.well-known/oauth-protected-resource/mcp": um cliente compatível com OAuth se registra sozinho, abre a janela de autorização do Groupilot em que você escolhe a conta do WhatsApp e vê as permissões pedidas, e recebe o token. Nada para copiar. Veja Connect OAuth.
Uma API key só serve para uma ferramenta que não trata a conexão OAuth e permite definir cabeçalhos: cabeçalho Authorization com o valor Bearer gp_live_….
Uma conexão vale para uma única conta do WhatsApp. Uma agência com vários clientes adiciona o servidor uma vez por conta, com um nome diferente a cada vez: veja Agência: conectar várias contas do WhatsApp.
{ "mcpServers": { "groupilot": { "url": "https://app.groupilot.com/mcp" } } }Pacote local (em breve)
Para os clientes sem OAuth remoto, uma ponte local roda em stdio com uma API key:
{
"mcpServers": {
"groupilot": {
"command": "npx",
"args": ["-y", "@groupilot/mcp"],
"env": { "GROUPILOT_API_KEY": "gp_live_…" }
}
}
}GROUPILOT_MCP_URL é opcional. O pacote ainda não está no npm: use o servidor remoto enquanto isso.
O que o assistente pode fazer
Uma ferramenta por endpoint da API, com os mesmos scopes (read, write, send), os mesmos limites e os mesmos erros ({ "error": { "code", "message", "field" } }). Cada chamada aparece em Configurações, MCP, cartão Uso, e em Configurações, Integrações, Últimas chamadas, com o método MCP. Sem envio de mídia em duas etapas via MCP: o assistente usa import_media com uma URL pública.
create_event e update_event aceitam o campo language de um evento (veja Idioma das mensagens). set_recurrence move as datas existentes e devolve moved e pinned.
As ferramentas que tocam pessoas de verdade (send_adhoc_message, create_broadcast, cancel_job, cancel_broadcast, pause_event, delete_sequence, delete_message, delete_webhook, confirm_backup_admin) são marcadas como destrutivas e a descrição delas pede ao assistente que confirme com você primeiro. As ferramentas de leitura são marcadas como somente leitura.
Ler (23)
| Ferramenta | O que ela faz |
|---|---|
get_account | The connected WhatsApp account: number status, billing state, limits and the scopes of this key. Call it first to know what you can do. |
list_notifications | Recent account notifications: send failures, disconnections, full communities. Use it to explain a problem to the user. |
list_events | The account's events (a webinar, a challenge…), each with its WhatsApp communities and smart link. Filter by status. |
get_event | One event with its linked sequence, recurrence, smart link and where the link currently sends people. |
get_recurrence | The weekly rule of a recurring event (days, time, time zone) and its smart link. |
list_occurrences | The dated sessions of an event (upcoming or past), each with its WhatsApp communities and their invite links. |
get_occurrence | One dated session with its communities, invite links, member counts and provisioning state. |
list_communities | Every community of the number: the ones Groupilot created (with their event) and the external ones. Their `whatsapp_id` is what broadcasts target. |
get_community | One Groupilot community with its links, member count and settings. |
list_sequences | The message sequences of the account (name, message count, linked events). |
get_sequence | A sequence and its ordered steps (timing relative to the live, type, text, media, poll, or the `community_update` payload of a step that renames / re-describes the community). |
preview_resync | What applying the sequence again to its linked events would change (messages added, updated, canceled), per event, without changing anything. |
list_jobs | The messages planned, sent or failed for an event, with filters (status, occurrence, dates) and a cursor. |
get_job | One scheduled message with its effective content, status, retries and what can still be done with it. |
list_job_deliveries | For one scheduled message, each community it was sent to and the result. |
list_broadcasts | Broadcasts sent or scheduled to chosen communities, with their counters. |
get_broadcast | One broadcast with its status and counters. |
list_broadcast_recipients | The communities targeted by a broadcast and the outcome for each. |
list_webhooks | The account's webhook endpoints. Event types: member.joined (Someone joined a WhatsApp community of one of your events.); job.sent (A scheduled message was sent (all or part of its communities).); job.failed (A scheduled message failed for good (no more automatic retry).); community.created (A WhatsApp community was created for an occurrence.); community.full (A community reached its switch threshold; the next one takes over.); channel.disconnected (The WhatsApp number went offline and needs a new QR scan.); event.paused (An event was paused (through the API).); broadcast.completed (A broadcast finished (completed, failed or requires review).). |
list_webhook_deliveries | Recent deliveries of one endpoint with status, attempts and HTTP results (30 days). |
get_webhook | One endpoint with its events and state. |
get_member_webhook | The per-event webhook called when someone joins a community (legacy feature; prefer account webhooks with `member.joined`). |
get_backup_admin | Sensitive. The backup administrator (a second phone number added as admin of each community so the user keeps control if the main number is lost), with the state per community. Phone numbers are masked. |
Configurar (29)
| Ferramenta | O que ela faz |
|---|---|
create_event | Creates an event (punctual or recurring) with its WhatsApp community settings. Communities are created automatically before each occurrence. Ask the user for the name, the date/time (or weekly days) and the time zone before calling. |
update_event | Changes an event's settings (display name, link fallback, community names, policies…). The slug (smart link) and the time zone are locked once created; renaming keeps the link and the existing communities as they are. `apply_to_existing_communities` pushes community name/description changes to live WhatsApp communities. |
pause_event (pede confirmação a você) | Stops every scheduled message of the event until resumed; messages whose time passes during the pause are not sent later. Confirm with the user before calling. There is no delete: pausing is the way to stop. |
resume_event | Resumes a paused event: future messages go out again (elapsed ones were canceled). |
link_sequence | Attaches a message sequence to an event (or detaches it with sequence_id null). Pending messages of upcoming occurrences are recomputed. |
set_recurrence | Changes the weekly days/time of a recurring event. Use `dry_run: true` first to see which occurrences would be added or canceled, then apply. |
create_occurrence | Adds a dated session to an event (local date-time in the event's time zone). Its community and messages are created automatically. |
retry_provisioning | When an occurrence's WhatsApp community failed to be created, asks for a new attempt. |
update_community | Renames a community, changes its description or who may post. Applied on WhatsApp right away. |
sync_sequence | The recommended way to write a sequence: send the complete sequence (name + ordered messages, each with an `external_id`). Groupilot creates it or updates it, matching messages by external_id and removing the missing ones. Pending messages of linked events are resynchronised unless `apply_to_pending_jobs` is false. Timing format: `J-2 10:00` (2 days before the live at 10:00), `J0 19:45`, `J+1 09:00`, or whole hours relative to the live time (`H-1`, `H+2`; minutes are not allowed in `H` timings, use a fixed `J0 HH:MM` time instead). A step of type `community_update` posts nothing: it changes the community name and/or description at its time (`community_update: { name_template, description_template, restore_name, restore_description }`, variables `{community_name}`, `{community_description}`, `{event_name}`, `{date}`, `{time}`, `{J+4:date}`...); typical pair: `🔴 EN LIVE · {community_name}` at the live time (`J0 20:00` for a 20:00 live) and `restore_name: true` at a fixed time after the live (`J0 22:00`). Always use fixed `J0 HH:MM` times for these steps. WhatsApp shows a system line at each change, so keep these steps rare. A text message with `link_preview: false` is sent without the preview card of its link (default `true`). At most 200 messages per sequence. The texts, poll questions and options, and community update templates of one call add up to at most 3 MiB (3,145,728 bytes, counted in UTF-8); a larger payload is refused with `400 validation_error` (field `messages`) before anything is written: split the content across several sequences or shorten the texts. Send the JSON as UTF-8: a request body above 4 MiB is refused with HTTP `413` (escaping every non-ASCII character as `\uXXXX` can double the size of texts written in non-Latin scripts). The sync is refused with a `conflict` error, before anything is written, when the linked events' upcoming occurrences times the messages would exceed 20,000 scheduled sends: link fewer events, or pass `apply_to_pending_jobs: false` and resync event by event with `resync_sequence`. Use the `generate_sequence` prompt to draft one. |
create_sequence | Creates a sequence with a name; add messages with add_message (prefer sync_sequence for a full sequence). |
rename_sequence | Changes the name of a sequence. |
delete_sequence (pede confirmação a você) | Deletes a sequence. Refused while an active or paused event uses it unless `force` is true (the events are then unlinked and their pending messages canceled). Confirm with the user. |
add_message | Appends one step (text, image, video, audio, document, poll, or `community_update` to rename / re-describe the community at that time; then pass `community_update` with `name_template` / `description_template` or `restore_name` / `restore_description`, no text or media) with its timing. On a text message, `link_preview: false` sends it without the preview card of its link (default `true`). At most 200 messages per sequence. Pending sends of linked events are resynchronised unless `resync` is false. |
update_message | Changes the text, timing, media, poll, link preview (`link_preview`, text messages only) or `community_update` payload of one step. Switching a step to `community_update` needs its payload in the same call and drops text, media, poll and ghost mention. |
delete_message (pede confirmação a você) | Removes one message; its pending sends are canceled when `resync` is true (default). |
reorder_messages | Sets the display order of the messages (all ids, in order). |
resync_sequence | Applies the sequence to the pending messages of its linked events (or only `event_ids`). Sent, in-progress and hand-edited messages are left alone. Refused with a `conflict` error, before anything changes, above 20,000 scheduled sends in one call: pass fewer `event_ids`. |
import_media | Downloads a public HTTPS file (image, video, audio, document; 40 MB max) into the account's media library and returns the `media_url` to use in messages. |
create_webhook | Registers an HTTPS URL to receive events (5 max). Returns the signing secret ONCE: give it to the user to store, never repeat it later. |
update_webhook | Changes the URL, events or description; `enabled: false` pauses deliveries. |
delete_webhook (pede confirmação a você) | Deletes an endpoint and its delivery history. Confirm with the user. |
rotate_webhook_secret | Issues a new signing secret (shown once); the old one stops working immediately. |
test_webhook | Posts a `webhook.test` envelope now and reports the first attempt (HTTP status). |
set_member_webhook | Sets (or clears with null) the per-event member-join webhook URL. Returns the signing secret once when created. |
rotate_member_webhook_secret | New signing secret for the per-event webhook, shown once. |
test_member_webhook | Sends a test delivery to the per-event webhook. |
set_backup_admin_default | Sensitive. Saves the default backup phone number of an event (E.164, must already be a saved WhatsApp contact of the main number). Does not change communities by itself: use preview_backup_admin then confirm_backup_admin. |
preview_backup_admin | Sensitive. Computes what `apply`, `retry`, `stop`, `enable_rule` or `stop_rule` would do on the chosen communities and returns a preview id valid a few minutes. Nothing changes yet. |
Enviar (7)
| Ferramenta | O que ela faz |
|---|---|
send_adhoc_message (pede confirmação a você) | Plans one extra message to the communities of an occurrence at `send_at` (at least 60 s ahead; 30 per day). This sends a WhatsApp message to real people: confirm the text, the occurrence and the time with the user first. |
override_job | Changes the text or media of one pending message (not a poll, not a community update step: error `community_update_not_editable`, not already attempted) for this occurrence only, without touching the sequence. |
cancel_job (pede confirmação a você) | Cancels one pending scheduled message for good. Confirm with the user. |
retry_job | Re-queues a failed or partially sent message (`mode`: failed, partial, overdue, force_now). Only communities that certainly did not receive it are retried. |
create_broadcast (pede confirmação a você) | Sends one message (text, media or poll; never a community update) to up to 200 communities now or at a date (8 per day). Targets are `whatsapp_id`s from list_communities. This reaches real people: show the user the exact text and targets and get a yes before calling. |
cancel_broadcast (pede confirmação a você) | Cancels a broadcast that has not started sending. |
confirm_backup_admin (pede confirmação a você) | Sensitive, irreversible on WhatsApp: applies a previewed change (adds or removes an administrator in real communities). Show the preview to the user and get an explicit yes before calling. |
A lista acima vem do catálogo online, mcp-tools.json (descrições em inglês).
O prompt de sequência
O servidor fornece um prompt generate_sequence com os argumentos event_name, live_day_time, offer, e opcionalmente tone e language (francês por padrão). Ele passa ao assistente as regras de uma sequência (janela de J-4 a J+3, no máximo 200 mensagens, horários H em horas inteiras, menção a todos os membros apenas nas duas ou três mensagens mais importantes) e o formato exato de sync_sequence. O assistente redige, você revisa e depois ele registra com sync_sequence. O Groupilot não roda nenhuma IA: a geração acontece no seu assistente. O prompt também conhece a etapa community_update e sugere, para uma live, 🔴 EN LIVE · {community_name} na hora da live e a restauração do nome duas horas depois. Ele também conhece link_preview: false (um texto enviado sem o cartão de prévia do link), usado só se você pedir.
A documentação como recurso
O servidor expõe groupilot://docs/llms.txt, esta documentação em um único arquivo atualizado a cada hora, para o assistente conhecer as regras de horário, as variáveis e os limites sem precisar procurar. Você também pode colar o llms-full.txt em qualquer conversa.
Segurança
- O servidor tem exatamente os direitos da chave ou da autorização OAuth. Uma chave sem
sendnão consegue enviar, seja o que o assistente tentar. - Prefira
readewritepara a configuração do dia a dia. Adicionesendsomente quando você quiser que o assistente envie. - Remova uma conexão OAuth em Configurações, MCP, cartão Acessos (ou Integrações, Aplicativos conectados), e revogue uma chave em Configurações, Integrações: o assistente perde o acesso em menos de um minuto.
Exemplo de conversa
Crie um evento recorrente "Webinário do domingo", todo domingo às 20:00, comunidades criadas 3 dias antes. Depois monte uma sequência com um lembrete na véspera às 10:00, uma imagem uma hora antes, uma mensagem que menciona todo mundo às 19:55 com o link do Zoom, e uma mensagem de gravação no dia seguinte às 10:00. Ligue-a ao evento e me dê o link inteligente.
O assistente chama create_event, sync_sequence (depois de mostrar as mensagens a você), link_sequence, depois get_event e devolve o smart_link.