Claude CLI (command-line interface) can connect to your Contensive MCP Server, allowing you to manage website content from any terminal or shell session.
If not already installed:
npm install -g @anthropic-ai/claude-code
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.
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.
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.
MCP server settings are stored in ~/.claude/settings.json. You can also edit this file directly:
{
"mcpServers": {
"contensive": {
"url": "https://yoursite.com/mcp"
}
}
}
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.
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
"Authentication required" error
claude mcp remove contensive
claude mcp add contensive --transport http https://yoursite.com/mcp
Server not found
/mcp route is active on your Contensive sitecurl -I https://yoursite.com/mcpTools not loading
claude mcp list to verify the server is configured