CB

cristianuibar/bricks-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

125 stars 24 forks 质量 78 趋势 20GPL-2.0

cristianuibar/bricks-mcp 是从 https://github.com/cristianuibar/bricks-mcp. 导入的 MCP 服务器候选

概览

cristianuibar/bricks-mcp 是从 https://github.com/cristianuibar/bricks-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

Bricks Builder 的人工智能助手。通过支持 MCP 的 AI 工具如 Claude,用自然语言控制您的网站。

和你的网站对话。它会倾听。

它的作用

Bricks MCP 是一个 WordPress 插件,实现了 MCP(模型上下文协议)服务器,让 AI 助手能够阅读和写入你的 Bricks Builder 网站。连接 Claude Code、Claude 桌面、光标或任何兼容的 MCP 客户端,并通过自然语言管理页面、模板、全局类、主题样式、WooCommerce 布局等。

特色

  • 11 个涵盖完整 Bricks Builder 数据模型的标准 MCP 工具
  • 读取和写入页面、模板、元素和全局设置
  • WooCommerce 支持(产品页面、购物车、结账、账户模板)
  • 全局类、主题样式、排版比例、色彩调色板、变量
  • 带 Unsplash 集成的媒体库管理
  • WordPress 菜单、字体及自定义代码管理
  • 内置连接测试器和配置片段生成器
  • 支持Claude Code、Claude Desktop、光标及其他兼容MCP客户端

要求

  • WordPress 6.4+
  • PHP 8.2+
  • 砖块建造者 1.6+

安装

无需作曲家。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Bricks MCP Extensions

Extra abilities for the AI layer built into Bricks Builder 2.5+, served through the official MCP Adapter plugin.

Bricks ships about 185 built-in bricks/* abilities for pages, elements, global classes, templates, media and settings. This plugin adds 16 bricks-mcp/* abilities for what Bricks does not cover: SEO, post status, featured images, editor mode, element moves, template resolution, global class categories, Unsplash, Adobe Fonts, font settings and page diagnostics.

The plugin has no MCP server of its own. The MCP Adapter exposes every public ability, ours and Bricks’, on one endpoint, so you connect your AI client once:

https://your-site.com/wp-json/mcp/mcp-adapter-default-server

Requirements

  • WordPress 7.1+
  • PHP 8.2+
  • Bricks Builder 2.5+
  • The MCP Adapter plugin (mcp-adapter)

Install

  1. Install and activate Bricks Builder 2.5+.
  2. Install and activate the MCP Adapter plugin.
  3. Download the ZIP of the newest 2.x release from the GitHub Releases list, then use Plugins > Add New > Upload Plugin and activate it. Do not take the release marked “Latest”: that is the 1.5.x bridge (see Releases).

The plugin folder and slug stay bricks-mcp. New releases appear in the normal WordPress update screen. The updater reads GitHub Releases and verifies the ZIP’s SHA-256 checksum before WordPress installs it.

Connect your AI client

Connect once. The connection reaches the Bricks abilities and these ones.

  1. Open Bricks > Settings > AI.
  2. Check that the abilities API is enabled and the adapter is installed.
  3. Create an Application Password for a user who can use the Bricks builder.
  4. Copy the client config Bricks shows and paste it into your AI client.

Bricks > Bricks MCP Extensions shows the endpoint URL and whether the adapter is connected.

Direct HTTP

Clients that support Streamable HTTP can connect to the endpoint without the npx bridge. Send the Application Password as a Basic auth header:

Authorization: Basic base64(username:application-password)

Claude Code:

claude mcp add --transport http bricks https://your-site.com/wp-json/mcp/mcp-adapter-default-server \
  --header "Authorization: Basic BASE64_OF_USERNAME_COLON_APP_PASSWORD"

Create the Base64 value with printf '%s' 'username:xxxx xxxx xxxx xxxx xxxx xxxx' | base64 -w0. Remove the spaces from the Application Password if your client rejects them.

Application Passwords need HTTPS on production sites. WordPress also allows them when WP_ENVIRONMENT_TYPE is local.

Abilities

Every ability is registered with the WordPress Abilities API and marked public, so the adapter serves it. Names use camelCase inputs such as postId and attachmentId.

Ability What it does Type
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →