Connecting BackWPup with GitHub Copilot via MCP

Manage BackWPup directly from GitHub Copilot using natural language. Access backup information, run backup jobs, review logs, and interact with your WordPress site through MCP.

Inicio Preguntas frecuentes Connecting BackWPup with GitHub Copilot via MCP

Antes de continuar, asegúrate de que ya has completado el paso 2.1: «Hacer que tu sitio WordPress sea accesible para tu asistente de IA » y de que tienes a mano la siguiente información:

  • URL del sitio web
  • WordPress nombre de usuario
  • Contraseña de la aplicación

Requisitos previos

Before connecting GitHub Copilot, ensure you have:

  • Visual Studio Code (VS Code)
  • An active GitHub Copilot subscription
  • GitHub Copilot Chat extension installed
  • Enabled MCP support in VS Code (Refer to this documentation to enable)

Step 1: Open the MCP Configuration File

  1. Open Visual Studio Code
  2. Ensure GitHub Copilot Chat is installed and active.
  3. Open the Command Palette.
  4. Search for and open: mcp.json

Step 2: Add Your WordPress MCP Configuration

Add the following configuration to your mcp.json file:

{
  "servers": {
    "my-wordpress-site": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@automattic/mcp-wordpress-remote@latest"
      ],
      "env": {
        "WP_API_URL": "https://your-website-domain/wp-json/mcp/mcp-adapter-default-server",
        "WP_API_USERNAME": "your-wordpress-username",
        "WP_API_PASSWORD": "your-application-password",
        "OAUTH_ENABLED": "false"
      }
    }
  }
}

Sustituye los siguientes marcadores de posición:

Marca de posición Descripción
you-website-domain El dominio de tu página web
your-wordpress-username Tu nombre de usuario de WordPress
your-application-password Application Password generated in Step 2.1

Step 3: Review the Updated Configuration

Your configuration should now contain:

  • Your WordPress MCP configuration
  • Any existing MCP server configurations you already use

Important: If your mcp.json file already contains other MCP servers, add the WordPress MCP configuration alongside your existing configuration.

Requisitos del sistema:
macOS:
No se requiere ninguna configuración adicional.

Windows
The MCP connection uses the npx command.
If npx command is unavailable, install Node.js and restart VS Code before continuing.

Step 5: Reload VS Code

  1. Save the file.
  2. Open the Command Palette:
    • macOS: Cmd + Shift + P
    • Windows: Ctrl + Shift + P
  3. Buscar: Reload Window
  4. Select Developer: Reload Window.

GitHub Copilot should automatically detect the WordPress MCP server.

Paso 6: Comprueba la conexión

Open GitHub Copilot Chat and ask:

What MCP tools are available from my WordPress site?

Copilot should recognize the plugin’s MCP tools.


Siguiente paso

Vuelve a la guía principal y continúa con el paso 3: «Primeros pasos» para descubrir ejemplos de indicaciones y las capacidades de MCP.

Mantén a salvo tu sitio web de WordPress

Ofrece a los datos de tu página web la protección que se merecen con BackWPup Pro .