VS Code 用 WordPress MCP 拡張機能
このVS Code拡張機能は、WordPressとの統合のためのモデルコンテキストプロトコル(MCP)サーバーを実装します。これにより、VS CodeはWordPress環境を理解しやすくなり、開発がより容易かつ直感的になります。
特徴
WordPress設定検出:現在のディレクトリから親ディレクトリまで検索してwp-config.phpファイルを自動的に見つけます
データベース統合: WordPressデータベースの資格情報を抽出し、WordPressデータベースに接続します
WordPressインストールパス: WordPressのインストールディレクトリを検出します
インテリジェントなコード補完: WordPressの関数とフックのコンテキスト認識コード補完を提供します
ドキュメントホバー: 現在の WordPress バージョンを含む WordPress 機能のドキュメントを表示します
コードアクション: WordPress固有のコードアクションとクイックフィックスを提供します
要件
VS Code 1.74.0 以上
拡張機能がアクセスできるWordPressインストール
Node.js と npm (開発用)
使用法
WordPress インストールを含むフォルダ、または WordPress インストールの子ディレクトリを開きます。
拡張機能は自動的にwp-config.phpファイルを検索します。
WordPress MCP: Connect to WordPressコマンドを使用して、WordPressインストールに明示的に接続します。特定のWordPress環境に基づいたインテリジェントな支援による強化されたWordPressコーディングをお楽しみください
拡張機能の設定
この拡張機能では追加の設定は必要ありません。
既知の問題
PHPのシリアル化解析は簡略化された方法で実装されており、すべてのシリアル化されたデータ形式を処理できるとは限りません。
VS Code がシャットダウンするときにデータベース接続を適切に閉じる必要がある
リリースノート
0.1.0
基本的な WordPress 統合機能を備えた WordPress MCP 拡張機能の初期リリース。
発達
拡張機能の構築
拡張機能のパッケージ化
これにより、VS Code にインストールできる.vsixファイルがプロジェクト ディレクトリに作成されます。
拡張機能のテスト
拡張機能をインストールした後、次のコマンドを使用して拡張機能の機能をテストできます。
WordPress接続のテスト:
> WordPress MCP: Connect to WordPressこのコマンドは、WordPress インストールを検索して接続します。
WordPress の設定を表示:
> WordPress MCP: Show WordPress Configurationこれには、データベースの資格情報とその他の WordPress 構成の詳細が表示されます。
WordPressデータベースのクエリ:
> WordPress MCP: Query Databaseこれにより、WordPress データベースに対して自然言語クエリを実行できるようになります。
チャット経由でMCP統合をテストする:
@wordpress What is the database name in wp-config.php?VS CodeのチャットインターフェースでMCP統合をテストするために使用します。その他の便利なクエリ:
@wordpress データベースのユーザー名は何ですか?
@wordpress アクティブなプラグインを表示
@wordpress どのテーマがアクティブですか?
@wordpress どのようなカスタム投稿タイプが利用できますか?
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
データベース統合、コード補完、ドキュメント化などの WordPress 固有のインテリジェンスで VS Code を強化する、WordPress 用のモデル コンテキスト プロトコル サーバーを実装します。
Related MCP Servers
- Asecurity-licenseAqualityA Model Context Protocol server that helps large language models process code repositories by providing file tree generation, code merging, and code analysis capabilities.Last updated -322MIT License
- -security-license-qualityA standardized foundation for building Model Context Protocol servers that integrate with VS Code, using Python with stdio transport for seamless AI tool integration.Last updated -
WordPress MCPofficial
Asecurity-licenseAqualityA WordPress plugin that implements the Model Context Protocol to enable AI models and applications to interact with WordPress sites in a structured and secure way.Last updated -58594- -security-license-qualityA Model Context Protocol server that enables AI assistants to manage WordPress sites and create content with AI-generated featured images.Last updated -741MIT License