mcpField
K
kapso-ops

kapso-ops

github.com/gokapsoCloud & DevOps19287 installsUpdated 3w ago
Repository

About kapso-ops

A Kapso operations skill for diagnosing webhook, WhatsApp message delivery, and API issues. It provides scripts for setup, investigation, error triage, and phone-number health checks.

Key features

  1. 01Webhook setup and testing
  2. 02Message and conversation lookup
  3. 03Error and API log inspection
  4. 04Webhook delivery tracking
  5. 05Project and number health checks

Use cases

  1. 01Configure and test a webhook
  2. 02Investigate a message that was not delivered
  3. 03Review API errors and webhook attempts
  4. 04Check WhatsApp phone-number health

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/gokapso/agent-skills --skill kapso-ops

After installing, type/kapso-opsin Claude Code to confirm it loaded.

Details

From the project README

Kapso Ops

When to use

Use this skill for operational diagnostics: webhook setup, message delivery investigation, error triage, and WhatsApp health checks.

Setup

Env vars:

  • KAPSO_API_BASE_URL (host only, no /platform/v1)
  • KAPSO_API_KEY

How to

Set up a webhook
  1. Create: node scripts/create.js --phone-number-id <id> --url <https://...> --events <csv>
  2. Verify signature handling (see references/webhooks-overview.md)
  3. Test: node scripts/test.js --webhook-id <id>
Investigate message delivery
  1. List messages: node scripts/messages.js --phone-number-id <id>
  2. Inspect message: node scripts/message-details.js --message-id <id>
  3. Find conversation: node scripts/lookup-conversation.js --phone-number <e164>
Triage errors
  1. Message errors: node scripts/errors.js
  2. API logs: node scripts/api-logs.js
  3. Webhook deliveries: node scripts/webhook-deliveries.js
Run health checks
  1. Project overview: node scripts/overview.js
  2. Phone number health: node scripts/whatsapp-health.js --phone-number-id <id>

Scripts

Webhooks
ScriptPurpose
list.jsList webhooks for a phone number
get.jsGet webhook details
create.jsCreate a webhook
update.jsUpdate a webhook
delete.jsDelete a webhook
test.jsSend a test event to a webhook

Common flags for create/update:

  • --url <https://...> - Webhook URL
  • --events <csv> - Event types (comma-separated)
  • --kind <kapso|meta> - Webhook type
  • --payload-version <v1|v2> - Payload format (v2 recommended)
  • --buffer-enabled <true|false> - Enable buffering
  • --active <true|false> - Enable/disable
Messages
ScriptPurpose
messages.jsList messages
message-details.jsGet message details
lookup-conversation.jsFind conversation by phone or ID
Errors and logs
ScriptPurpose
errors.jsList message errors
api-logs.jsList external API logs
webhook-deliveries.jsList webhook delivery attempts
Health
ScriptPurpose
overview.jsProject overview
whatsapp-health.jsPhone number health check

Notes

  • Use config-level webhooks for whatsapp.message.* events
  • Payload version v2 is recommended for new integrations
  • Meta webhooks provide raw payloads; Kapso webhooks support buffering

References

Related skills

  • kapso-automation - Automation and functions
  • whatsapp-messaging - WhatsApp messaging
  • kapso-api - Platform API and customers

Comments

Markdown supported