Devhub Cms Mcp
Integración de DevHub CMS LLM a través del Protocolo de Contexto del Modelo
Resumen
¿Qué es DevHub CMS MCP?
DevHub CMS MCP (Protocolo de Contexto del Modelo de Sistema de Gestión de Contenidos) es una plataforma innovadora diseñada para integrar modelos de lenguaje grandes (LLMs) en sistemas de gestión de contenidos. Esta integración permite a los usuarios aprovechar capacidades avanzadas de IA para la creación, gestión y optimización de contenido, mejorando la experiencia general del usuario y la eficiencia de los flujos de trabajo de contenido.
Características de DevHub CMS MCP
- Integración de LLM: Se integra sin problemas con varios modelos de lenguaje grandes para proporcionar sugerencias de contenido inteligentes y automatizaciones.
- Interfaz Amigable: Diseñada con una interfaz limpia e intuitiva que simplifica las tareas de gestión de contenido.
- Flujos de Trabajo Personalizables: Ofrece flujos de trabajo personalizables para adaptarse a diferentes estrategias de contenido y estructuras de equipo.
- Colaboración en Tiempo Real: Permite que múltiples usuarios colaboren en tiempo real, mejorando el trabajo en equipo y la productividad.
- Análisis e Informes: Proporciona herramientas de análisis e informes en profundidad para rastrear el rendimiento del contenido y la participación del usuario.
- Seguridad y Cumplimiento: Asegura la seguridad de los datos y el cumplimiento de los estándares de la industria, protegiendo la información del usuario y la integridad del contenido.
Cómo Usar DevHub CMS MCP
- Regístrate: Crea una cuenta en la plataforma DevHub para acceder al CMS.
- Configura Tu Espacio de Trabajo: Personaliza tu espacio de trabajo añadiendo miembros del equipo y definiendo roles.
- Integra LLMs: Conecta tus modelos de lenguaje grandes preferidos para comenzar a utilizar sugerencias de contenido impulsadas por IA.
- Crea Contenido: Utiliza el editor intuitivo para crear, editar y gestionar tu contenido. Aprovecha las sugerencias de IA para mejorar tu escritura.
- Colabora: Invita a los miembros del equipo a colaborar en el contenido en tiempo real, proporcionando comentarios y realizando ediciones según sea necesario.
- Analiza el Rendimiento: Utiliza las herramientas de análisis para monitorear el rendimiento del contenido y tomar decisiones basadas en datos para futuras estrategias de contenido.
Preguntas Frecuentes
P: ¿Qué tipos de contenido puedo crear con DevHub CMS MCP?
R: Puedes crear una amplia gama de contenido, incluyendo publicaciones de blog, artículos, páginas de destino y más, todo mejorado por sugerencias de IA.
P: ¿Es DevHub CMS MCP adecuado para pequeñas empresas?
R: Sí, DevHub CMS MCP está diseñado para ser escalable y puede ser utilizado efectivamente por pequeñas empresas así como por grandes empresas.
P: ¿Cómo funciona la integración de LLM?
R: La integración de LLM permite que el CMS proporcione sugerencias y automatizaciones conscientes del contexto basadas en el contenido que se está creando, mejorando la eficiencia y la creatividad.
P: ¿Puedo personalizar los flujos de trabajo en DevHub CMS MCP?
R: ¡Absolutamente! Puedes personalizar los flujos de trabajo para adaptarse a las necesidades específicas de tu equipo y estrategias de contenido.
P: ¿Hay una versión móvil de DevHub CMS MCP?
R: Sí, DevHub CMS MCP es accesible en dispositivos móviles, lo que te permite gestionar tu contenido sobre la marcha.
P: ¿Qué medidas de seguridad están en su lugar?
R: DevHub CMS MCP implementa protocolos de seguridad robustos para proteger los datos del usuario y asegurar el cumplimiento de los estándares de la industria.
Detalle
DevHub CMS MCP
A Model Context Protocol (MCP) integration for managing content in the DevHub CMS system.
Installation
You will need the uv package manager installed on your local system.
Manual configuration of Claude Desktop
To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claude_desktop_config.json
:
{
"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"
}
}
}
}
After updating the config, restart Claude Desktop.
Manual configuration for Cursor
This MCP can also be used in cursor with a similar configuration from above added to your Cursor global environment or to individual projects.
Examples here
Installing via Claude Code
Claude Code's command line supports MCP installs.
You can add the devhub-cms-mcp
by updating the environment variables below
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
To install DevHub CMS MCP for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @devhub/devhub-cms-mcp --client claude
Local development
Clone the repo (or your fork)
git clone git@github.com:devhub/devhub-cms-mcp.git
Manual configuration of Claude Desktop
To use this server with the Claude Desktop app for local development, add the following configuration to the "mcpServers" section of your claude_desktop_config.json
:
{
"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"
}
}
}
}
After updating the config, restart Claude Desktop.
Configuration for running with uv
directly
This MCP requires the following environment variables to be set:
export DEVHUB_API_KEY="your_api_key"
export DEVHUB_API_SECRET="your_api_secret"
export DEVHUB_BASE_URL="https://yourbrand.cloudfrontend.net"
Then run the MCP
uv run main.py
Available Tools
This MCP provides the following tools for interacting with DevHub CMS:
Business and Location Management
- get_businesses(): Gets all businesses within the DevHub account. Returns a list of businesses with their IDs and names.
- get_locations(business_id): Gets all locations for a specific business. Returns detailed location information including address, coordinates, and URLs.
- get_hours_of_operation(location_id, hours_type='primary'): Gets the hours of operation for a specific DevHub location. Returns a structured list of time ranges for each day of the week.
- update_hours(location_id, new_hours, hours_type='primary'): Updates the hours of operation for a DevHub location.
- get_nearest_location(business_id, latitude, longitude): Finds the nearest DevHub location based on geographic coordinates.
- site_from_url(url): Gets the DevHub site ID and details from a URL. Returns site ID, URL, and associated location IDs.
Content Management
- get_blog_post(post_id): Retrieves a single blog post by ID, including its title, date, and HTML content.
- create_blog_post(site_id, title, content): Creates a new blog post. The content should be in HTML format and should not include an H1 tag.
- update_blog_post(post_id, title=None, content=None): Updates an existing blog post's title and/or content.
Media Management
- upload_image(base64_image_content, filename): Uploads an image to the DevHub media gallery. Supports webp, jpeg, and png formats. The image must be provided as a base64-encoded string.
Usage with LLMs
This MCP is designed to be used with Large Language Models that support the Model Context Protocol. It allows LLMs to manage content in DevHub CMS without needing direct API access integrated into the LLM natively.
Testing
This package includes a test suite with mocked requests to the DevHub API, allowing you to test the functionality without making actual API calls.
Running Tests
To run the tests, first 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:
uv run pytest -v --cov=devhub_cms_mcp
Test Structure
tests/devhub_cms_mcp/test_mcp_integration.py
: Tests for MCP integration endpoints
Configuración del Servidor
{
"mcpServers": {
"devhub-cms-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--devhub--devhub-cms-mcp--devhub-cms-mcp",
"devhub-cms-mcp"
],
"env": {
"DEVHUB_API_KEY": "devhub-api-key",
"DEVHUB_API_SECRET": "devhub-api-secret",
"DEVHUB_BASE_URL": "devhub-base-url"
}
}
}
}