Menuing
Tool Panel

Configuration,Claude CLI

Configuring Claude CLI in a Terminal

Claude CLI (command-line interface) can connect to your Contensive MCP Server, allowing you to manage website content from any terminal or shell session.

Requirements

  • Claude CLI installed (installation guide)
  • Administrator access to your Contensive website
  • Your site must be accessible over HTTPS

Setup

Step 1: Install Claude CLI

If not already installed:

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

Step 2: Add the MCP Server

Use the Claude CLI settings command to add a remote MCP server:

claude mcp add contensive --transport http https://yoursite.com/mcp

Replace https://yoursite.com/mcp with your site's MCP endpoint.

Step 3: Authenticate

When you start a Claude session and it connects to the MCP server, it will prompt you to authenticate via OAuth. A browser window opens where you log in to your Contensive site with administrator credentials.

Step 4: Verify

Start a Claude session and test:

claude

Then type:

List all pages on my website

Claude should use the page_list tool and display your site's page hierarchy.

Configuration File

MCP server settings are stored in ~/.claude/settings.json. You can also edit this file directly:

{
  "mcpServers": {
    "contensive": {
      "url": "https://yoursite.com/mcp"
    }
  }
}

Project-Level Configuration

For project-specific MCP configuration, create a .mcp.json file in your project root:

{
  "mcpServers": {
    "contensive": {
      "url": "https://yoursite.com/mcp"
    }
  }
}

This allows different projects to connect to different Contensive sites.

Example Usage

List and inspect pages:

Show me all pages on the site, then get the full content of the /about page

Create content:

Create a new page called 'FAQ' under /support with a text widget containing
common questions and answers

Manage resources:

List all images in the resource library and update the alt text on
any that are missing it

Review and undo changes:

Show me the recent MCP undo records and revert the last page update

Troubleshooting

"Authentication required" error

  • Your OAuth token may have expired. Remove and re-add the server:
    claude mcp remove contensive
    claude mcp add contensive --transport http https://yoursite.com/mcp
    

Server not found

  • Verify the URL is correct and accessible from your terminal
  • Check that the /mcp route is active on your Contensive site
  • Test with curl: curl -I https://yoursite.com/mcp

Tools not loading

  • Run claude mcp list to verify the server is configured
  • Check that the addon is active in the Contensive Addon Manager