Integrations
Provides GitHub code search functionality to find Grey Hack code examples from GitHub repositories
Enables transpilation of GreyScript code to JavaScript through the Greybel-JS transpilation tool
Requires Node.js 18+ for server operation and provides integration with the Grey Hack game development environment
Grey Hack MCP 服务器
用于 Grey Hack 游戏开发的模型上下文协议 (MCP) 服务器,旨在与 Cursor IDE 和其他 MCP 兼容工具配合使用。
特征
- GitHub 代码搜索:从 GitHub 存储库中查找 Grey Hack 代码示例
- Greybel-JS 转译:将 GreyScript 转换为 JavaScript
- GreyScript API 验证:根据官方 Grey Hack API 验证代码
- 脚本生成:生成常见游戏任务的模板脚本
安装
先决条件
- 已安装 Node.js 18+
- Cursor IDE 或其他与 MCP 兼容的编辑器
- GitHub API 令牌(用于代码搜索功能)
从 NPM 安装
Copy
手动安装
克隆存储库并安装依赖项:
Copy
与 Cursor IDE 一起使用
使用配置文件
在您的工作区中创建一个.cursor/mcp.json
文件,其中包含以下内容:
Copy
光标中的手动配置
- 打开光标设置(Cmd/Ctrl + ,)
- 导航至功能 → MCP
- 点击“+ 添加新的 MCP 服务器”
- 输入以下详细信息:
- 名称:
greyhack-mcp-server
- 命令:
npx
- 参数:
-y @smithery/cli@latest run @chromewillow/greyhack-mcp-server
- 环境变量:
GITHUB_TOKEN=your-github-token-here
- 名称:
可用工具
1. GitHub 代码搜索
在 GitHub 上搜索 Grey Hack 代码示例:
Copy
2. Greybel-JS 转译
将 GreyScript 代码转换为 JavaScript:
Copy
3. GreyScript API 验证
根据 Grey Hack API 验证您的代码:
Copy
4.脚本生成
生成常见游戏任务的模板脚本:
Copy
可用的脚本类型:
port_scanner
:网络端口扫描实用程序password_cracker
:密码破解工具file_browser
:文件浏览和操作实用程序ssh_tool
:SSH 连接实用程序custom
:自定义脚本模板(需要描述)
发展
从源代码构建
Copy
以开发模式运行
Copy
执照
麻省理工学院
致谢
该项目使用:
- 模型上下文协议 TypeScript SDK
- Smithery GitHub 客户端
- 用于 HTTP 请求的 Axios
This server cannot be installed
模型上下文协议服务器,通过与 Cursor IDE 一起使用时提供 GitHub 代码搜索、GreyScript 验证、脚本生成和 Greybel-JS 转译功能来增强 Grey Hack 游戏开发。