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 : 実行中のプロジェクトをキャンセルする

インストール

hex-mcp をインストールするには、uv を使用することをお勧めします。

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 と対話できるようにします。Cursor で hex-mcp を設定して使用するには、以下の手順に従ってください。プロジェクトのルートに、以下の内容を含む.cursor/mcp.jsonファイルを作成してください。

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

あるいは、PATH 内にある場合は、 hex-mcpコマンドを直接使用することもできます。

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

起動したら、新しい AI (エージェント) 会話を開始して、Hex プロジェクトをリストまたは実行するように依頼することで、Cursor で使用できます。

[!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