claude-plugin-wordpress-manager 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +7 -3
- package/CHANGELOG.md +19 -0
- package/README.md +10 -3
- package/docs/GUIDE.md +68 -15
- package/docs/plans/2026-02-27-local-dev-tools-assessment.md +332 -0
- package/docs/plans/2026-02-27-local-env-design.md +179 -0
- package/package.json +7 -3
- package/skills/wordpress-router/SKILL.md +25 -5
- package/skills/wordpress-router/references/decision-tree.md +48 -2
- package/skills/wp-deploy/SKILL.md +12 -0
- package/skills/wp-local-env/SKILL.md +233 -0
- package/skills/wp-local-env/references/localwp-adapter.md +156 -0
- package/skills/wp-local-env/references/mcp-adapter-setup.md +153 -0
- package/skills/wp-local-env/references/studio-adapter.md +127 -0
- package/skills/wp-local-env/references/wpenv-adapter.md +121 -0
- package/skills/wp-local-env/scripts/detect_local_env.mjs +404 -0
- package/skills/wp-playground/SKILL.md +13 -1
- package/skills/wp-wpcli-and-ops/SKILL.md +6 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wordpress-manager",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Unified WordPress management plugin for Claude Code. Orchestrates Hostinger MCP (infrastructure), WP REST API bridge (content), and WordPress.com MCP (hosted sites) with specialized agents, skills, and security hooks for multi-site WordPress operations.",
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"description": "Unified WordPress management plugin for Claude Code. Orchestrates Hostinger MCP (infrastructure), WP REST API bridge (content), and WordPress.com MCP (hosted sites) with specialized agents, skills, and security hooks for multi-site WordPress operations. Includes local dev environment support for WordPress Studio, LocalWP, and wp-env.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "vinmor",
|
|
7
7
|
"email": "morreale.v@gmail.com"
|
|
@@ -13,7 +13,11 @@
|
|
|
13
13
|
"mcp",
|
|
14
14
|
"deployment",
|
|
15
15
|
"cms",
|
|
16
|
-
"multi-site"
|
|
16
|
+
"multi-site",
|
|
17
|
+
"local-development",
|
|
18
|
+
"wordpress-studio",
|
|
19
|
+
"localwp",
|
|
20
|
+
"wp-env"
|
|
17
21
|
],
|
|
18
22
|
"mcpServers": "./.mcp.json"
|
|
19
23
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the WordPress Manager plugin for Claude Code.
|
|
4
4
|
|
|
5
|
+
## [1.5.0] - 2026-02-27
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- **`wp-local-env` skill** — Unified local WordPress development environment management
|
|
9
|
+
- Cross-platform detection script (`detect_local_env.mjs`) for Studio, LocalWP, wp-env
|
|
10
|
+
- 4 reference files: `studio-adapter.md`, `localwp-adapter.md`, `wpenv-adapter.md`, `mcp-adapter-setup.md`
|
|
11
|
+
- 8 procedure sections: detection, lifecycle, WP-CLI, symlink dev workflow, REST API, database ops, version switching, preview/share
|
|
12
|
+
- MCP Adapter integration guide (STDIO + HTTP transports)
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- **Router upgraded to v3** — three-category routing (development + local environment + operations)
|
|
16
|
+
- `decision-tree.md` upgraded from v2 to v3 with Step 2c for local environment routing
|
|
17
|
+
- Added local environment keywords and overlap resolution with dev/ops
|
|
18
|
+
- Added local environment guardrails
|
|
19
|
+
- **`wp-wpcli-and-ops`** — Added local environment WP-CLI invocation methods (Studio/LocalWP/wp-env)
|
|
20
|
+
- **`wp-deploy`** — Added "Deploying from Local Environment" section with export instructions
|
|
21
|
+
- **`wp-playground`** — Added comparison table with `wp-local-env` and escalation paths
|
|
22
|
+
- Version bumps: plugin.json + package.json → 1.5.0
|
|
23
|
+
|
|
5
24
|
## [1.4.0] - 2026-02-27
|
|
6
25
|
|
|
7
26
|
### Added
|
package/README.md
CHANGED
|
@@ -6,11 +6,11 @@ Unified WordPress management **and** development plugin that orchestrates multip
|
|
|
6
6
|
|
|
7
7
|
```
|
|
8
8
|
wordpress-manager/
|
|
9
|
-
├── .claude-plugin/plugin.json # Plugin manifest (v1.
|
|
9
|
+
├── .claude-plugin/plugin.json # Plugin manifest (v1.5.0)
|
|
10
10
|
├── .mcp.json # MCP server definitions
|
|
11
11
|
├── agents/ # 5 specialized agents
|
|
12
12
|
├── commands/ # 5 slash commands
|
|
13
|
-
├── skills/ #
|
|
13
|
+
├── skills/ # 19 skills (5 operational + 13 development + 1 local env)
|
|
14
14
|
├── hooks/hooks.json # 6 safety hooks (PreToolUse)
|
|
15
15
|
└── servers/wp-rest-bridge/ # Custom MCP server (TypeScript)
|
|
16
16
|
```
|
|
@@ -66,13 +66,19 @@ wordpress-manager/
|
|
|
66
66
|
| `wp-migrate` | "migrate my site", "move to Hostinger", "transfer" | hostinger-migration.md, cross-platform.md |
|
|
67
67
|
| `wp-backup` | "backup my site", "create backup", "restore" | backup-strategies.md, restore-procedures.md |
|
|
68
68
|
|
|
69
|
+
### Local Environment Skill (1) — managing local WordPress dev environments
|
|
70
|
+
|
|
71
|
+
| Skill | Purpose | Key References |
|
|
72
|
+
|-------|---------|----------------|
|
|
73
|
+
| `wp-local-env` | Unified local env management: Studio, LocalWP, wp-env detection, lifecycle, WP-CLI, symlinks, DB ops | studio-adapter.md, localwp-adapter.md, wpenv-adapter.md, mcp-adapter-setup.md |
|
|
74
|
+
|
|
69
75
|
### Development Skills (13) — building WordPress projects
|
|
70
76
|
|
|
71
77
|
Integrated from [WordPress/agent-skills](https://github.com/WordPress/agent-skills) (GPL-2.0-or-later).
|
|
72
78
|
|
|
73
79
|
| Skill | Purpose | Key References |
|
|
74
80
|
|-------|---------|----------------|
|
|
75
|
-
| `wordpress-router` | Unified router: classifies tasks (dev vs ops) and routes to correct skill/agent | decision-tree.md |
|
|
81
|
+
| `wordpress-router` | Unified router v3: classifies tasks (dev vs local env vs ops) and routes to correct skill/agent | decision-tree.md |
|
|
76
82
|
| `wp-project-triage` | Auto-detects project type (plugin, theme, block theme, core) | detect_wp_project.mjs, triage.schema.json |
|
|
77
83
|
| `wp-block-development` | Gutenberg block creation: block.json, attributes, save, edit | 10 references, list_blocks.mjs |
|
|
78
84
|
| `wp-block-themes` | Block theme development: theme.json, templates, patterns | 6 references, detect_block_themes.mjs |
|
|
@@ -206,6 +212,7 @@ npx tsc # Compile TypeScript to build/
|
|
|
206
212
|
| 1.2.0 | Phase 3 | +3 commands (audit, backup, setup), +2 skills (migrate, backup) |
|
|
207
213
|
| 1.3.0 | Phase 4 | E2E testing, utility scripts, command hooks, WordPress.com dual-mode support |
|
|
208
214
|
| 1.4.0 | Phase 5 | +13 development skills from WordPress/agent-skills community repo (blocks, themes, plugins, REST API, Interactivity API, Abilities API, WP-CLI, PHPStan, Performance, Playground, WPDS, Router, Triage) |
|
|
215
|
+
| 1.5.0 | Phase 6 | +1 local environment skill (`wp-local-env`): WordPress Studio, LocalWP, wp-env detection, unified management, router v3 |
|
|
209
216
|
|
|
210
217
|
## License
|
|
211
218
|
|
package/docs/GUIDE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# WordPress Manager - Guida Completa per Utenti e Amministratori
|
|
2
2
|
|
|
3
|
-
**Versione:** 1.
|
|
3
|
+
**Versione:** 1.5.0
|
|
4
4
|
**Ultimo aggiornamento:** 2026-02-27
|
|
5
5
|
**Repository:** https://github.com/morrealev/wordpress-manager
|
|
6
6
|
|
|
@@ -16,13 +16,14 @@
|
|
|
16
16
|
6. [Agenti Specializzati](#6-agenti-specializzati)
|
|
17
17
|
7. [Skills Operative - Gestione Siti Live](#7-skills-operative---gestione-siti-live)
|
|
18
18
|
8. [Skills di Sviluppo - Costruire Progetti WordPress](#8-skills-di-sviluppo---costruire-progetti-wordpress)
|
|
19
|
-
9. [
|
|
20
|
-
10. [
|
|
21
|
-
11. [
|
|
22
|
-
12. [
|
|
23
|
-
13. [
|
|
24
|
-
14. [
|
|
25
|
-
15. [
|
|
19
|
+
9. [Ambienti di Sviluppo Locali](#9-ambienti-di-sviluppo-locali)
|
|
20
|
+
10. [Hook di Sicurezza](#10-hook-di-sicurezza)
|
|
21
|
+
11. [MCP Server - Architettura Tecnica](#11-mcp-server---architettura-tecnica)
|
|
22
|
+
12. [Gestione Multi-Sito](#12-gestione-multi-sito)
|
|
23
|
+
13. [Scenari d'Uso Comuni](#13-scenari-duso-comuni)
|
|
24
|
+
14. [Amministrazione Avanzata](#14-amministrazione-avanzata)
|
|
25
|
+
15. [Troubleshooting](#15-troubleshooting)
|
|
26
|
+
16. [Glossario](#16-glossario)
|
|
26
27
|
|
|
27
28
|
---
|
|
28
29
|
|
|
@@ -696,7 +697,59 @@ Senza il server MCP, la skill usa conoscenza generale di `@wordpress/components`
|
|
|
696
697
|
|
|
697
698
|
---
|
|
698
699
|
|
|
699
|
-
## 9.
|
|
700
|
+
## 9. Ambienti di Sviluppo Locali
|
|
701
|
+
|
|
702
|
+
La skill `wp-local-env` fornisce gestione unificata degli ambienti di sviluppo WordPress locali.
|
|
703
|
+
|
|
704
|
+
### Strumenti Supportati
|
|
705
|
+
|
|
706
|
+
| Strumento | Tipo | Database | CLI | Quando Usarlo |
|
|
707
|
+
|-----------|------|----------|-----|---------------|
|
|
708
|
+
| **WordPress Studio** | WASM (Electron) | SQLite | `studio` CLI | Setup rapido, sviluppo leggero |
|
|
709
|
+
| **LocalWP** | Nativo (Electron) | MySQL | GUI only + WP-CLI bundled | Parita con produzione, multisite |
|
|
710
|
+
| **wp-env** | Docker | MySQL | `npx wp-env` | CI/CD, contribuzione WordPress core |
|
|
711
|
+
|
|
712
|
+
### Rilevamento Automatico
|
|
713
|
+
|
|
714
|
+
```
|
|
715
|
+
"Rileva i miei ambienti WordPress locali"
|
|
716
|
+
```
|
|
717
|
+
|
|
718
|
+
Il plugin esegue `detect_local_env.mjs` che:
|
|
719
|
+
1. Cerca WordPress Studio (`studio` CLI + `~/Studio/`)
|
|
720
|
+
2. Cerca LocalWP (`sites.json` + WP-CLI bundled)
|
|
721
|
+
3. Cerca wp-env (`.wp-env.json` + Docker)
|
|
722
|
+
4. Raccomanda lo strumento migliore per automazione
|
|
723
|
+
|
|
724
|
+
### Operazioni Comuni
|
|
725
|
+
|
|
726
|
+
```
|
|
727
|
+
"Crea un sito locale con WordPress Studio"
|
|
728
|
+
→ studio site create --path ~/Studio/mio-sito
|
|
729
|
+
|
|
730
|
+
"Elenca i plugin del mio sito LocalWP"
|
|
731
|
+
→ <wp-cli-bin> --path="~/Local Sites/mio-sito/app/public" plugin list
|
|
732
|
+
|
|
733
|
+
"Avvia wp-env con il mio plugin"
|
|
734
|
+
→ npx wp-env start
|
|
735
|
+
|
|
736
|
+
"Collega il mio plugin al sito locale (symlink)"
|
|
737
|
+
→ ln -s /path/to/plugin ~/Studio/mio-sito/wp-content/plugins/plugin
|
|
738
|
+
|
|
739
|
+
"Esporta il database locale per il deploy"
|
|
740
|
+
→ studio wp db export backup.sql --path=<sito>
|
|
741
|
+
```
|
|
742
|
+
|
|
743
|
+
### Reference Files
|
|
744
|
+
|
|
745
|
+
- `studio-adapter.md` — CLI Studio, percorsi, SQLite, limitazioni
|
|
746
|
+
- `localwp-adapter.md` — sites.json, binari bundled, MySQL, log
|
|
747
|
+
- `wpenv-adapter.md` — Docker, .wp-env.json, comandi
|
|
748
|
+
- `mcp-adapter-setup.md` — Configurazione MCP Adapter (STDIO + HTTP)
|
|
749
|
+
|
|
750
|
+
---
|
|
751
|
+
|
|
752
|
+
## 10. Hook di Sicurezza
|
|
700
753
|
|
|
701
754
|
Gli hook sono guardiani automatici che intercettano operazioni pericolose prima che vengano eseguite. Funzionano senza bisogno di attivarli manualmente.
|
|
702
755
|
|
|
@@ -738,7 +791,7 @@ Se approvato -> Esecuzione hosting_importWordpressWebsite
|
|
|
738
791
|
|
|
739
792
|
---
|
|
740
793
|
|
|
741
|
-
##
|
|
794
|
+
## 11. MCP Server - Architettura Tecnica
|
|
742
795
|
|
|
743
796
|
### Cos'e MCP
|
|
744
797
|
|
|
@@ -795,7 +848,7 @@ MCP (Model Context Protocol) e il protocollo che permette a Claude di comunicare
|
|
|
795
848
|
|
|
796
849
|
---
|
|
797
850
|
|
|
798
|
-
##
|
|
851
|
+
## 12. Gestione Multi-Sito
|
|
799
852
|
|
|
800
853
|
### Configurazione
|
|
801
854
|
|
|
@@ -841,7 +894,7 @@ Il wp-site-manager agent determina automaticamente quale set di tool usare:
|
|
|
841
894
|
|
|
842
895
|
---
|
|
843
896
|
|
|
844
|
-
##
|
|
897
|
+
## 13. Scenari d'Uso Comuni
|
|
845
898
|
|
|
846
899
|
### Scenario 1: Check-up Mattutino del Sito
|
|
847
900
|
|
|
@@ -944,7 +997,7 @@ Claude (attiva wp-phpstan + wp-performance):
|
|
|
944
997
|
|
|
945
998
|
---
|
|
946
999
|
|
|
947
|
-
##
|
|
1000
|
+
## 14. Amministrazione Avanzata
|
|
948
1001
|
|
|
949
1002
|
### 13.1 Personalizzare gli Hook
|
|
950
1003
|
|
|
@@ -1046,7 +1099,7 @@ wp-config.php: 440 (r--r-----)
|
|
|
1046
1099
|
|
|
1047
1100
|
---
|
|
1048
1101
|
|
|
1049
|
-
##
|
|
1102
|
+
## 15. Troubleshooting
|
|
1050
1103
|
|
|
1051
1104
|
### Problemi di Connessione
|
|
1052
1105
|
|
|
@@ -1155,7 +1208,7 @@ bash ~/.claude/plugins/local/wordpress-manager/scripts/validate-wp-operation.sh
|
|
|
1155
1208
|
|
|
1156
1209
|
---
|
|
1157
1210
|
|
|
1158
|
-
##
|
|
1211
|
+
## 16. Glossario
|
|
1159
1212
|
|
|
1160
1213
|
| Termine | Definizione |
|
|
1161
1214
|
|---------|------------|
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
# Assessment: Integrazione WordPress Studio + LocalWP
|
|
2
|
+
|
|
3
|
+
**Data**: 2026-02-27
|
|
4
|
+
**Versione plugin**: 1.4.0
|
|
5
|
+
**Stato**: Approccio A approvato — design doc in `2026-02-27-local-env-design.md`
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 1. Contesto
|
|
10
|
+
|
|
11
|
+
Il plugin wordpress-manager v1.4.0 copre sviluppo (13 skill) e operazioni (5 skill + 5 agent + 2 MCP server) su siti WordPress remoti e sandbox effimeri (Playground). Manca un layer per **ambienti locali persistenti** — il gap critico tra "scrivo codice" e "lo testo/deploy".
|
|
12
|
+
|
|
13
|
+
WordPress Studio (by Automattic) e LocalWP (by WP Engine) sono i due strumenti principali per sviluppo WordPress locale. Questo assessment analizza le superfici di integrazione, i workflow tipici, e propone tre approcci architetturali.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 2. Gap Analysis — Plugin attuale
|
|
18
|
+
|
|
19
|
+
### Cosa il plugin GIA copre
|
|
20
|
+
|
|
21
|
+
| Area | Copertura |
|
|
22
|
+
|------|-----------|
|
|
23
|
+
| Sviluppo codice WP | 13 skill (blocchi, temi, plugin, REST, PHPStan, Interactivity API...) |
|
|
24
|
+
| Operazioni siti remoti | 5 skill + 5 agent + 2 MCP server (Hostinger + WP REST Bridge) |
|
|
25
|
+
| Sandbox effimeri | `wp-playground` (WASM, @wp-playground/cli) |
|
|
26
|
+
| Routing intelligente | `wordpress-router` + decision tree v2 |
|
|
27
|
+
|
|
28
|
+
### Gap identificati
|
|
29
|
+
|
|
30
|
+
| Gap | Dettaglio |
|
|
31
|
+
|-----|-----------|
|
|
32
|
+
| **Ambiente locale persistente** | Nessuna skill gestisce siti locali permanenti (non effimeri come Playground) |
|
|
33
|
+
| **Discovery siti locali** | Non esiste detection di Studio (`~/Studio/`, CLI `studio`) o LocalWP (`~/Local Sites/`, `sites.json`) |
|
|
34
|
+
| **WP-CLI locale** | La skill `wp-wpcli-and-ops` assume WP-CLI disponibile ma non sa come invocarlo via `studio wp` o i binari bundled di LocalWP |
|
|
35
|
+
| **Ciclo dev completo** | Manca: scaffold progetto -> sviluppo locale -> test -> deploy (il deploy c'e, ma parte dal codice, non dall'ambiente locale) |
|
|
36
|
+
| **MCP Adapter** | WordPress 6.9 ha il plugin MCP Adapter (STDIO + HTTP) — non integrato |
|
|
37
|
+
| **Studio MCP Server** | Automattic pubblica un MCP server per Studio — non integrato |
|
|
38
|
+
| **Database locale** | Nessun supporto per SQLite (Studio) o MySQL socket (LocalWP) |
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## 3. WordPress Studio — Superficie di integrazione
|
|
43
|
+
|
|
44
|
+
### Architettura interna
|
|
45
|
+
|
|
46
|
+
- **Runtime**: Electron + WASM (PHP compilato in WebAssembly)
|
|
47
|
+
- **Database**: SQLite (file: `wp-content/database/.ht.sqlite`)
|
|
48
|
+
- **Web server**: Nessuno (WASM serve direttamente)
|
|
49
|
+
- **Porte**: Da 8881 in su (sequenziali)
|
|
50
|
+
- **Storage siti**: `~/Studio/<nome-sito>/`
|
|
51
|
+
- **Config app**: `~/.config/WordPressStudio/` (Linux)
|
|
52
|
+
|
|
53
|
+
### Punti di integrazione
|
|
54
|
+
|
|
55
|
+
| Punto | Metodo | Automazione possibile |
|
|
56
|
+
|-------|--------|----------------------|
|
|
57
|
+
| **Studio CLI** | `studio site create/start/stop/list/delete` | Ciclo di vita siti completo |
|
|
58
|
+
| **WP-CLI via Studio** | `studio wp <comando> --path=<sito>` | Tutto WP-CLI, senza installare WP-CLI |
|
|
59
|
+
| **REST API** | `http://localhost:888x/wp-json/` | CRUD contenuti, plugin, temi |
|
|
60
|
+
| **SQLite diretto** | `sqlite3 wp-content/database/.ht.sqlite` | Query raw, bulk ops |
|
|
61
|
+
| **Filesystem** | `~/Studio/<sito>/wp-content/` | Sviluppo tema/plugin, symlink |
|
|
62
|
+
| **Studio MCP Server** | `wordpress-agent-skills/studio-mcp/` (Node.js) | AI agent site management |
|
|
63
|
+
| **MCP Adapter plugin** | `studio wp mcp-adapter serve` (STDIO) | WordPress 6.9+ come MCP server |
|
|
64
|
+
| **Preview API** | `studio preview create/update/delete` | Deploy temporaneo su WordPress.com |
|
|
65
|
+
|
|
66
|
+
### Punti di forza
|
|
67
|
+
|
|
68
|
+
- CLI v2 eccellente, completamente scriptabile
|
|
69
|
+
- MCP ecosystem maturo (Studio MCP + MCP Adapter + WordPress.com MCP)
|
|
70
|
+
- Setup in secondi, risorse minime
|
|
71
|
+
- Integrazione nativa con WordPress.com per preview/deploy
|
|
72
|
+
- Symlink workflow per multi-site testing
|
|
73
|
+
|
|
74
|
+
### Limitazioni
|
|
75
|
+
|
|
76
|
+
- No multisite
|
|
77
|
+
- No Xdebug nativo
|
|
78
|
+
- SQLite incompatibile con alcuni plugin complessi (WooCommerce)
|
|
79
|
+
- No estensioni PHP native (solo quelle compilate in WASM)
|
|
80
|
+
- Linux: richiede build da source
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## 4. LocalWP — Superficie di integrazione
|
|
85
|
+
|
|
86
|
+
### Architettura interna
|
|
87
|
+
|
|
88
|
+
- **Runtime**: Electron + Lightning Stack (processi nativi OS)
|
|
89
|
+
- **Web server**: NGINX o Apache (selezionabile per sito)
|
|
90
|
+
- **PHP**: PHP-FPM nativo (versioni multiple bundled: 7.4 - 8.3)
|
|
91
|
+
- **Database**: MySQL/MariaDB nativo (credenziali default: root/root, db: local)
|
|
92
|
+
- **Porte**: Da 10000+ (incrementali: HTTP, HTTPS, MySQL)
|
|
93
|
+
- **Storage siti**: `~/Local Sites/<nome-sito>/app/public/`
|
|
94
|
+
- **Config siti**: `~/.config/Local/sites.json` (Linux)
|
|
95
|
+
- **Binari**: `~/.config/Local/lightning-services/{php,mysql,nginx,wp-cli}-*/`
|
|
96
|
+
|
|
97
|
+
### Punti di integrazione
|
|
98
|
+
|
|
99
|
+
| Punto | Metodo | Automazione possibile |
|
|
100
|
+
|-------|--------|----------------------|
|
|
101
|
+
| **Site Discovery** | Parse `~/.config/Local/sites.json` | Scoperta automatica siti, porte, versioni |
|
|
102
|
+
| **WP-CLI** | Binario bundled `wp-cli-*/bin/wp --path=` | Tutto WP-CLI (richiede MySQL attivo) |
|
|
103
|
+
| **REST API** | `http://<nome>.local/wp-json/` o `http://127.0.0.1:<porta>/wp-json/` | CRUD completo |
|
|
104
|
+
| **MySQL diretto** | Socket `~/.config/Local/run/<id>/mysql/mysqld.sock` o TCP | Query, export, import |
|
|
105
|
+
| **Filesystem** | `~/Local Sites/<nome>/app/public/wp-content/` | Sviluppo tema/plugin, symlink |
|
|
106
|
+
| **Logs** | `~/Local Sites/<nome>/logs/{nginx,php,mysql}/` | Debug, monitoring |
|
|
107
|
+
| **Blueprints** | `~/.config/Local/blueprints/` | Template siti riutilizzabili |
|
|
108
|
+
| **MCP Adapter** | `wp mcp-adapter serve --path=<root>` (STDIO) | WordPress 6.9+ come MCP server |
|
|
109
|
+
| **Live Links** | GUI only (ngrok-like) | Non automabile direttamente |
|
|
110
|
+
|
|
111
|
+
### Punti di forza
|
|
112
|
+
|
|
113
|
+
- Production parity completa (MySQL, PHP nativo, NGINX/Apache)
|
|
114
|
+
- Multisite supportato
|
|
115
|
+
- Xdebug + VS Code (add-on)
|
|
116
|
+
- MailHog per email testing
|
|
117
|
+
- Ecosystem add-on esteso
|
|
118
|
+
- Pacchetti Linux ufficiali (.deb/.rpm)
|
|
119
|
+
|
|
120
|
+
### Limitazioni
|
|
121
|
+
|
|
122
|
+
- **No CLI ufficiale** — solo GUI + "Open Site Shell"
|
|
123
|
+
- Automazione richiede parsing `sites.json` + PATH setup per binari interni
|
|
124
|
+
- Setup piu lento (minuti vs secondi)
|
|
125
|
+
- Risorse pesanti (processi nativi multipli per sito)
|
|
126
|
+
- No MCP server dedicato (solo MCP Adapter generico)
|
|
127
|
+
- Live Links solo da GUI
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## 5. Confronto decisionale
|
|
132
|
+
|
|
133
|
+
| Criterio | WordPress Studio | LocalWP | Vincitore per plugin |
|
|
134
|
+
|----------|-----------------|---------|---------------------|
|
|
135
|
+
| **CLI automation** | Eccellente (`studio` CLI v2) | Assente (solo binari interni) | Studio |
|
|
136
|
+
| **MCP ecosystem** | Studio MCP Server + MCP Adapter | Solo MCP Adapter (generico) | Studio |
|
|
137
|
+
| **Production parity** | Bassa (SQLite, WASM PHP) | Alta (MySQL, PHP nativo, NGINX) | LocalWP |
|
|
138
|
+
| **WooCommerce dev** | Fragile (SQLite compat issues) | Completo | LocalWP |
|
|
139
|
+
| **Multisite** | Non supportato | Supportato | LocalWP |
|
|
140
|
+
| **Xdebug** | Non disponibile | Supportato (add-on) | LocalWP |
|
|
141
|
+
| **Setup speed** | Secondi | Minuti | Studio |
|
|
142
|
+
| **Risorse sistema** | Leggero (~100MB) | Pesante (multi-processo) | Studio |
|
|
143
|
+
| **Email testing** | Non disponibile | MailHog integrato | LocalWP |
|
|
144
|
+
| **Linux support** | Build da source | Pacchetti .deb/.rpm | LocalWP |
|
|
145
|
+
| **Preview/share** | `studio preview` (WordPress.com) | Live Links (GUI) | Studio |
|
|
146
|
+
| **Symbiosi con plugin** | Forte (stesso ecosystem Automattic) | Moderata (parsing richiesto) | Studio |
|
|
147
|
+
|
|
148
|
+
**Sintesi**: Studio vince per automazione e leggerezza. LocalWP vince per fedelta all'ambiente di produzione.
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## 6. Workflow tipici mappati
|
|
153
|
+
|
|
154
|
+
### Comandi concreti per tool
|
|
155
|
+
|
|
156
|
+
| Workflow | WordPress Studio | LocalWP |
|
|
157
|
+
|----------|-----------------|---------|
|
|
158
|
+
| **Crea sito** | `studio site create --path ~/Studio/test` | GUI -> New Site (no CLI) |
|
|
159
|
+
| **Scaffold tema** | `studio wp scaffold theme mytheme` | `wp scaffold theme mytheme --path=~/Local\ Sites/test/app/public` |
|
|
160
|
+
| **Scaffold blocco** | `studio wp scaffold block myblock --plugin=myplugin` | (stesso via wp-cli bundled) |
|
|
161
|
+
| **Installa plugin** | `studio wp plugin install woocommerce --activate` | (stesso via wp-cli bundled) |
|
|
162
|
+
| **Test PHP version** | `studio site set --php-version=8.2` | GUI -> Site Settings -> PHP Version |
|
|
163
|
+
| **Export DB** | `studio wp db export backup.sql` | (stesso via wp-cli bundled) |
|
|
164
|
+
| **Import contenuti** | `studio wp import content.xml --authors=create` | (stesso via wp-cli bundled) |
|
|
165
|
+
| **Preview sharing** | `studio preview create` | Live Links (GUI only) |
|
|
166
|
+
| **Debug PHP** | `studio wp eval 'error_log("test");'` | Xdebug + VS Code (add-on) |
|
|
167
|
+
| **Deploy a produzione** | Locale -> `wp-deploy` skill (esistente) | Locale -> `wp-deploy` skill (esistente) |
|
|
168
|
+
|
|
169
|
+
### Workflow completo: Sviluppo Block Theme
|
|
170
|
+
|
|
171
|
+
```
|
|
172
|
+
1. Crea sito locale studio site create / LocalWP GUI
|
|
173
|
+
2. Scaffold tema wp scaffold theme / npx create-block-theme
|
|
174
|
+
3. Sviluppa in editor VS Code + symlink wp-content/themes/
|
|
175
|
+
4. Testa nel browser localhost:8881 / mysite.local
|
|
176
|
+
5. Test PHP versions studio site set --php / LocalWP settings
|
|
177
|
+
6. PHPStan analisi wp-phpstan skill (esistente)
|
|
178
|
+
7. Preview condivisa studio preview / Live Links
|
|
179
|
+
8. Deploy wp-deploy skill (esistente)
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Workflow completo: Sviluppo Plugin con Gutenberg Block
|
|
183
|
+
|
|
184
|
+
```
|
|
185
|
+
1. Crea sito locale studio site create / LocalWP GUI
|
|
186
|
+
2. Scaffold plugin wp scaffold plugin myplugin
|
|
187
|
+
3. Scaffold blocco npx @wordpress/create-block@latest
|
|
188
|
+
4. Dev con hot reload npm start (wp-scripts)
|
|
189
|
+
5. Unit test npm test / phpunit
|
|
190
|
+
6. PHPStan wp-phpstan skill (esistente)
|
|
191
|
+
7. Build produzione npm run build
|
|
192
|
+
8. Deploy wp-deploy skill (esistente)
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## 7. Tre approcci architetturali
|
|
198
|
+
|
|
199
|
+
### Approccio A: "Local Environment Abstraction Layer"
|
|
200
|
+
|
|
201
|
+
Un layer di astrazione unificato che rileva automaticamente Studio, LocalWP, o wp-env e espone un'interfaccia comune.
|
|
202
|
+
|
|
203
|
+
```
|
|
204
|
+
┌──────────────────────────┐
|
|
205
|
+
│ wordpress-router │
|
|
206
|
+
│ (decision tree v3) │
|
|
207
|
+
└─────────┬────────────────┘
|
|
208
|
+
│
|
|
209
|
+
┌─────────▼────────────────┐
|
|
210
|
+
│ wp-local-env (NUOVA) │
|
|
211
|
+
│ Detection + Abstraction │
|
|
212
|
+
└─────────┬────────────────┘
|
|
213
|
+
┌────────┼────────┐
|
|
214
|
+
┌────▼──┐ ┌──▼───┐ ┌──▼────┐
|
|
215
|
+
│Studio │ │Local │ │wp-env │
|
|
216
|
+
│adapter│ │adapter│ │adapter│
|
|
217
|
+
└───────┘ └──────┘ └───────┘
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
**Nuovi componenti**:
|
|
221
|
+
- 1 skill: `wp-local-env` (detection, lifecycle, unified API)
|
|
222
|
+
- 1 script detection: `detect_local_env.mjs` (trova Studio/LocalWP/wp-env)
|
|
223
|
+
- 3 adapter sections in SKILL.md (Studio CLI, LocalWP sites.json, wp-env)
|
|
224
|
+
- Aggiornamento router decision tree -> v3
|
|
225
|
+
- Opzionale: integrazione Studio MCP Server in `.mcp.json`
|
|
226
|
+
|
|
227
|
+
**Pro**: Massima flessibilita, futuro-proof, un solo workflow per l'utente.
|
|
228
|
+
**Contro**: Complessita di implementazione alta, 3 adapter da documentare.
|
|
229
|
+
|
|
230
|
+
**Effort stimato**: ~v1.5.0 (major feature)
|
|
231
|
+
|
|
232
|
+
### Approccio B: "Studio-First con fallback LocalWP"
|
|
233
|
+
|
|
234
|
+
Focus su Studio (CLI eccellente, MCP server Automattic), con detection passiva di LocalWP.
|
|
235
|
+
|
|
236
|
+
```
|
|
237
|
+
┌─────────────────────┐
|
|
238
|
+
│ wp-local-dev (NUOVA)│
|
|
239
|
+
│ Studio-first │
|
|
240
|
+
└─────────┬───────────┘
|
|
241
|
+
┌────────┼────────┐
|
|
242
|
+
┌────▼──────┐ ┌────▼──────┐
|
|
243
|
+
│Studio CLI │ │LocalWP │
|
|
244
|
+
│(primario) │ │(discovery)│
|
|
245
|
+
└───────────┘ └───────────┘
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
**Nuovi componenti**:
|
|
249
|
+
- 1 skill: `wp-local-dev` (focalizzata su Studio, con sezione LocalWP)
|
|
250
|
+
- 1 script: `detect_local_env.mjs`
|
|
251
|
+
- Integrazione `.mcp.json` con Studio MCP Server (disabled by default)
|
|
252
|
+
- Aggiornamento router v3
|
|
253
|
+
|
|
254
|
+
**Pro**: Piu semplice, Studio ha la migliore superficie CLI per automazione.
|
|
255
|
+
**Contro**: Utenti LocalWP hanno esperienza di seconda classe.
|
|
256
|
+
|
|
257
|
+
**Effort stimato**: ~v1.5.0 (medium feature)
|
|
258
|
+
|
|
259
|
+
### Approccio C: "Workflow Skills" (per tipo di attivita)
|
|
260
|
+
|
|
261
|
+
Skill separate per workflow tipico, ognuna con istruzioni specifiche per ogni tool.
|
|
262
|
+
|
|
263
|
+
```
|
|
264
|
+
┌───────────────┐ ┌──────────────┐ ┌───────────────┐
|
|
265
|
+
│wp-local-theme │ │wp-local-plugin│ │wp-local-test │
|
|
266
|
+
│ development │ │ development │ │ & debug │
|
|
267
|
+
└───────┬───────┘ └──────┬───────┘ └───────┬───────┘
|
|
268
|
+
│ │ │
|
|
269
|
+
Istruzioni per: Istruzioni per: Istruzioni per:
|
|
270
|
+
- Studio - Studio - Studio
|
|
271
|
+
- LocalWP - LocalWP - LocalWP
|
|
272
|
+
- wp-env - wp-env - wp-env
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
**Nuovi componenti**:
|
|
276
|
+
- 3+ skill workflow-based
|
|
277
|
+
- 1 script detection condiviso
|
|
278
|
+
- Nessun adapter layer
|
|
279
|
+
|
|
280
|
+
**Pro**: Ogni skill e self-contained, facile da capire.
|
|
281
|
+
**Contro**: Duplicazione istruzioni, manutenzione difficile.
|
|
282
|
+
|
|
283
|
+
**Effort stimato**: ~v1.5.0 (medium feature, ma manutenzione alta)
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## 8. Integrazione MCP proposta
|
|
288
|
+
|
|
289
|
+
### Opzione 1: Studio MCP Server (Automattic)
|
|
290
|
+
|
|
291
|
+
```json
|
|
292
|
+
{
|
|
293
|
+
"studio-mcp": {
|
|
294
|
+
"command": "node",
|
|
295
|
+
"args": ["<path-to>/wordpress-agent-skills/studio-mcp/dist/index.js"],
|
|
296
|
+
"disabled": true
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
### Opzione 2: MCP Adapter Plugin (WordPress 6.9+, per qualsiasi sito locale)
|
|
302
|
+
|
|
303
|
+
```json
|
|
304
|
+
{
|
|
305
|
+
"wp-local-mcp": {
|
|
306
|
+
"command": "studio",
|
|
307
|
+
"args": ["wp", "mcp-adapter", "serve", "--server=mcp-adapter-default-server", "--user=admin", "--path=<site>"],
|
|
308
|
+
"disabled": true
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
### Opzione 3: wp-rest-bridge esistente puntato a localhost
|
|
314
|
+
|
|
315
|
+
Il `wp-rest-bridge` MCP server gia presente nel plugin puo gia connettersi a siti locali configurando `WP_SITES_CONFIG` con URL `http://localhost:8881` e Application Password locale.
|
|
316
|
+
|
|
317
|
+
---
|
|
318
|
+
|
|
319
|
+
## 9. Raccomandazione
|
|
320
|
+
|
|
321
|
+
**Approccio A** e il piu robusto e futuro-proof.
|
|
322
|
+
**Approccio B** e il miglior compromesso effort/valore — Studio ha la CLI migliore e l'ecosistema MCP piu maturo.
|
|
323
|
+
**Approccio C** e il piu semplice da iniziare ma scala male.
|
|
324
|
+
|
|
325
|
+
La decisione dipende da:
|
|
326
|
+
- Se l'utente usa prevalentemente Studio -> Approccio B
|
|
327
|
+
- Se deve supportare team con tool diversi -> Approccio A
|
|
328
|
+
- Se vuole partire veloce e iterare -> Approccio C
|
|
329
|
+
|
|
330
|
+
---
|
|
331
|
+
|
|
332
|
+
*Assessment generato il 2026-02-27 per wordpress-manager v1.4.0*
|