Skip to main content
Glama

renpy-mcp

エディタアシスタント(Claude Code、Cursor、Copilot、Codex、Zed、その他MCPに対応しているもの)が、renpy.sh の呼び出しを推測しなくても、Ren'Py SDKのコマンドラインを通じてRen'Pyプロジェクトを操作できるようにするMCPサーバーです。

各ツールは、SDKがすでに持っているコマンドの薄いラッパーです。ここでエンジンを再実装することはありません。

背景: renpy/renpy#7313

ツール

ツール

実行するもの

戻り値

renpy_lint

lint

問題を{file, line, message}として返し、ノートと統計も返します。対応しているSDKではlint --format jsonを使用し(#7314)、古いSDKではテキストレポートを解析するため、どちらの場合でも結果の形は同じです。

renpy_project_info

quit --json-dump

ファイルパスと行番号付きのラベル、screens、transforms、defines、名前、バージョン、解像度を返し、SDKが出力する場合はラベルフローグラフ(#7318)も返します。

renpy_flow

quit --json-dump

1つのラベルのフロー(ジャンプ、呼び出し、メニューとその選択肢、フォールスルー)と、そのラベルに到達するラベルを返します。

renpy_compile

compile

解析エラーを{file, line, message}として返します。

renpy_run_tests

test [filters]

成功/失敗の状態、[rpytest] のサマリー、失敗の詳細、出力の末尾を返します。ウィンドウが開きます。

renpy_last_traceback

ファイルの読み取り

プロジェクト内のtraceback.txterrors.txtlog.txtを返します。

renpy_run_command

任意のコマンド

任意のCLIコマンド(translate frenchadd_ids --dry-rundialogueなど)を実行し、その出力を返します。

renpy_version

--version

どのSDKが使われているかを返します。

Related MCP server: Godot MCP

セットアップ

Ren'Py SDK(8.x)をどこかに展開しておくことと、Python 3.10+が必要です。

uv tool install renpy-mcp        # or: pipx install renpy-mcp
renpy-mcp --check                # confirms which SDK it found

SDKは、--sdk、次にRENPY_SDK環境変数、その後に一般的な場所(ホームディレクトリ、Downloads、/opt/ApplicationsC:\)の順で検索されます。--checkが誤ったSDKを発見した場合は、RENPY_SDKを設定してください。

Claude Code

claude mcp add renpy -- renpy-mcp --sdk /path/to/renpy-8.5.3-sdk

Cursor / VS Code / その他

stdioサーバーのエントリを追加します:

{
  "mcpServers": {
    "renpy": {
      "command": "renpy-mcp",
      "args": ["--sdk", "/path/to/renpy-8.5.3-sdk"]
    }
  }
}

チェックアウトから

uv run renpy-mcp --sdk /path/to/sdk --check
uv run pytest                                     # parser tests
RENPY_SDK=/path/to/sdk uv run pytest              # plus the tests that drive the real SDK

メモ

  • projectとして渡すパスは、プロジェクトのベースディレクトリ(gameがその中にあるもの)です。game自体を指定しても機能します。

  • renpy_run_last_tracebackと、ゲームを起動するコマンドにはディプレイが必要です。それ以外は、SDKがそれらのコマンドで独自に使用するダミーのビデオ/オーディオドライバで実行されるためです。

  • 各フィールドの出力は20,000文字に制限されています。エラーは通常の末尾に現れるため、切り捨てられるのは末尾ではなく、先頭側です。

  • SDKのCLIは安定したインターフェイスではなく、このサーバーも同様です。ツールは現行リリースのCLIドキュメントに追従しています。

ライセンス

MIT。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables comprehensive management of TyranoStudio visual novel projects including project creation, scenario editing with syntax validation, resource management, and TyranoScript development assistance. Supports project analysis, template generation, and Git integration for visual novel game development.
    2
    -
  • A
    license
    A
    quality
    F
    maintenance
    Enables AI assistants to interact with the Godot game engine by launching the editor, running projects, capturing debug output, managing scenes and nodes, and controlling project execution through a standardized interface.
    18
    147
    11
    MIT
  • A
    license
    B
    quality
    Not graded
    maintenance
    Enables AI assistants to interact with the Godot game engine by launching the editor, running projects, capturing debug output, managing scenes and nodes, and controlling project execution through a standardized interface.
    14
    147
    1
    -
  • A
    license
    B
    quality
    C
    maintenance
    Enables AI assistants to interact with the Godot game engine, including launching the editor, running projects, capturing debug output, and managing scenes.
    84
    1
    MIT

Latest Blog Posts

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/wgu9/renpy-mcp'

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