Skip to content

v0.7.0 — Chatwoot 4.20 coverage, credential sanitization

Choose a tag to compare

@RenatoAscencio RenatoAscencio released this 02 Dec 21:12
· 13 commits to main since this release

Added

  • Companies (CRM), 14 core tools: list_companies, search_companies, get_company, create_company, update_company, delete_company, delete_company_custom_attributes, list_company_contacts, search_company_contacts, add_company_contact, remove_company_contact, list_company_conversations, filter_company_conversations, list_company_notes. Requires the companies feature on the Chatwoot account.
  • list_message_templates: WhatsApp message templates of an inbox, with an optional name filter.
  • get_conversation_unread_counts and delete_conversation_custom_attributes.
  • Help Center: helpcenter_bulk_update_articles_status, helpcenter_bulk_update_articles_category, helpcenter_bulk_delete_articles, helpcenter_remove_portal_locale.
  • New optional params: sort_by on list_conversations and filter_conversations; in_reply_to on send_message; q, types, since, until and sort on enterprise_list_audit_logs.
  • MCP_SAFE_MODE now also blocks delete_company, delete_company_custom_attributes, remove_company_contact, delete_conversation_custom_attributes, helpcenter_bulk_delete_articles and helpcenter_remove_portal_locale (26 tools in total).
  • Aligned with Chatwoot v4.20.3. 154 tools in total.

Security

  • Tool responses are now sanitized before reaching the MCP client: credential fields are removed at any depth in every bucket (fixes #3). Covered keys: provider_config, hmac_token, webhook_verify_token, auth_token, api_key, api_key_secret, imap_password, smtp_password, callback_auth_password, business_management_token, secret, otp_secret, access_token, pubsub_token (see src/utils/sanitize.ts).
    • Behavior change: tools that previously returned an access_token or webhook/bot secret (e.g. get_profile, Platform agent bot/user tools, list_webhooks) no longer include it. Retrieve credentials from the Chatwoot dashboard instead.
  • Updated dependencies to clear all npm audit advisories:
    • @modelcontextprotocol/sdk: 1.29.0 → 1.32.2
    • axios: 1.16.0 → 1.22.0
    • express: 5.x → 5.3.0
    • zod: 3.x → 4.6.7 (peer of the MCP SDK; not imported directly)

Changed

  • The repository moved to the serversmx organization. The Docker image is now published as ghcr.io/serversmx/mcp-chatwoot; the old ghcr.io/renatoascencio/mcp-chatwoot no longer receives updates.
  • Images are built on GitHub-hosted runners for linux/amd64 and linux/arm64.
  • New CI workflow runs lint, build and tests on Node 20 and 22 for every PR.
  • Multi-account mode is easier to discover: the account_id descriptions, get_profile and the missing-account error point to get_profile, which lists the accounts the token can access.

Fixed

  • get_profile now calls the root-level /api/v1/profile endpoint instead of the non-existent account-scoped path (fixes #2).
  • get_conversation_counts now uses /conversations/meta (the previous /conversations/counts route does not exist in Chatwoot).
  • set_conversation_priority with none now sends null, which is what Chatwoot expects to clear the priority.
  • The server reports its real version (read from package.json) instead of a hardcoded value.

Upgrading

  • Docker image: ghcr.io/serversmx/mcp-chatwoot:0.7.0 (multi-arch).
  • Tool outputs no longer include credentials (access_token, secret, provider_config, …). If an integration relied on reading them through the MCP, get them from the Chatwoot dashboard instead.