
digitalnodecom/substrate
API developmentこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
岩盤、ドングリ、セージの開発のためのAI MCP.
概要
WordPress + ベットロック + Acorn + セージ用のMCPサーバー。 ルーツスタックに関するAIアシスタントの深いコンテキストを与えます。 インストールウィザードは、IDE の MCP を構成し、プロジェクトのガイドラインを生成します。 - PHP 8.2 + - WordPress 6.0 + - Acorn 5.0 + インストーラは .mcp.json を自動的に作成します。 手動設定: ブラウザのコンソール.log、console.errorなどをブラウザログツールにキャプチャします。 ミドルウェアを介して自動注入、または手動で追加:
概要(AI 翻訳)
WordPress + ベットロック + Acorn + セージ用のMCPサーバー。 あなたのルートのスタックに関するAIアシスタントの深いコンテキストを与えます。
クイックスタート
インストールウィザードは、IDE の MCP を構成し、プロジェクトのガイドラインを生成します。
要件
- PHP 8.2 以降
- WordPress 6.0 +
- ドングリ 5.0+
使用法
MCP の設定
インストーラは.mcp.jsonを自動的に作成します。 手動設定:
ツール
31 ツール 3 つのカテゴリを渡る:
中心 (10)
| ツール | 概要 |
お問い合わせ
| [ApplicationInfo | PHP、WordPress、Acornバージョン、テーマ情報、プラグイン、パッケージ |
| [BrowserLogs | ブラウザ コンソール ログ による サブストラット |
| [DatabaseConnections | データベース接続の構成 |
| [DatabaseQuery | テーブル接頭辞対応で読み取り専用SQLクエリを実行 |
|【[[T5]】 | ワードプレスコアとカスタムテーブルの検出とデータベーススキーマ |
| [GetConfig | Acorn 設定、WPオプション、エンブ変数、定数から値を設定 |
| [LastError | アプリケーションログからの最終エラー・例外 |
| [[T8] | .envファイルから環境変数名 |
| [ReadLogEntries | デバッグログやドングリログからエントリー |
| [[[T10] | ワードプレス検索、ルート、テイルウィンドのドキュメント |
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP server for WordPress + Bedrock + Acorn + Sage. Gives AI assistants deep context about your Roots stack.
Quick Start
composer require digitalnodecom/substrate --dev
wp acorn package:discover
wp acorn substrate:install
The install wizard configures MCP for your IDE and generates project guidelines.
Requirements
- PHP 8.2+
- WordPress 6.0+
- Acorn 5.0+
Usage
# Start MCP server (usually handled by your IDE)
wp acorn substrate:mcp
# Refresh caches after plugin/theme changes
wp acorn substrate:update
MCP Configuration
The installer creates .mcp.json automatically. Manual setup:
{
"mcpServers": {
"substrate": {
"command": "wp",
"args": ["acorn", "substrate:mcp"]
}
}
}
Tools
31 tools across three categories:
Core (10)
| Tool | Description |
|---|---|
ApplicationInfo |
PHP, WordPress, Acorn versions, theme info, plugins, packages |
BrowserLogs |
Browser console logs captured by Substrate |
DatabaseConnections |
Configured database connections |
DatabaseQuery |
Execute read-only SQL queries with table prefix support |
DatabaseSchema |
Database schema with WordPress core vs custom table detection |
GetConfig |
Config values from Acorn config, WP options, env vars, constants |
LastError |
Last error/exception from application logs |
ListEnvVars |
Environment variable names from .env files |
ReadLogEntries |
Log entries from debug.log or Acorn logs |
SearchDocs |
Search WordPress, Roots, Tailwind documentation |
WordPress (16)
| Tool | Description |
|---|---|
AcfFields |
ACF field groups and fields (requires ACF) |
GetOption |
WordPress options by name or pattern |
ListBlocks |
Registered Gutenberg blocks (core and custom) |
ListCronJobs |
Scheduled WP-Cron jobs with next run times |
ListHooks |
Active action/filter hooks with callbacks |
ListMenus |
Navigation menus and menu locations |
ListPlugins |
Installed plugins (active, inactive, must-use) |
ListPostTypes |
Registered post types with configuration |
ListRestRoutes |
REST API endpoints with methods and arguments |
ListShortcodes |
Registered shortcodes with callback info |
ListTaxonomies |
Registered taxonomies |
ListThemes |
Installed themes with parent/child relationships |
ListTransients |
Database transients with expiration times |
ListUsers |
User roles and capabilities |
ListWidgets |
Widgets and sidebars |
WooCommerceInfo |
Store info, settings, gateways (requires WooCommerce) |
Acorn/Sage (5)
| Tool | Description |
|---|---|
ListAssets |
Assets from Vite manifest |
ListBladeComponents |
Blade components (anonymous and class-based) |
ListServiceProviders |
Acorn service providers |
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"substrate": {
"command": "wp",
"args": ["acorn", "substrate:mcp"]
}
}
}