AI Client Connectors

Claude Code CLI & Terminal Agent Guide

Updated: Nov 07, 2026 • Verified for WordPress 7.0 & MCP 2024-11-05 • ✓ Official Guide

Claude Code CLI & Terminal Agent Guide

Claude Code is Anthropic's official terminal-based agent for developers. You can pair Claude Code directly with your live WordPress site to run automated CI/CD deployments, perform content migrations, and run automated health audits directly from your command line.


Step 1: Install Claude Code

Ensure you have Node.js 18+ installed, then install Claude Code globally:

npm install -g @anthropic-ai/claude-code

Step 2: Configure MCP in Claude Code

Run Claude Code in your terminal and configure the MCP server:

claude mcp add wordpress-site -- npx -y @modelcontextprotocol/server-sse https://gateway.digentsmartai.com/api/mcp/YOUR_SITE_UUID

Or add it directly to your ~/.claude.json configuration file:

{
  "mcpServers": {
    "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"
      }
    }
  }
}

Step 3: Run Command-Line WordPress Tasks

Launch Claude Code:

claude

Try these commands:

> Check my remote WordPress site diagnostics and list any plugins that have pending updates.
> Audit the top 10 articles for missing meta descriptions and update them with Rank Math SEO tags.
> Clean up spam comments and auto-drafts in my database.

Have questions or need technical support?

Our engineering team is ready to help you connect your AI agents.

Language