Skip to main content
Glama

CS2 RCON MCP Server

by v9rt3x

CS2 RCON MCP

CS2 RCON 管理用のモデル コンテキスト プロトコル サーバー。

説明

このプロジェクトは、RCON経由でCS2ゲームサーバーを管理するためのモデルコンテキストプロトコル(MCP)サーバーインターフェースを提供します。これにより、標準化されたプロトコルを介してCS2サーバーのリモート制御と監視が可能になります。

CS2 RCON MCP デモ

特徴

  • 自然言語でCS2サーバーを管理する
  • RCONコマンド実行
  • サーバーステータス監視
  • SSEベースの通信
  • Dockerサポート

インストール

pip install -e .

使用法

サーバーの実行

python -m rcon_mcp

利用可能なコマンド

  • rcon <command> : 任意のRCONコマンドを実行する
  • status : 現在のサーバーステータスを取得する
  • changelevel <map_name> : 現在のマップを変更する
  • mp_warmup_end : ウォームアップフェーズを終了する
  • mp_restartgame 1 : ゲームを再開する
  • その他多くのCS2サーバーコマンド

環境変数

  • HOST : CS2サーバIP
  • SERVER_PORT : CS2サーバポート
  • RCON_PASSWORD : RCONパスワード

Docker(推奨)

GitHub Container Registry から Docker イメージをプルします。

docker pull ghcr.io/v9rt3x/cs2-rcon-mcp:main

Docker環境変数

Docker で実行する場合、環境変数は次の 2 つの方法で設定できます。

  1. コマンド内で直接
    docker run -p 8080:8080 \ -e HOST=your_server_ip \ -e SERVER_PORT=your_server_port \ -e RCON_PASSWORD=your_password \ ghcr.io/v9rt3x/cs2-rcon-mcp:main
  2. .server-envファイルの使用: 次の内容を含む.server-envという名前のファイルを作成します。
    HOST=your_server_ip SERVER_PORT=your_server_port RCON_PASSWORD=your_password
    次に、次のようにコンテナを実行します。
    docker run -p 8080:8080 --env-file .server-env ghcr.io/v9rt3x/cs2-rcon-mcp:main

これにより、ユーザーに環境変数を設定するための代替方法が提供され、パスワードなどの機密情報の管理が容易になります。

Visual Studio Code からの接続 (GitHub Copilot)

Visual Studio Code を MCP サーバーで動作するように構成するには、次の手順に従います。

  1. MCP サーバーを起動します。VS Code から接続する前に、MCP サーバーが実行されていることを確認します。
  2. Visual Studio Code を開く: VS Code を起動し、GitHub Copilot 拡張機能がインストールされ、構成されていることを確認します。
  3. GitHub Copilot を構成する:
    • モードを「質問」モードから「エージェント」モードに変更します。
  4. MCP サーバー構成を追加します:
    • Copilot プロンプトの左上隅にあるツールボックス アイコンをクリックします。
    • 「MCP サーバーの追加」を選択し、 HTTP - サーバー送信イベントのオプションを選択します。
  5. サーバーURLを入力してください:
    • URLにはhttp://localhost:8080/cs2server/sseと入力します。これはMCPサーバーのSSE接続のエンドポイントです。

代替案: カーソル (またはその他の MCP クライアント) からの接続

  1. MCPサーバーを起動する
  2. ~/.cursor/mcp.jsonを作成または更新して、カーソルの MCP 設定を構成します。
    { "mcpServers": { "cs2server": { "url": "http://localhost:8080/cs2server/sse" } } }
  3. カーソルで、MCPパネルを開きます(通常はサイドバーにあります)
  4. サーバーは設定されたURLを使用して自動的に接続するはずです

接続すると、自然言語でサーバーを管理できます。

プロンプトの例:

  1. 「サーバーにボットを5台追加し、de_dust2で競争マッチを開始してください」
  2. 「現在のサーバーの状態はどうですか?接続しているプレイヤーは何人で、どのマップにいるのですか?」

楽しいフラグリングを!😊

-
security - not tested
A
license - permissive license
-
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.

自然言語を使用した RCON コマンドを介して Counter-Strike 2 ゲーム サーバーを管理できるモデル コンテキスト プロトコル サーバー。

  1. 説明
    1. 特徴
      1. インストール
        1. 使用法
          1. サーバーの実行
          2. 利用可能なコマンド
        2. 環境変数
          1. Docker(推奨)
            1. Docker環境変数
            2. Visual Studio Code からの接続 (GitHub Copilot)
            3. 代替案: カーソル (またはその他の MCP クライアント) からの接続

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server for Unity game development that enables users to manage projects, edit scenes, create prefabs, and generate scripts through natural language integration with Smithery.ai.
            Last updated -
            TypeScript
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that enables interaction with Foundry tools through natural language, allowing users to create projects, build contracts, run tests, and manage Ethereum development environments.
            Last updated -
            1
            Python
            MIT License
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that enables Large Language Models to interact with Binary Ninja for reverse engineering tasks like viewing assembly code, decompiled code, renaming functions, and adding comments.
            Last updated -
            2
            Python
            MIT License
            • Linux
            • Apple
          • -
            security
            F
            license
            -
            quality
            A utility module for creating Model Context Protocol servers declaratively, allowing developers to easily define tools, prompts, and resources with a simplified syntax.
            Last updated -
            64
            JavaScript

          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/v9rt3x/cs2-rcon-mcp'

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