Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions bb-ai/build/build-with-mcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ An agent works through a fixed set of tools, and those tools reach the whole sit
- **Generate a style guide**. Produce a page that showcases a design system's colors, typography, and components.
- **Edit existing pages**. Read a layout outline, rewrite content and code, change settings, add, move, and remove nodes in a batch, and update page CSS and JavaScript.
- **Manage design systems**. Create a design system, update its tokens, shared CSS, JavaScript, and fonts, edit its creative guidance, and assign it to a page.
- **Read and update Global Styles**. Change the site-wide text, heading, link, and button styles and the global color palette; see [Global Styles](../configuration/mcp-connection.md#global-styles).
- **Create Builder templates**. Save static, global, and component templates for reuse; see [Saving a Custom module as a Component](custom-module.md#saving-a-custom-module-as-a-component) for how components behave.
- **Create Themer layouts**. Build a Themer layout and set the location rules that decide where it applies, when Beaver Themer is active.
- **Bind dynamic field connections**. Connect post and site data to a layout, when Beaver Themer is active.
Expand All @@ -56,7 +57,7 @@ A few things depend on being inside the editor, so they belong to the chat rathe
- No live canvas. You review the result after the agent finishes rather than watching it build.
- No canvas selection. You describe the page and section you mean instead of clicking it.
- No screenshot or reference image as the source for a page, and no `.html` file upload.
- No stock photo search and no image generation. Images come from your media library or by URL.
- No stock photo search. Images come from your media library, by URL, or from image generation when a Google Gemini API key is connected.
- No inferring a design system from your existing site or theme styles.

## Writing effective prompts
Expand Down Expand Up @@ -95,11 +96,13 @@ Labeling your rows, columns, and modules in the builder gives the agent clearer

## Working with images

An agent can browse your media library through the WordPress site tools and place images that are already uploaded, or bring in new ones by URL.
An agent can browse your media library through the WordPress site tools and place images that are already uploaded, bring in new ones by URL, or generate them when a Google Gemini API key is connected.

Give the agent a direct image URL and it downloads the file into your media library, then uses it in the layout. Only `http` and `https` URLs are accepted, private and internal hosts are blocked, and SVG files are refused. Asking for the same URL twice reuses the existing attachment instead of creating a duplicate, and the connected user needs the `upload_files` capability.

If the agent writes a broken or made-up image URL into a page, the plugin replaces it with a real stock photo, the same as it does for pages built in the chat, so a page never arrives with empty image boxes. Image generation and Unsplash search belong to the built-in chat; see [Images](images.md#adding-images-with-an-mcp-connection).
If the agent writes a broken or made-up image URL into a page, the plugin replaces it with a real stock photo, the same as it does for pages built in the chat, so a page never arrives with empty image boxes.

With a Gemini key saved on the Settings tab, the agent can also generate an image from a description and save it to your media library. Each generated image is billed to your Google account. Unsplash search belongs to the built-in chat; see [Images](images.md#adding-images-with-an-mcp-connection).

## How changes are applied

Expand Down
10 changes: 7 additions & 3 deletions bb-ai/build/custom-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,21 @@ A repeater field can pull its items from your site's content instead of holding

Each top-level repeater in the Content tab has a header with two views, **Fields** and **Data Source**. The Fields view is the normal manual list of items. Switch to the Data Source view to bind the repeater to a source, then connect the repeater's fields to that source's properties:

- **Custom Query** queries posts you configure. Choose one or more post types, the number of items, and the ordering, then narrow the results as far as you need. You can include or exclude specific posts, terms, and authors, add an **Offset** to skip the first few results, turn on **Exclude Current Post** so a related posts section never lists the page it is on, and sort by a meta key or by the order you picked the posts in.
- **Custom Query** queries posts you configure. Choose one or more post types, the number of items, and the ordering, then narrow the results as far as you need. You can include or exclude specific posts, terms, and authors, match the current post's categories and tags, add an **Offset** to skip the first few results, turn on **Exclude Current Post** so a related posts section never lists the page it is on, and sort by a meta key or by the order you picked the posts in.
- **Main Query** takes the page's own query and needs no configuration at all. On a blog, archive, or search results page, the repeater renders one item per post in that page's loop. On a single page or post it renders one item for that page itself, which is also what you see while editing. Main Query additionally offers the post Author as a connectable property.
- **Terms** lists taxonomy terms, such as your categories or tags, one item per term.
- **Users** lists your site's users, one item per user.
- **Users** lists your site's users, one item per user. Alongside the name, bio, and avatar, the **Profile Field** property shows a field from each user's profile, such as first name or last name.
- **Comments** lists comments, one item per comment.
- **Rows** lists rows you enter yourself in the data source panel, which is a way to keep structured data on the module while still connecting fields to its columns.

Choose **None** to clear the binding and return the repeater to its manual items.

A repeater connected to your content shows nothing when the source has no results, rather than falling back to the sample rows from the Fields view, so an empty category does not render placeholder cards on the live site.

To build a "more from this category" list, open a taxonomy filter on a Custom Query and choose **Match current post's terms** instead of picking terms yourself. The repeater then lists posts that share a category or tag with whichever post is being viewed. Pair it with **Exclude Current Post** so the post does not list itself.

To show a profile field in a Users repeater, connect a field to **Profile Field** and enter the field's key, either `first_name` or `last_name`. Developers can allow other user meta keys with the `fl_ds_user_profile_field_keys` filter.

Main Query is what makes a Custom module work as an archive layout: drop the module into a Beaver Themer archive layout or a blog page and it lists whatever that page is already querying, with no query settings to keep in sync. Data sources are configured on the module itself, not on [component instances](#saving-a-custom-module-as-a-component), and nested repeaters cannot be bound.

:::note
Expand All @@ -95,7 +99,7 @@ A few controls are worth knowing about:

- **Background layers**. A background is a stack of color, gradient, and image layers over a base color. Each layer has its own position, size, repeat, and attachment settings.
- **Your site's colors**. The color picker includes your Beaver Builder saved, global, and theme colors, so a module can use the same colors as the rest of the site and follow them when they change.
- **Styling several elements at once**. Cmd+Click on a Mac, or Ctrl+Click on Windows, adds an element to the selection. Every property you change then applies to all selected elements.
- **Styling several elements at once**. Shift+Click adds an element to the selection. Every property you change then applies to all selected elements.

The same Design tab is available on native rows, columns, and modules in Beaver Builder 2.12. See [Design tab](/beaver-builder/layouts/design) for the full reference of its controls.

Expand Down
14 changes: 11 additions & 3 deletions bb-ai/build/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ An MCP connection lets an assistant outside WordPress, such as Claude, work on y

### How it works

The outside assistant can browse your media library through the site's WordPress media tools, so it can find and place pictures you have already uploaded. It cannot generate images, and it has no access to the stock photo libraries the chat uses.
The outside assistant can browse your media library through the site's WordPress media tools, so it can find and place pictures you have already uploaded. With a Google Gemini API key connected, it can also generate new images. It has no access to the stock photo libraries the chat uses.

For a picture that is not on your site yet, it takes the web address of the image, saves that picture into your WordPress media library, and then places it on the page. Everything it adds this way becomes a normal media library item that you can reuse, rename, or delete later.

Expand All @@ -123,9 +123,17 @@ Give the assistant the address of the image along with where you want it.

The assistant downloads it, saves it to your media library, and puts it on the page. To use a picture from your own computer, upload it to the WordPress media library first, then give the assistant its address.

### Generating an image

Once a [Gemini key is connected](#setting-it-up), you can ask the assistant for a new picture instead of supplying one.

> Generate a wide hero image of a sunlit bakery counter for my home page.

The assistant describes the picture to Gemini, saves the result to your media library, and places it on the page. Generation runs through Gemini whichever assistant you use, each image is billed to your Google account, and your WordPress account needs permission to upload files.

### What to expect

A few rules apply to images added this way.
A few rules apply to images added by address.

- Only ordinary web addresses beginning with `http` or `https` work.
- SVG files are refused, and so are addresses on private or internal networks.
Expand All @@ -134,7 +142,7 @@ A few rules apply to images added this way.
- A broken or made-up image address in a page the assistant builds is replaced with a real stock photo, the same as in pages built by the chat, so you never get an empty image box.

:::note
The Unsplash connection and image generation are used by the chat only. An outside assistant can place pictures from your media library or from addresses it already knows, but it cannot search Unsplash or generate new images.
The Unsplash connection is used by the chat only. An outside assistant can place pictures from your media library or from addresses it already knows, and can generate new ones with a Gemini key connected, but it cannot search Unsplash.
:::

## Describing your images for screen readers
Expand Down
42 changes: 37 additions & 5 deletions bb-ai/configuration/mcp-connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,29 @@ To set up a connection, go to **Settings > Beaver Builder AI** in the WordPress

Both methods check the same three things, and the tab shows a warning with a fix for anything that needs attention:

- The [MCP Adapter plugin](https://github.com/WordPress/mcp-adapter/releases) installed and active. Installing without activating is a common miss.
- The [MCP Adapter plugin](https://github.com/WordPress/mcp-adapter/releases) installed and active. Installing without activating is a common miss. See [When another plugin includes the MCP Adapter](#when-another-plugin-includes-the-mcp-adapter) if a different plugin on your site ships its own copy.
- Permalinks set to a structure that does not include `index.php`, such as Post name. Other structures break the REST URL that agents use to reach your site.
- WordPress 6.9 or later, which the MCP Adapter requires.

Site Requirements also checks that your site can reach the Beaver Builder AI service and the license server, and that the Beaver Builder AI service can reach your site. A host firewall that blocks either direction shows up here before you try to authorize.
Site Requirements also checks that your site can reach the Beaver Builder AI service and the license server, and that your site's own connection endpoint answers over its public REST URL. A host firewall that blocks either direction shows up here before you try to authorize.

The endpoint check also catches a plugin that blocks the REST API for visitors who are not logged in, which security, membership, and coming soon plugins often do. The check cannot tell which plugin is responsible, so it quotes the error message that plugin returned. Use that message to identify the plugin, then allow REST API access in its settings.

When all checks pass, the tab collapses them into a single confirmation with a **Show details** link.

:::note
The MCP Adapter requirement is reported on the MCP Connection tab only. Earlier releases showed an "MCP Adapter plugin required" notice on every admin screen; that notice has been removed.
:::

#### When another plugin includes the MCP Adapter

Some plugins include their own copy of the MCP Adapter and only start it when their own MCP feature is turned on. A copy that is present but not started does not give your site an MCP endpoint, so the MCP Adapter check stays unmet until one is running. Earlier releases reported the adapter as running in this case.

When this happens, the check names the plugin that includes the adapter and gives you two ways to fix it:

- Turn on the MCP feature in that plugin.
- Install and activate the standalone MCP Adapter plugin.

### Connect via Beaver Builder AI

This is the quickest method for live sites with a public HTTPS URL. Your site is authorized through Beaver Builder AI's cloud service, with no terminal or manual configuration required.
Expand Down Expand Up @@ -124,11 +135,12 @@ Copy it from your own settings page, since it contains details specific to your
After cloud authorization, add the MCP endpoint URL wherever your agent accepts MCP servers:

- **Claude Desktop and claude.ai**: go to **Settings > Connectors > Add custom connector** and paste the endpoint URL.
- **ChatGPT**: on chatgpt.com, go to **Plugins > Add > Add custom MCP server**, choose **Create as a plugin**, paste the endpoint URL, and sign in when ChatGPT asks. Use the web version. The Mac app's **Add MCP server** option makes a local entry that normal chat does not use. The same steps are on the MCP Connection tab under **Setting up in ChatGPT**.
- **Claude Code**: run `claude mcp add` with the endpoint URL, or add it to your MCP configuration file.
- **Cursor**: open **Settings > MCP** and add a new server with the endpoint URL.
- **Windsurf**: open the MCP configuration panel and add the endpoint URL as a new server.

Different AI applications name MCP connections differently. Some call them servers, others call them connectors or apps, as ChatGPT does. If your agent is not listed above, look for an MCP or server configuration section in its settings and add the endpoint URL there.
Different AI applications name MCP connections differently. Some call them servers, and others call them connectors, apps, or plugins. If your agent is not listed above, look for an MCP or server configuration section in its settings and add the endpoint URL there.

Each connected site announces itself to the agent under its own site title, so when you connect more than one site the agent can tell them apart and keeps its work pointed at the right one.

Expand Down Expand Up @@ -198,6 +210,17 @@ Tools for creating and managing design systems, the shared colors, typography, a
| Update Design System Assets | Updates shared CSS, JS, and fonts on a design system (affects all pages). |
| Assign Design System | Attaches an existing design system to an existing page. |

### Global Styles

Tools for reading and changing [Beaver Builder Global Styles](/beaver-builder/user-interface/global-styles), the site-wide defaults for text, headings, links, buttons, and the global color palette.

| Tool | Description |
| --- | --- |
| Get Global Styles | Returns the site's Global Styles settings and global color palette. |
| Update Global Styles | Updates Global Styles settings and the global color palette (affects all pages). |

These tools change Global Styles only. They do not change a design system or the settings of individual modules, either of which can take precedence on the pages it applies to. See [Design system vs Global Styles](../design-foundations/design-systems.md#design-system-vs-global-styles) for how the two relate. A Global Styles field that is set by a field connection cannot be changed through these tools, and they are unavailable on Beaver Builder Lite, which has no Global Styles.

### Specs

Format specifications the agent reads before building, so its output matches what Beaver Builder expects.
Expand Down Expand Up @@ -244,13 +267,16 @@ Tools for working with the individual rows, columns, and modules inside a layout

### Media

One tool for getting images into your site. It is available to agents but is not shown in the tab's tool list.
Tools for getting images into your site. They are available to agents but are not shown in the tab's tool list.

| Tool | Description |
| --- | --- |
| Sideload Image | Sideloads a remote image URL into the media library. |
| Generate Image | Generates an image with Nano Banana and saves it to the media library. |

Generate Image creates a new image from a description. It needs a [Google Gemini API key](settings.md#google-gemini-api-key) and the `upload_files` capability, and each image is billed to your Google account.

An agent cannot browse or search your media library, so it supplies an image by URL and this tool downloads it. Only `http` and `https` URLs are accepted, private and internal hosts are blocked, and SVG files are refused. Repeat calls with the same URL reuse the existing attachment instead of creating a duplicate. The connected user needs the `upload_files` capability.
Sideload Image is for images that are not on your site yet: the agent supplies an image by URL and the tool downloads it into the media library. For images that are already uploaded, the agent can list, search, and place them with the media library tools under [WordPress site](#wordpress-site). Only `http` and `https` URLs are accepted, private and internal hosts are blocked, and SVG files are refused. Repeat calls with the same URL reuse the existing attachment instead of creating a duplicate. The connected user needs the `upload_files` capability.

### Themer

Expand Down Expand Up @@ -285,3 +311,9 @@ Turning them on takes a constant in `wp-config.php`, and once on they are availa
:::warning
Code run through these tools executes on your live site with administrator permissions. Keep them off on production sites unless you need them, and review what the agent proposes to run before it runs it.
:::

#### Logging

Every call to the PHP and WP-CLI tools is logged, including calls that are refused or fail. Each entry records the time, the WordPress user, which tool was called, and the outcome. The code or command itself is not stored, only a hash of it.

The log is saved in your site's database as the `fl_ds_site_abilities_code_log` option and keeps the 200 most recent entries. There is no screen for it in the WordPress admin. Treat it as a record of activity rather than a tamper-proof audit trail, since code run through these tools has the access needed to change or delete it.
Loading
Loading