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 的推荐方法:
或者使用 pip:
为了确认它正常工作,您可以运行:
配置
使用 config 命令(推荐)
配置 hex-mcp 最简单的方法是使用config
命令并传递你的 API 密钥和 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
文件,其中包含以下内容:
或者,如果hex-mcp
命令在您的 PATH 中,您可以直接使用它:
一旦它启动并运行,您就可以在 Cursor 中使用它,通过启动新的 AI(代理)对话并要求它列出或运行 Hex 项目。
[!IMPORTANT] MCP 服务器和 CLI 仍处于开发阶段,可能会发生重大变化。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
允许AI助手通过标准化界面访问、查看、运行和管理Hex项目的服务器。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA server that enhances AI assistants with the ability to update your JSON Resume by analyzing your coding projects, automatically extracting skills and generating professional descriptions.Last updated -33239TypeScriptThe Unlicense
- -securityAlicense-qualityA server that enables AI assistants to understand and interact with Unity projects in real-time, providing access to scene hierarchy, project settings, and the ability to execute code directly in the Unity Editor.Last updated -40MIT License
- -securityFlicense-qualityA server that enables AI assistants to interact with Linear's project management tools through the Model Context Protocol, supporting features like searching, creating, and updating issues, adding comments, and retrieving user profiles and team information.Last updated -TypeScript
- -securityAlicense-qualityA server that enables AI assistants like Claude to safely run Python code and access websites, processing data for better AI understanding while providing helpful error messages.Last updated -2PythonGPL 3.0