Skip to main content
Glama
Hex API MCP Server

Hex API MCP Server

by franccesco

hex-mcp MCP 服务器

一个用于 Hex 的 MCP 服务器,可实现以下工具:

  • list_hex_projects :列出可用的 Hex 项目

  • search_hex_projects :按模式搜索 Hex 项目

  • get_hex_project :获取有关特定项目的详细信息

  • get_hex_run_status :检查项目运行的状态

  • get_hex_project_runs :获取项目运行的历史记录

  • run_hex_project :执行 Hex 项目

  • cancel_hex_run :取消正在运行的项目

安装

使用 uv 是安装 hex-mcp 的推荐方法:

uv add hex-mcp

或者使用 pip:

pip install hex-mcp

为了确认它正常工作,您可以运行:

hex-mcp --version

Related MCP server: Roblox Studio MCP Server

配置

使用 config 命令(推荐)

配置 hex-mcp 最简单的方法是使用config命令并传递你的 API 密钥和 API URL(可选,默认为https://app.hex.tech/api/v1 ):

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

[!NOTE] 这会将您的配置保存到主目录中的文件中(例如~/.hex-mcp/config.yml ),使其可用于所有 hex-mcp 调用。

使用环境变量

或者,可以使用环境变量配置 Hex MCP 服务器:

  • HEX_API_KEY :您的 Hex API 密钥

  • HEX_API_URL :Hex API 基本 URL

在为 MCP 服务器设置环境变量时,它们必须是全局的,以便 Cursor 能够获取它们,或者在调用服务器时使用 uv 的--env-file标志。

与游标一起使用

Cursor 允许 AI 代理通过 MCP 协议与 Hex 交互。请按照以下步骤设置并使用 hex-mcp 与 Cursor 交互。您可以在项目根目录中创建一个.cursor/mcp.json文件,其中包含以下内容:

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

或者,如果hex-mcp命令在您的 PATH 中,您可以直接使用它:

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

一旦它启动并运行,您就可以在 Cursor 中使用它,通过启动新的 AI(代理)对话并要求它列出或运行 Hex 项目。

[!IMPORTANT] MCP 服务器和 CLI 仍处于开发阶段,可能会发生重大变化。

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