Skip to content

Commit 1520991

Browse files
Ninodevoclaude
andcommitted
Rename wpcom:list-site-plugins to jetpack:list-site-plugins
The wpcom prefix was misleading: the command queries the Jetpack plugins endpoint and works for both WPCOM- and Jetpack-connected sites. Rename the command and its class, rename the matching MCP tool, and move it to the Jetpack row of the README tools table. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 2dd426c commit 1520991

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ The MCP server currently exposes 67 tools across all services. The table below s
101101

102102
| Service | Read Tools | Write Tools |
103103
|---------|-----------|-------------|
104-
| **WPCOM** | `wpcom_list_sites`, `wpcom_get_site`, `wpcom_list_site_plugins`, `wpcom_list_site_stickers`, `wpcom_list_sites_with_sticker`, `wpcom_get_site_stats`, `wpcom_list_site_users`, `wpcom_list_deployment_webhooks` | `wpcom_add_sticker`, `wpcom_remove_sticker`, `wpcom_update_site`, `wpcom_rotate_sftp_password`, `wpcom_create_deployment_webhook`, `wpcom_delete_deployment_webhook`, `wpcom_sync_deployment_webhook_secret`, `wpcom_download_site_plugins` |
104+
| **WPCOM** | `wpcom_list_sites`, `wpcom_get_site`, `wpcom_list_site_stickers`, `wpcom_list_sites_with_sticker`, `wpcom_get_site_stats`, `wpcom_list_site_users`, `wpcom_list_deployment_webhooks` | `wpcom_add_sticker`, `wpcom_remove_sticker`, `wpcom_update_site`, `wpcom_rotate_sftp_password`, `wpcom_create_deployment_webhook`, `wpcom_delete_deployment_webhook`, `wpcom_sync_deployment_webhook_secret`, `wpcom_download_site_plugins` |
105105
| **Pressable** | `pressable_list_sites`, `pressable_get_site`, `pressable_get_php_errors`, `pressable_list_collaborators`, `pressable_list_sftp_users`, `pressable_list_site_domains` | `pressable_create_site_note`, `pressable_add_collaborator`, `pressable_remove_collaborator`, `pressable_add_domain`, `pressable_rotate_sftp_password`, `pressable_download_site_plugins` |
106106
| **GitHub** | `github_list_repositories`, `github_get_repository`, `github_list_branches`, `github_list_secrets`, `github_list_workflow_runs` | `github_set_topics`, `github_create_branch`, `github_set_secret`, `github_create_issue` |
107-
| **Jetpack** | `jetpack_list_modules`, `jetpack_list_site_modules` | `jetpack_update_module_settings` |
107+
| **Jetpack** | `jetpack_list_modules`, `jetpack_list_site_modules`, `jetpack_list_site_plugins` | `jetpack_update_module_settings` |
108108
| **DeployHQ** | `deployhq_list_projects`, `deployhq_get_project`, `deployhq_list_project_servers` | `deployhq_rotate_private_key`, `deployhq_connect_repository` |
109109

110110
Write tools are annotated with MCP `ToolAnnotations` (`destructiveHint`, `readOnlyHint`, etc.) so clients prompt for confirmation before executing destructive actions.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
/**
1414
* Outputs a list of plugins installed on a given WPCOM or Jetpack-connected site.
1515
*/
16-
#[AsCommand( name: 'wpcom:list-site-plugins' )]
17-
final class WPCOM_Site_Plugins_List extends Command {
16+
#[AsCommand( name: 'jetpack:list-site-plugins' )]
17+
final class Jetpack_Site_Plugins_List extends Command {
1818
use AutocompleteTrait;
1919

2020
// region FIELDS AND CONSTANTS
@@ -34,8 +34,8 @@ final class WPCOM_Site_Plugins_List extends Command {
3434
* {@inheritDoc}
3535
*/
3636
protected function configure(): void {
37-
$this->setDescription( 'List the plugins installed on a WPCOM site.' )
38-
->setHelp( 'Use this command to list the plugins installed on a WPCOM site.' );
37+
$this->setDescription( 'List the plugins installed on a WPCOM or Jetpack-connected site.' )
38+
->setHelp( 'Use this command to list the plugins installed on a WPCOM or Jetpack-connected site.' );
3939

4040
$this->addArgument( 'site', InputArgument::REQUIRED, 'Domain or WPCOM ID of the site to list the plugins for.' );
4141
}

mcp/Team51McpTools.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,8 @@ public function wpcom_get_atlantis_status(
474474
*
475475
* @param string $site_id_or_domain The domain name or WPCOM site ID.
476476
*/
477-
#[McpTool( name: 'wpcom_list_site_plugins' )]
478-
public function wpcom_list_site_plugins( string $site_id_or_domain ): array {
477+
#[McpTool( name: 'jetpack_list_site_plugins' )]
478+
public function jetpack_list_site_plugins( string $site_id_or_domain ): array {
479479
$identity_error = self::ensure_identity();
480480
if ( $identity_error ) {
481481
return $identity_error;

0 commit comments

Comments
 (0)