renpy-mcp
renpy-mcp
エディタアシスタント(Claude Code、Cursor、Copilot、Codex、Zed、その他MCPに対応しているもの)が、renpy.sh の呼び出しを推測しなくても、Ren'Py SDKのコマンドラインを通じてRen'Pyプロジェクトを操作できるようにするMCPサーバーです。
各ツールは、SDKがすでに持っているコマンドの薄いラッパーです。ここでエンジンを再実装することはありません。
背景: renpy/renpy#7313。
ツール
ツール | 実行するもの | 戻り値 |
|
| 問題を |
|
| ファイルパスと行番号付きのラベル、screens、transforms、defines、名前、バージョン、解像度を返し、SDKが出力する場合はラベルフローグラフ(#7318)も返します。 |
|
| 1つのラベルのフロー(ジャンプ、呼び出し、メニューとその選択肢、フォールスルー)と、そのラベルに到達するラベルを返します。 |
|
| 解析エラーを |
|
| 成功/失敗の状態、 |
| ファイルの読み取り | プロジェクト内の |
| 任意のコマンド | 任意のCLIコマンド( |
|
| どの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 foundSDKは、--sdk、次にRENPY_SDK環境変数、その後に一般的な場所(ホームディレクトリ、Downloads、/opt、/Applications、C:\)の順で検索されます。--checkが誤ったSDKを発見した場合は、RENPY_SDKを設定してください。
Claude Code
claude mcp add renpy -- renpy-mcp --sdk /path/to/renpy-8.5.3-sdkCursor / 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。
This server cannot be deployed
Maintenance
Related MCP Connectors
- ApricotOAuthtools.apricot
Manage SysML2 projects; check, evaluate, verify, query, document and diagram models.
Lean 4 MCP server: compile, prove theorems, and formalize math with Mathlib.
Control Unreal Engine to browse assets, import content, and manage levels and sequences. Automate…
Build, run and publish Workbench flows, tasks, shims and knowledge bases.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables 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-
- AlicenseAqualityDmaintenanceEnables 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.18194 npm11MIT
- AlicenseBqualityNot gradedmaintenanceEnables 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.14194 npm1-
- AlicenseBqualityCmaintenanceEnables AI assistants to interact with the Godot game engine, including launching the editor, running projects, capturing debug output, and managing scenes.8474 PyPI1MIT