feat: plugin scaffold with dependency check

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
This commit is contained in:
2026-09-25 15:13:57 +02:00
co-authored by Claude Opus 5.5
parent 2eef4f702b
commit 8c4498c207
13 changed files with 3225 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
<?php
/**
* Plugin Name: WP-LIT-MCP
* Description: MCP-Server für WordPress, Divi 5 und Pods – mit OAuth für claude.ai.
* Version: 0.1.0
* Requires at least: 6.9
* Requires PHP: 8.1
* Author: Jan-Niclas Loosen - Loosen-IT
* Author URI: https://loosen-it.de
* License: GPL-2.0-or-later
* Text Domain: wp-lit-mcp
*/
declare(strict_types=1);
defined('ABSPATH') || exit;
$lit_mcp_autoload = __DIR__ . '/vendor/autoload.php';
if (! is_readable($lit_mcp_autoload)) {
add_action('admin_notices', static function (): void {
echo '<div class="notice notice-error"><p>'
. esc_html__(
'WP-LIT-MCP: Abhängigkeiten fehlen. Bitte "composer install --no-dev" im Plugin-Ordner ausführen.',
'wp-lit-mcp'
)
. '</p></div>';
});
return;
}
require_once $lit_mcp_autoload;
add_action('plugins_loaded', static function (): void {
\LIT\MCP\Plugin::boot(__FILE__);
});