Grey Hack MCP Server
Grey Hack MCP 服务器
用于 Grey Hack 游戏开发的模型上下文协议 (MCP) 服务器,旨在与 Cursor IDE 和其他 MCP 兼容工具配合使用。
特征
GitHub 代码搜索:从 GitHub 存储库中查找 Grey Hack 代码示例
Greybel-JS 转译:将 GreyScript 转换为 JavaScript
GreyScript API 验证:根据官方 Grey Hack API 验证代码
脚本生成:生成常见游戏任务的模板脚本
Related MCP server: CodeAlive MCP
安装
先决条件
已安装 Node.js 18+
Cursor 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\"}"
]
}
}
}光标中的手动配置
打开光标设置(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 代码示例:
Use the search_greyhack_code tool to find examples of port scanners in Grey Hack2. 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_ip4.脚本生成
生成常见游戏任务的模板脚本:
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 客户端
用于 HTTP 请求的 Axios
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
An MCP server that gives your AI access to the source code and docs of all public github repos
A Model Context Protocol server for Wix AI tools
Build, run and publish 3D games in the Zero engine from Claude Code, Cursor or Codex, over MCP.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that integrates with Cursor IDE to provide real-time git-spice documentation search capability.129 npm1ISC

CodeAlive MCPofficial
AlicenseNot gradedqualityBmaintenanceA Model Context Protocol server that enhances AI agents by providing deep semantic understanding of codebases, enabling more intelligent interactions through advanced code search and contextual awareness.90MIT- FlicenseNot gradedqualityNot gradedmaintenanceModel Context Protocol server that enables interaction with GitHub repositories, issues, pull requests, and search functionality through natural language.1-
- -licenseCqualityNot gradedmaintenanceA Model Context Protocol server with GitHub API integration that enables interaction with repositories, issues, pull requests, and file management through a standardized interface.1-