Skip to main content
Glama

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 验证代码
  • 脚本生成:生成常见游戏任务的模板脚本

安装

先决条件

  • 已安装 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\"}" ] } } }

光标中的手动配置

  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 客户端
  • 用于 HTTP 请求的 Axios
-
security - not tested
F
license - not found
-
quality - not tested

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.

模型上下文协议服务器,通过与 Cursor IDE 一起使用时提供 GitHub 代码搜索、GreyScript 验证、脚本生成和 Greybel-JS 转译功能来增强 Grey Hack 游戏开发。

  1. 特征
    1. 安装
      1. 先决条件
      2. 从 NPM 安装
      3. 手动安装
    2. 与 Cursor IDE 一起使用
      1. 使用配置文件
      2. 光标中的手动配置
    3. 可用工具
      1. 1. GitHub 代码搜索
      2. 2. Greybel-JS 转译
      3. 3. GreyScript API 验证
      4. 4.脚本生成
    4. 发展
      1. 从源代码构建
      2. 以开发模式运行
    5. 执照
      1. 致谢

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server that integrates with Cursor IDE, providing real-time communication, modern web dashboards, and extensible tools via SSE and WebSocket connections.
          Last updated -
          693
          1
          Python
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol (MCP) server for Cursor IDE that simplifies the installation and configuration of other MCP servers.
          Last updated -
          3
          98
          67
          JavaScript
          MIT License
          • Apple
          • Linux
        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server that enables seamless integration between Cursor IDE and JIRA, allowing users to retrieve issues, execute JQL searches, and log work through natural language interactions.
          Last updated -
          Python
          • Linux
          • Apple
        • A
          security
          F
          license
          A
          quality
          A Model Context Protocol server that integrates with Cursor IDE to provide real-time git-spice documentation search capability.
          Last updated -
          1
          676
          1
          TypeScript
          • Linux
          • Apple

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/chromewillow/greyhack-mcp-server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server