Making WordPress.org

Changeset 14767


Ignore:
Timestamp:
03/27/2026 01:39:59 PM (39 hours ago)
Author:
obenland
Message:

WP.org Abilities: Document sandbox testing setup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/README.md

    r14735 r14767  
    5050
    5151The MCP server auto-discovers all abilities whose name starts with `wporg/`.
     52
     53## Sandbox testing
     54
     55To test abilities against a dotorg sandbox, configure the MCP server to point at your sandbox IP. Create a `.mcp.json` in your project root:
     56
     57```json
     58{
     59  "mcpServers": {
     60    "wporg-sandbox": {
     61      "command": "npx",
     62      "args": ["-y", "@automattic/mcp-wordpress-remote@latest"],
     63      "env": {
     64        "WP_API_URL": "https://<sandbox-ip>/wp-json/mcp/wporg",
     65        "WP_API_USERNAME": "<your-wp-username>",
     66        "WP_API_PASSWORD": "<your-application-password>",
     67        "CUSTOM_HEADERS": "{\"Host\": \"wordpress.org\"}",
     68        "SOCKS_PROXY": "socks5://127.0.0.1:8080",
     69        "USE_SYSTEM_PROXY": "true",
     70        "NODE_TLS_REJECT_UNAUTHORIZED": "0"
     71      }
     72    }
     73  }
     74}
     75```
     76
     77- `CUSTOM_HEADERS` sets the Host header so the sandbox routes the request correctly.
     78- `SOCKS_PROXY` and `USE_SYSTEM_PROXY` route traffic through the proxy SOCKS5 tunnel. `USE_SYSTEM_PROXY` must be `true` or the proxy env var is ignored.
     79- `NODE_TLS_REJECT_UNAUTHORIZED` disables TLS verification since the certificate won't match the sandbox IP.
     80- Follow the [Using the MCP Server](https://developer.wordpress.org/plugins/wordpress-org/using-the-mcp-server/) guide to connect your WordPress.org account and use the application password from that setup.
Note: See TracChangeset for help on using the changeset viewer.