DevHub CMS MCP Setup Guide

Prerequisites
  • Ensure you have the uv package manager installed on your local system.

Installation Steps

Manual Configuration of Claude Desktop

  1. Open your claude_desktop_config.json file.

  2. Add the following configuration to the "mcpServers" section:

    {
      "mcpServers": {
      "devhub_cms_mcp": {
      "command": "uvx",
      "args": [
      "devhub-cms-mcp"
      ],
      "env": {
      "DEVHUB_API_KEY": "YOUR_KEY_HERE",
      "DEVHUB_API_SECRET": "YOUR_SECRET_HERE",
      "DEVHUB_BASE_URL": "https://yourbrand.cloudfrontend.net"
      }
      }
      }
     }
     
  3. Save the file and restart Claude Desktop.

Manual Configuration for Cursor

  • Use a similar configuration as above for your Cursor global environment or individual projects.

Installing via Claude Code

Run the following command in your terminal:

claude mcp add devhub-cms-mcp 
  -e DEVHUB_API_KEY=YOUR_KEY_HERE 
  -e DEVHUB_API_SECRET=YOUR_SECRET_HERE 
  -e DEVHUB_BASE_URL=https://yourbrand.cloudfrontend.net 
  -- uvx devhub-cms-mcp
 

Installing via Smithery

Run the following command:

npx -y @smithery/cli install @devhub/devhub-cms-mcp --client claude
 

Local Development

  1. Clone the repository:

    git clone [email protected]:devhub/devhub-cms-mcp.git
     
  2. Open your claude_desktop_config.json file.

  3. Add the following configuration to the "mcpServers" section for local development:

    {
      "mcpServers": {
      "devhub_cms_mcp": {
      "command": "uv",
      "args": [
      "--directory",
      "/YOUR/LOCAL/PATH/devhub-cms-mcp/",
      "run",
      "main.py"
      ],
      "env": {
      "DEVHUB_API_KEY": "YOUR_KEY_HERE",
      "DEVHUB_API_SECRET": "YOUR_SECRET_HERE",
      "DEVHUB_BASE_URL": "https://yourbrand.cloudfrontend.net"
      }
      }
      }
     }
     
  4. Save the file and restart Claude Desktop.

Configuration for Running with uv Directly

  1. Set the following environment variables:

    export DEVHUB_API_KEY="your_api_key"
     export DEVHUB_API_SECRET="your_api_secret"
     export DEVHUB_BASE_URL="https://yourbrand.cloudfrontend.net"
     
  2. Run the MCP:

    uv run main.py
     

Testing

  1. Install the package with test dependencies:

    uv pip install -e ".[test]"
     
  2. Run the tests with pytest:

    uv run pytest
     
  3. For more detailed output and test coverage information, run:

    uv run pytest -v --cov=devhub_cms_mcp
     
Share this post: