Logo van DevHub CMS

DevHub CMS

Organisatie
devhub

DevHub CMS LLM integration through the Model Context Protocol

Uitgeverdevhub
Repositorydevhub-cms-mcp
TaalPython
Forks
12
Sterren
9
Beschikbare tools
10
Transporttypestdio
Categorieën
Links
  • Koppel tools aan AI-workflows

    DevHub CMS biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 10 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    9 sterren en 12 forks in de gekoppelde repository.

DevHub CMS MCP

smithery badge

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:

bash
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:

bash
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:

bash
uv pip install -e ".[test]"

Run the tests with pytest:

bash
uv run pytest

For more detailed output and test coverage information:

bash
uv run pytest -v --cov=devhub_cms_mcp

Test Structure

  • tests/devhub_cms_mcp/test_mcp_integration.py: Tests for MCP integration endpoints

Installatie

TypingMind
Vereisten:

Node.js 18+

{
  "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"
      }
    }
  }
}

Beschikbare tools

  • get_hours_of_operation

    Get the hours of operation for a DevHub location

    Returns a list of items representing days of the week

    Except for the special case formatting, this object is a list of 7 items which represent each day.

    Each day can can have one-four time ranges. For example, two time ranges denotes a "lunch-break". No time ranges denotes closed.

    Examples: 9am-5pm [["09:00:00", "17:00:00"]] 9am-12pm and 1pm-5pm [["09:00:00", "12:00:00"], ["13:00:00", "17:00:00"]] Closed - an empty list []

    Args: location_id: DevHub Location ID hours_type: Defaults to 'primary' unless the user specifies a different type

  • get_businesses

    Get all businesses within the DevHub account

    Returns a list of businesses with the following fields:

    • id: Business ID that can be used in the other tools
    • business_name: Business name

    If only one business exists in the account, you can assume that the user wants to use that business for any business_id related tools.

  • get_locations

    Get all locations for a business

    Returns a list of locations with the following fields:

    • id: Location ID that can be used in the other tools
    • location_name: Location name
    • location_url: Location URL in DevHub
    • street: Street address
    • city: City
    • state: State
    • country: Country
    • postal_code: Postal code
    • lat: Latitude
    • lon: Longitude
  • update_hours

    Update the hours of operation for a DevHub location

    Send a list of items representing days of the week

    Except for the special case formatting, this object is a list of 7 items which represent each day.

    Each day can can have one-four time ranges. For example, two time ranges denotes a "lunch-break". No time ranges denotes closed.

    Examples: 9am-5pm [["09:00:00", "17:00:00"]] 9am-12pm and 1pm-5pm [["09:00:00", "12:00:00"], ["13:00:00", "17:00:00"]] Closed - an empty list []

    Args: location_id: DevHub Location ID new_hours: Structured format of the new hours hours_type: Defaults to 'primary' unless the user specifies a different type

  • site_from_url

    Get the DevHub site ID from a URL.

    Can prompt the user for the URL instead of passing a site_id.

    Returns details about the Site matches the URL that can be used in the other tools.

    • Site ID: ID of the DevHub site
    • Site URL: URL of the DevHub site
    • Site Location IDs: List of location IDs associated with the site

    Args: url: URL of the DevHub site, all lowercase and ends with a slash

  • upload_image

    Upload an image to the DevHub media gallery

    Supports webp, jpeg and png images

    Args: base64_image_content: Base 64 encoded content of the image file filename: Filename including the extension

  • get_blog_post

    Get a single blog post

    Args: post_id: Blog post id

  • create_blog_post

    Create a new blog post

    Args: site_id: Website ID where the post will be published. Prompt the user for this ID. title: Blog post title content: HTML content of blog post. Should not include a tag, only h2+

  • update_blog_post

    Update a single blog post

    Args: post_id: Blog post ID title: Blog post title content: HTML content of blog post. Should not include a tag, only h2+

  • get_nearest_location

    Get the nearest DevHub location

    Args: business_id: DevHub Business ID associated with the location. Prompt the user for this ID latitude: Latitude of the location longitude: Longitude of the location

Gebruik DevHub CMS MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra DevHub CMS is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg DevHub CMS toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van DevHub CMS.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "devhub-cms": {
      "command": "npx",
      "args": [
        "-y",
        "devhub-cms-mcp"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van DevHub CMS in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van DevHub CMS in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je DevHub CMS gebruiken om me hiermee te helpen?
DevHub CMS
Zeker. Ik heb het gelezen.
Dit vond ik met DevHub CMS.

Veelgestelde vragen

Waarvoor wordt de MCP-server DevHub CMS gebruikt?

DevHub CMS is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik DevHub CMS MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je DevHub CMS gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom DevHub CMS MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als DevHub CMS verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik DevHub CMS MCP met TypingMind?

DevHub CMS werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt DevHub CMS MCP in TypingMind?

DevHub CMS biedt 10 MCP-tools die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om DevHub CMS MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als DevHub CMS authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇