Token导航 LogoToken导航TokenDH.com
Grey Hack MCP Server logo
开发工具stdio官方级别未说明来源级核验

Grey Hack MCP Server

MCP Server

A Grey Hack MCP server for Cursor IDE with GitHub code search, Greybel-JS transpilation, API validation and script generation

工具数

4

提示词数

0

GitHub Stars

1

资源数

0
游戏开发TypeScriptCursorCursor

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

chromewillow

提供方

chromewillow

最后核验

2026/5/18 04:07

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npm install -g @chromewillow/greyhack-mcp-server

详细介绍

灰色哈克MCP服务器

用于Grey Hack游戏开发的模型上下文协议(MCP)服务器,旨在与Cursor IDE和其他MCP兼容工具配合使用。

特性

  • GitHub代码搜索:从GitHub存储库中查找Grey Hack代码示例
  • Greybel JS转换:将GreyScript转换为JavaScript
  • GreyScript API验证:根据官方Grey Hack API验证代码
  • 脚本生成:为常见游戏任务生成模板脚本

安装

先决条件

  • 已安装Node.js 18+
  • 游标IDE或其他兼容MCP的编辑器
  • GitHub API令牌(用于代码搜索功能)

从NPM安装

npm install -g @chromewillow/greyhack-mcp-server

手动安装

克隆存储库并安装依赖项:

git clone https://github.com/chromewillow/greyhack-mcp-server.git
cd greyhack-mcp-server
npm install
npm run build

使用Cursor IDE

使用配置文件

创建一个 .cursor/mcp.json 在工作区中创建包含以下内容的文件:

{
  "mcpServers": {
    "@greyhack-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli@latest",
        "run",
        "@chromewillow/greyhack-mcp-server",
        "--config",
        "{\"GITHUB_TOKEN\":\"your-github-token-here\"}"
      ]
    }
  }
}

光标中的手动配置

  1. 打开光标设置(Cmd/Ctrl+,)
  2. 导航到功能→ MCP
  3. 点击“+添加新MCP服务器”
  4. 输入以下详细信息:

- 姓名: greyhack-mcp-server - 命令: npx - 论据: -y @smithery/cli@latest run @chromewillow/greyhack-mcp-server - 环境变量: GITHUB_TOKEN=your-github-token-here

可用工具

1.GitHub代码搜索

在GitHub上搜索Grey Hack代码示例:

Use the search_greyhack_code tool to find examples of port scanners in Grey Hack

2.Greybel JS转换

将GreyScript代码转换为JavaScript:

Use the transpile_greyscript tool to convert this Grey Hack code to JavaScript:
get_shell.host_computer.File("/home/user/test.txt")

3.GreyScript API验证

根据Grey Hack API验证您的代码:

Use the validate_greyscript tool to check if this code is valid in Grey Hack 0.8.0:
router = get_router
ip = router.local_ip

4.脚本生成

为常见游戏任务生成模板脚本:

Use the generate_greyhack_script tool to create a port scanner for Grey Hack 0.8.0

可用脚本类型:

  • port_scanner:网络端口扫描实用程序
  • password_cracker:密码破解工具
  • file_browser:文件浏览和操作实用程序
  • ssh_tool:SSH连接实用程序
  • custom:自定义脚本模板(需要说明)

发展

从源头构建

npm run build

以开发模式运行

npm run dev

许可证

麻省理工学院

致谢

本项目使用:

  • 模型上下文协议TypeScript SDK
  • Smithery GitHub客户端
  • Axios用于HTTP请求

目录标签

目录标签

游戏开发TypeScriptCursordeveloper-tools本地部署脚本转换代码验证脚本生成GitHub搜索

支持客户端

Cursor

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

部署方式(deploymentType,部署类型)

remote-capable

工具数量(toolCount,工具数)

4

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiononeremote-capable

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP