Skip to main content
Glama

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
-
license - not tested
-
quality - not tested

Related MCP Servers

  • -
    security
    -
    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.
  • A
    security
    -
    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
    95
    70
    MIT License
    • Apple
    • Linux
  • -
    security
    -
    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 -
    • Linux
    • Apple
  • A
    security
    -
    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
    14
    1
    • 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