Step-by-Step

Quickstart: Connect WordPress in 60 Seconds

Follow these 3 easy steps to pair your WordPress site with any LLM client using our Cloud Model Context Protocol bridge.

1

Install the Digent Smart AI Plugin

Upload and activate the digent-smart-ai plugin in your WordPress admin panel (/wp-admin/plugins.php).

2

Click "Connect to Digent Cloud Gateway"

Open the Digent Smart AI settings tab and click the 1-Click Connect button. The gateway registers your site UUID and generates your cryptographically secure HMAC secret key.

3

Copy Your Client Configuration

Paste the provided MCP configuration snippet into Claude Desktop, Cursor IDE, or ChatGPT to start chatting with your WordPress site immediately.

Connecting to Claude Desktop

Claude Desktop uses Model Context Protocol servers to execute commands on remote servers. Open your claude_desktop_config.json file:

# File Location:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "my-wordpress-site": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sse",
        "https://gateway.digentsmartai.com/api/mcp/YOUR_SITE_UUID"
      ],
      "env": {
        "DIGENT_API_KEY": "your_api_key_here"
      }
    }
  }
}

Connecting to Cursor & Windsurf IDE

In Cursor IDE, go to Cursor Settings → Features → MCP Servers, click Add New MCP Server:

  • Type: SSE or Command
  • Name: WordPress Site
  • URL: https://gateway.digentsmartai.com/api/mcp/YOUR_SITE_UUID

Cursor will instantly discover all available tools: execute_wp_cli, read_file, write_file, and update_post_seo.

ChatGPT Custom GPT Actions

Every site connected to Digent automatically receives a dedicated OpenAPI 3.1 schema.

https://gateway.digentsmartai.com/api/chatgpt/YOUR_SITE_UUID/openapi.json

In the OpenAI Custom GPT builder, click Create new action, paste the URL above into the Import from URL box, set Authentication to API Key (Bearer), and save!

WP-CLI Command Whitelist

For site security, arbitrary bash or shell commands are blocked. Digent Smart AI provides native WP-CLI runner support for the following verified namespaces:

wp plugin
list, status, is-installed, install, update, activate, deactivate
wp theme
list, status, is-installed, install, activate, update
wp cache / transient
cache flush, cache type, transient get, transient set, transient delete
wp menu
menu list, create, delete, item list, item add-post, item add-custom, item delete
wp rewrite
rewrite list, rewrite flush
wp core / option
core version, core check-update, option get, option list
Schema Reference

OpenAPI Specification & MCP JSON-RPC

Digent Smart AI exposes both an OpenAPI 3.1.0 schema for REST clients (e.g. ChatGPT Actions) and a JSON-RPC 2.0 streaming endpoint for Model Context Protocol (MCP) clients.

MCP Invocation Gateway:
POST https://gateway.digentsmartai.com/v1/mcp/invoke
Mandatory Cryptographic Headers:
  • X-Digent-Site-UUID: Your site's unique identifier
  • X-Digent-Timestamp: Unix epoch seconds (drift tolerance: ±300s)
  • X-Digent-Nonce: Cryptographically random 16-byte hex string
  • X-Digent-HMAC: SHA256 hex digest of payload + timestamp + nonce
Sample Model Context Protocol Tool Call Payload:
{
  "jsonrpc": "2.0",
  "id": "req-9842",
  "method": "tools/call",
  "params": {
    "name": "wp_cli_run",
    "arguments": {
      "command": "plugin list --status=active --format=json"
    }
  }
}

Autonomous Mode ("Dangerously Bypass Approvals")

Important Security Notice: Enabling Autonomous Mode allows the AI assistant to perform modifications and file writes without prompting for approval on each step.

To activate Autonomous Mode:

  1. Go to your WordPress Admin → Digent Smart AI → Settings.
  2. Locate the Approvals & Execution Mode section.
  3. Toggle the "Dangerously bypass approvals" switch to ON and click Save Settings.
  4. The status pill will update to AUTONOMOUS ACTIVE.
Idioma