Prerequisites
- Ensure you have the
uv package manager installed on your local system.
Installation Steps
Manual Configuration of Claude Desktop
-
Open your claude_desktop_config.json file.
-
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"
}
}
}
}
-
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
uv package manager installed on your local system.Open your claude_desktop_config.json file.
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"
}
}
}
}
Save the file and restart Claude Desktop.
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
-
Clone the repository:
git clone [email protected]:devhub/devhub-cms-mcp.git -
Open your
claude_desktop_config.jsonfile. -
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" } } } } -
Save the file and restart Claude Desktop.
Configuration for Running with uv Directly
-
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" -
Run the MCP:
uv run main.py
Testing
-
Install the package with test dependencies:
uv pip install -e ".[test]" -
Run the tests with pytest:
uv run pytest -
For more detailed output and test coverage information, run:
uv run pytest -v --cov=devhub_cms_mcp