IDSC-1440: Add site activity logs support to enterprise tool#85
Merged
viratatwebflow merged 1 commit intosaifrom Mar 17, 2026
Merged
IDSC-1440: Add site activity logs support to enterprise tool#85viratatwebflow merged 1 commit intosaifrom
viratatwebflow merged 1 commit intosaifrom
Conversation
…th new functionality - Added missing commas in function calls to ensure proper syntax. - Introduced `listSiteActivityLogs` function to the enterprise tools for improved site activity tracking. - Enhanced descriptions in the schema for better clarity and consistency.
memo-pineda
approved these changes
Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
list_site_activity_logsaction todata_enterprise_toolfor retrieving site activity logs (GET /v2/sites/{site_id}/activity_logs)zodto3.25.76to fixzod/v3subpath runtime resolution required by@modelcontextprotocol/sdk@1.25.2Details
Activity logs are an Enterprise-only Webflow API. Workspaces commonly contain a mix of Enterprise and non-Enterprise sites. When an LLM requests logs for multiple sites in one batch, non-Enterprise sites return a 403 with
body.code: "not_enterprise_plan_site". Without per-action error handling, the first 403 would abort the entire batch.Changes in
src/tools/enterprise.tslistSiteActivityLogshelper callinggetClient().sites.activityLogs.list()list_site_activity_logsschema withsite_id, optionallimit, optionaloffsetWebflowError.statusCodeandbody.codeformatErrorResponseutilityisErrorflag set when any action failsChanges in
package.jsonzodpinned to3.25.76(was^3.24.2) — required forzod/v3subpath to resolve at runtimeTesting performed
Build —
npx tsup src/index.tssucceedsRuntime —
zod/v3resolves correctly withzod@3.25.76Mixed workspace — Tested against workspace with 10 sites (2 Enterprise, 8 non-Enterprise):
backup_createdevents){"error":true,"message":"This site does not have an Enterprise hosting plan. This action requires an Enterprise site plan."}MCP protocol — Confirmed
isError: trueset on response when any action failsError shape verification — Confirmed Webflow API returns
statusCode: 403withbody.code: "not_enterprise_plan_site"(notnot_enterprise_plan_workspace)Code review — Two rounds of 4-dimensional review (security, architecture, readability, simplicity), all blockers resolved