Skip to content

[DEVREL-2647] Add data_webhook_tool for Webflow webhook management#83

Merged
viratatwebflow merged 2 commits intosaifrom
virat/webhook-tool
Mar 12, 2026
Merged

[DEVREL-2647] Add data_webhook_tool for Webflow webhook management#83
viratatwebflow merged 2 commits intosaifrom
virat/webhook-tool

Conversation

@viratatwebflow
Copy link
Collaborator

@viratatwebflow viratatwebflow commented Mar 12, 2026

Summary

This PR introduces data_webhook_tool, a new MCP data tool for managing Webflow webhooks via the Data API.

  • Supports 4 actions: list_webhooks, create_webhook, get_webhook, delete_webhook
  • Supports all 17 webhook trigger types (form_submission, site_publish, page events, ecomm events, etc.)

Test plan

  • Verify data_webhook_tool registers correctly via MCP client
  • Test list_webhooks with a valid site ID
  • Test create_webhook with a valid trigger type and URL
  • Test get_webhook and delete_webhook with a valid webhook ID

- Introduced `registerWebhookTools` to the tools registration process, allowing for improved webhook management.
- Updated the tools index to export the new webhook tools for broader accessibility.
@viratatwebflow viratatwebflow requested a review from a team as a code owner March 12, 2026 14:25
@viratatwebflow viratatwebflow requested review from bertenator and memo-pineda and removed request for a team March 12, 2026 14:25
@@ -0,0 +1,209 @@
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { WebflowClient } from "webflow-api";
import { z } from "zod/v3";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think only v3.25 and up has v3 package so I think this needs to be bumped. Fwiw, I think it should still work since cloudflare mcp repo already uses 3.25 but good to be safe.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes make sense, let use the exact dependency.

Copy link

@memo-pineda memo-pineda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working as expected, but I did need to bump zod so let's do that

@viratatwebflow viratatwebflow merged commit c9837d1 into sai Mar 12, 2026
5 checks passed
@viratatwebflow viratatwebflow deleted the virat/webhook-tool branch March 12, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants