Skip to content

main changes to sai#104

Merged
viratatwebflow merged 4 commits intosaifrom
sai-temp
Apr 2, 2026
Merged

main changes to sai#104
viratatwebflow merged 4 commits intosaifrom
sai-temp

Conversation

@viratatwebflow
Copy link
Copy Markdown
Collaborator

No description provided.

viratatwebflow and others added 4 commits March 6, 2026 20:26
- Added trailing commas to function parameters and object properties for improved readability and consistency.
- Updated descriptions in the schema to ensure proper punctuation and clarity.
- Ensured default values for optional request properties in item creation to prevent potential errors.
refactor: CMS tool functions with consistent request options
* refactor: enhance deComponents and deElement tools with additional actions and improved descriptions

- Added 'unregister_component' action to deComponents tool, allowing for component unregistration with a cautionary note.
- Introduced 'remove_element' action to deElement tool for element removal, also marked as a dangerous action.
- Improved descriptions across various schema properties for better clarity and user guidance.

* refactor: standardize request options and improve default values in CMS tools

- Added missing commas in function calls to ensure proper syntax.
- Set default values for `cmsLocaleIds`, `isArchived`, and `isDraft` in the create items function to enhance robustness and prevent potential errors.
- Improved descriptions in the schema for better clarity and consistency.

* refactor: improve deStyle tool descriptions and remove deprecated functionality

- Enhanced descriptions in the deStyle tool schema for better clarity and consistency.
- Removed the deprecated 'de_learn_more_about_styles' tool registration, as it is no longer necessary with the support of 500+ styles.

* refactor: enhance deVariable tool with custom value support and improved documentation

- Added 'custom_value' field to the deVariable tool schema, allowing for arbitrary CSS expressions when standard types are insufficient.
- Updated documentation in the rules tool to clarify the usage of 'custom_value' alongside 'static_value' and 'existing_variable_id' for better user guidance.

* refactor: enhance deComponents and deElement tools with improved validation and documentation

- Introduced ComponentSchema and ElementSchema validators for stricter validation of component and element schemas, ensuring proper structure and data integrity.
- Enhanced descriptions in the schemas for better clarity and user guidance.
- Updated the registerDEComponentsTools and registerDEElementTools functions to include new validation logic and improved error handling for invalid schemas.
- Expanded the rules tool documentation to clarify usage of the new component and element builder functionalities.

* feat: add webhook tools registration to enhance integration capabilities

- 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.

* chore: update zod dependency to version 3.25.76 for improved validation features

* refactor: standardize request options and enhance enterprise tools with 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.

* refactor: enhance tools registration with access token support (#88)

- Added `getAccessToken` function to retrieve the Webflow access token, ensuring it is available for tool registration.
- Updated `registerTools` and related functions to include the new access token parameter for improved API interactions.
- Modified type definitions to reflect the addition of the access token functionality.

* feat(ai): add list-workflows public MCP tool (#86)

* feat(ai): add list-workflows public MCP tool

PR 3 of 3 for DEVPL-3935. Adds data_workflows_tool to the public
Webflow MCP server, calling GET /v2/sites/:site_id/workflows via
raw fetch (no SDK method exists yet).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(ai): extract registerWorkflowTools, remove from OSS entrypoint

Per review: workflows tool is not part of the OSS stdio version.
- Remove getToken param from registerTools
- Remove registerWorkflowsTools call from registerTools
- Export new registerWorkflowTools(server, getAccessToken) for use
  by the cloud-hosted MCP entry point
- Remove getToken helper from index.ts (OSS version)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(ai): add execute_workflow and get_workflow_execution_status to data_workflows_tool (#87)

* feat(ai): add list-workflows public MCP tool

PR 3 of 3 for DEVPL-3935. Adds data_workflows_tool to the public
Webflow MCP server, calling GET /v2/sites/:site_id/workflows via
raw fetch (no SDK method exists yet).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(ai): add execute_workflow and get_workflow_execution_status actions

Extends data_workflows_tool with two new actions alongside list_workflows:
- execute_workflow: POST /v2/sites/:site_id/workflows/:workflow_id/execute
- get_workflow_execution_status: GET /v2/sites/.../executions/:execution_id

Also refactors fetch calls into a shared apiRequest helper.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Address review comments: remove duplicate tool registration and extract helper

- Remove registerWorkflowsTools from registerTools() — it's already
  registered via the dedicated registerWorkflowTools() export
- Extract action dispatch loop into handleWorkflowActions() helper

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Address 4vanger's review nits

- apiRequest now accepts getToken: () => string instead of a pre-evaluated
  token string, since callers always pass the getter
- apiRequest returns Content directly via textContent(), removing the
  wrapping at each call site

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(tools): ensure proper handling of customDomains and improve documentation (#91)

* feat(deVariable): add rename, delete, and query variable functionalities [BETA] (#92)

* feat(deStyle): add query_styles functionality to enhance style querying capabilities (#93)

* feat(deStyle): add query_styles functionality to enhance style querying capabilities

- Introduced a new `query_styles` option in the deStyle tool, allowing users to filter styles based on various criteria such as style ID, name path, and CSS properties.
- Updated validation to ensure at least one of the style-related actions (create_style, get_styles, update_style, query_styles) is provided.
- Enhanced documentation for better clarity on the new querying features.

* feat(deStyle): add remove_style action to enhance style management capabilities

- Updated the deStyle tool to include a new `remove_style` action, allowing users to remove specific styles by name and optionally specify parent styles.
- Enhanced the tool's description to reflect the new functionality.
- Updated validation to ensure at least one of the style-related actions (create_style, get_styles, update_style, remove_style, query_styles) is provided.

* refactor(deStyle): change parent_style_name to parent_style_names as an array for improved style management (#90)

- Updated the schema to replace the single string field `parent_style_name` with an array `parent_style_names`, allowing for multiple parent styles to be specified.
- Enhanced descriptions for clarity on usage in combo class creation and style updates.

* feat(deElement): introduce whtml_builder tool for HTML and CSS element insertion (#95)

- Added a new `whtml_builder` tool to facilitate the insertion of elements from HTML and CSS strings into the current active page.
- Implemented input schema validation for the tool, including parameters for HTML markup, CSS rules, and insertion position.
- Enhanced documentation to provide clear usage instructions and rules for HTML and CSS inputs.
- Updated the `registerRulesTools` function to include guidance on using the new `whtml_builder` tool.

* feat: Component Tool - Improved Component Creation + Retrieval (#94)

* Add new component tool action schemas

Add Zod schemas for create_blank_component, get_component_by_id,
get_component_by_name, open_component_canvas, get_component_settings,
and set_component_settings. Extend transform_element_to_component
with optional group and description fields.

* Address PR feedback: merge get_component actions, rename settings to metadata

- Merge get_component_by_id and get_component_by_name into single get_component action
- Rename get/set_component_settings to get/set_component_metadata
- Update refine validator and error message

* Remove open_component_canvas and create_blank_component schemas

* fix(workflows): update workflow endpoints to match new API naming (#98)

- Rename execute_workflow → run_workflow (POST .../run)
- Rename get_workflow_execution_status → get_workflow_run (GET .../runs/:run_id)
- Add workflow_id param to get_workflow_run for new endpoint shape

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(workflows): add list_workflow_runs action to data_workflows_tool (#100)

Adds GET /v2/sites/:site_id/workflows/:workflow_id/runs to retrieve
the run history for a given workflow.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(deComponents, deElement): enhance creation_position options for component and element tools

- Updated the creation_position parameter to include "before" and "after" options, allowing for more flexible insertion of components and elements.
- Revised descriptions for clarity on how each position affects the insertion behavior, distinguishing between child and sibling placements.

---------

Co-authored-by: Albert Chang <bertenator@gmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Guillermo Pineda <13656292+memo-pineda@users.noreply.github.com>
…eComponents, deElement, and dePages tools

- Consolidated import statements for better readability.
- Simplified function signatures by removing unnecessary line breaks.
- Enhanced descriptions across various schema properties for improved clarity and user guidance.
- Added 'open_page_canvas' action to dePages tool for navigating the Designer canvas to a specific page.
@viratatwebflow viratatwebflow marked this pull request as ready for review April 2, 2026 16:23
@viratatwebflow viratatwebflow requested a review from a team as a code owner April 2, 2026 16:23
@viratatwebflow viratatwebflow requested review from bertenator, memo-pineda and zmcnellis and removed request for a team and zmcnellis April 2, 2026 16:23
@viratatwebflow viratatwebflow merged commit 6fd3183 into sai Apr 2, 2026
6 checks passed
@viratatwebflow viratatwebflow deleted the sai-temp branch April 2, 2026 16:30
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