Grey Hack MCP Server

by chromewillow
Verified

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

グレーハックMCPサーバー

Cursor IDE およびその他の MCP 互換ツールで動作するように設計された、Grey Hack ゲーム開発用の Model Context Protocol (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

カーソル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

Cursor IDE と併用すると、GitHub コード検索、GreyScript 検証、スクリプト生成、および Greybel-JS トランスパイル機能を提供することで、Grey Hack ゲーム開発を強化するモデル コンテキスト プロトコル サーバーです。

  1. Features
    1. Installation
      1. Prerequisites
      2. Install from NPM
      3. Manual Installation
    2. Usage with Cursor IDE
      1. Using Configuration File
      2. Manual Configuration in Cursor
    3. Available Tools
      1. 1. GitHub Code Search
      2. 2. Greybel-JS Transpilation
      3. 3. GreyScript API Validation
      4. 4. Script Generation
    4. Development
      1. Building from Source
      2. Running in Development Mode
    5. License
      1. Acknowledgments

        Appeared in Searches

        ID: 64emdoj7fa