Skip to main content
Glama
Hex API MCP Server

Hex API MCP Server

by franccesco

Servidor MCP hex-mcp

Un servidor MCP para Hex que implementa las siguientes herramientas:

  • list_hex_projects : Lista los proyectos hexadecimales disponibles

  • search_hex_projects : Busca proyectos hexadecimales por patrón

  • get_hex_project : Obtener información detallada sobre un proyecto específico

  • get_hex_run_status : Verifica el estado de la ejecución de un proyecto

  • get_hex_project_runs : Obtener el historial de ejecuciones del proyecto

  • run_hex_project : Ejecutar un proyecto hexadecimal

  • cancel_hex_run : Cancelar un proyecto en ejecución

Instalación

El uso de uv es la forma recomendada de instalar hex-mcp:

uv add hex-mcp

O usando pip:

pip install hex-mcp

Para confirmar que funciona, puedes ejecutar:

hex-mcp --version

Related MCP server: Roblox Studio MCP Server

Configuración

Usando el comando config (recomendado)

La forma más fácil de configurar hex-mcp es usando el comando config y pasando su clave API y URL API (opcional y predeterminada es https://app.hex.tech/api/v1 ):

hex-mcp config --api-key "your_hex_api_key" --api-url "https://app.hex.tech/api/v1"

[!NOTA] Esto guarda su configuración en un archivo en su directorio de inicio (por ejemplo, ~/.hex-mcp/config.yml ), haciéndolo disponible para todas las invocaciones de hex-mcp.

Uso de variables de entorno

Alternativamente, el servidor Hex MCP se puede configurar con variables de entorno:

  • HEX_API_KEY : Su clave API hexadecimal

  • HEX_API_URL : La URL base de la API hexadecimal

Al configurar las variables de entorno para servidores MCP, estas deben ser globales para que Cursor las recoja o utilizar el indicador --env-file de uv al invocar el servidor.

Uso con cursor

Cursor permite que los agentes de IA interactúen con Hex mediante el protocolo MCP. Siga estos pasos para configurar y usar hex-mcp con Cursor. Puede crear un archivo .cursor/mcp.json en la raíz del proyecto con el siguiente contenido:

{
  "mcpServers": {
    "hex-mcp": {
      "command": "uv",
      "args": ["run", "hex-mcp", "run"]
    }
  }
}

Alternativamente, puedes usar el comando hex-mcp directamente si está en tu PATH:

{
  "mcpServers": {
    "hex-mcp": {
      "command": "hex-mcp",
      "args": ["run"]
    }
  }
}

Una vez que esté en funcionamiento, puedes usarlo en Cursor iniciando una nueva conversación de IA (Agente) y pedirle que enumere o ejecute un proyecto Hex.

[!IMPORTANTE] El servidor MCP y la CLI aún están en desarrollo y están sujetos a cambios importantes.

Available Tools

7 tools
cancel_hex_runB

Cancel a running project.

Args:
    project_id: The UUID of the Hex project
    run_id: The UUID of the run to cancel

Returns:
    Success message

Inputs: project_id (required), run_id (required).

get_hex_projectB

Get details about a specific Hex project.

Args:
    project_id: The UUID of the Hex project

Returns:
    JSON string with project details

Inputs: project_id (required).

get_hex_project_runsC

Get the runs for a specific project.

Args:
    project_id: The UUID of the Hex project
    limit: The number of runs to return
    offset: The number of runs to skip

Returns:
    JSON string with project runs

Inputs: project_id (required), limit, offset.

get_hex_run_statusB

Get the status of a project run.

Args:
    project_id: The UUID of the Hex project
    run_id: The UUID of the run

Returns:
    JSON string with run status details

Inputs: project_id (required), run_id (required).

list_hex_projectsC

List all available Hex projects that are in production.

Returns:
    JSON string with list of projects

Inputs: limit, offset.

run_hex_projectC

Run a Hex project.

Args:
    project_id: The UUID of the Hex project to run
    input_params: Optional input parameters for the project
    update_published_results: Whether to update published results

Returns:
    JSON string with run details

Inputs: project_id (required), input_params, update_published_results.

search_hex_projectsA

Search for Hex projects using regex pattern matching on project titles.

Args:
    search_pattern: Regex pattern to search for in project titles
    limit: Maximum number of projects to return (default: 100)
    offset: Number of projects to skip for pagination (default: 0)

Returns:
    JSON string with matching projects

Inputs: search_pattern (required), limit, offset.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting specific resources and actions: listing/searching projects, getting project details, managing runs (initiate, check status, cancel), and retrieving run lists. No overlap exists between tools like list_hex_projects (all production projects) and search_hex_projects (pattern-based search), or between run management tools.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with 'hex' prefix: list_hex_projects, search_hex_projects, get_hex_project, get_hex_project_runs, run_hex_project, get_hex_run_status, cancel_hex_run. The naming convention is perfectly uniform throughout the set.

    Tool Count5/5

    With 7 tools, this is well-scoped for a Hex project management server. The count covers core operations (list, search, get, run, monitor runs) without being excessive or insufficient. Each tool serves a clear purpose in the workflow.

    Completeness5/5

    The tool surface provides complete coverage for Hex project management: discovery (list/search), inspection (get project details), execution (run project with parameters), run monitoring (status, list runs), and control (cancel run). No obvious gaps exist for the stated domain.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers