Логотип Ren'Py MCP Server

Ren'Py MCP Server

Спільнота
banjtheman

MCP Server to build Renpy Games

Видавецьbanjtheman
Репозиторійrenpy_mcp_server
МоваTypeScript
Форки
10
Зірки
63
Доступні інструменти
0
Тип транспортуstdio
Категорії
ЛіцензіяMIT
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    Ren'Py MCP Server надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 63, форки: 10 — у пов’язаному репозиторії.

Ren'Py Skill for Codex

Create visual novels directly in your workspace: write the story, generate character art, build for the web, and playtest in the browser.

Use the Ren'Py skill for new games. It is the recommended workflow in this repository. The Python MCP server and Ren'Py Studio MCP App remain available for existing integrations; their setup is in the legacy server guide and Studio documentation.

Install the skill

Install with the Skills CLI:

sh
npx skills add banjtheman/renpy_mcp_server --skill renpy --agent codex --global

Omit --global for a project-local installation. Use npx skills add banjtheman/renpy_mcp_server --list to inspect the available skills before installing. Node.js/npm is needed for this installer; the Ren'Py helper itself uses Python.

Or ask Codex to use its bundled installer:

text
Use $skill-installer to install the Ren'Py skill from
https://github.com/banjtheman/renpy_mcp_server/tree/main/skills/renpy

For a manual installation, copy the entire skills/renpy folder into your Codex skills directory. The bundled skill installer uses $CODEX_HOME/skills, which defaults to ~/.codex/skills. Keep its scripts, assets, and references together. If a renpy skill already exists there, update that installation rather than nesting another folder inside it. The skill works independently of this repository once copied.

Start a fresh Codex task in the workspace where you want the game and ask:

text
Use $renpy to make a short mystery visual novel with two distinct endings.
Generate backgrounds and consistent character expressions with native ImageGen.
Build it for the web, open the preview, and playtest both endings in the browser.

For an existing game, include its project path and the change you want. See adopting the skill in an existing project.

What the workflow includes

  • Direct authoring: ordinary .rpy scripts, game assets, and concise story notes in your workspace.
  • Native ImageGen: backgrounds and character variants based on inspected references, with checks for lighting, pose, framing, and real transparency. The native host manages its image model.
  • Reproducible web builds: a pinned Ren'Py 8.5.3 SDK and matching web runtime, verified downloads, engine lint, and upstream web_build packaging.
  • Local browser preview: an owned loopback server, build logs, and explicit rebuild/reload behavior.
  • Browser playtesting: screenshots and story state, with WebMCP actions for reading state, starting, advancing dialogue, and choosing an option. An accessible controls panel is available when native WebMCP is unsupported.

Game creation does not require configuring an MCP server, running the repository's setup.sh, or installing its Gemini dependencies. Those belong to the legacy integration. The skill's helper uses Python's standard library and the SDK's bundled runtime.

Requirements and tools

Use Python 3.11.8+, network access for the initial SDK download, and a browser for preview. Generated art additionally needs native ImageGen in the host. WebMCP needs a compatible browser; ordinary gameplay and the fallback controls work without it. The SDK pin and browser workflow were verified on macOS; consult the validation record for the checks performed.

Codex normally invokes the helper for you. You can also use it directly from this checkout with a Python 3.11.8+ interpreter available as python:

sh
python skills/renpy/scripts/renpy.py setup
python skills/renpy/scripts/renpy.py doctor
python skills/renpy/scripts/renpy.py init /absolute/path/my-game --title "My Game"
python skills/renpy/scripts/renpy.py lint /absolute/path/my-game
python skills/renpy/scripts/renpy.py build-web /absolute/path/my-game
python skills/renpy/scripts/renpy.py serve /absolute/path/my-game

serve returns the preview URL. After edits, rebuild with build-web /absolute/path/my-game --force and reload the browser. Use status /absolute/path/my-game or stop /absolute/path/my-game with the same helper to inspect or stop the preview.

Web builds go into a sibling my-game-web directory. The separate test command runs authored Ren'Py testcases and opens a native game window; browser playtests are the default for web previews.

Documentation

Watch Codex play through WebMCP

The web build exposes four semantic tools directly to a compatible browser. Codex can discover and invoke them through its browser's native WebMCP capability:

ToolWhat Codex can do
renpy_get_stateRead the visible dialogue, choices, phase, and deliberately public story variables.
renpy_startStart the game from its main menu.
renpy_advanceReveal or advance the current dialogue.
renpy_chooseSelect an enabled choice using its returned ID.

Actions use the current state revision so an agent cannot accidentally act on an outdated menu. The bridge runs inside the web game and preserves normal Ren'Py choice behavior. This is browser-native WebMCP; it does not require launching the repository's MCP server.

Playtests combine these state-driven actions with screenshots of the actual game. A JavaScript fallback or a successful build alone does not demonstrate native WebMCP. The validation record identifies the native calls and routes already exercised.

The timelapse recording plan follows a real Codex session from the initial prompt through story, art, web build, and direct WebMCP gameplay. The new recording will be added here once captured; the older MCP demos are preserved in the legacy guide.

Existing MCP integrations

The repository name remains renpy_mcp_server, so existing clone URLs continue to work. The server code, entry point, and Studio App remain in place. Use the legacy MCP server guide, MCP integration examples, or Studio App README when maintaining those integrations.

License

MIT.

Встановлення

TypingMind
{
  "mcpServers": {
    "renpy-mcp-server": {
      "command": "uv",
      "args": [
        "--directory",
        "{{config.RENPY_MCP_SERVER_PATH}}",
        "run",
        "renpy-mcp-server"
      ],
      "env": {
        "RENPY_MCP_SERVER_PATH": "<RENPY_MCP_SERVER_PATH>",
        "GEMINI_API_KEY": "<GEMINI_API_KEY>",
        "RENPY_SDK_PATH": "<RENPY_SDK_PATH>"
      }
    }
  }
}

Використовуйте MCP Ren'Py MCP Server з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення Ren'Py MCP Server ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте Ren'Py MCP Server як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP Ren'Py MCP Server.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "renpy-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для Ren'Py MCP Server, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для Ren'Py MCP Server.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через Ren'Py MCP Server?
Ren'Py MCP Server
Звісно. Я це прочитав.
Ось що я знайшов за допомогою Ren'Py MCP Server.

Поширені запитання

Для чого використовується сервер MCP Ren'Py MCP Server?

Ren'Py MCP Server — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP Ren'Py MCP Server з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати Ren'Py MCP Server з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP Ren'Py MCP Server із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши Ren'Py MCP Server, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP Ren'Py MCP Server до TypingMind?

Ren'Py MCP Server працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP Ren'Py MCP Server у TypingMind?

Ren'Py MCP Server надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP Ren'Py MCP Server?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо Ren'Py MCP Server потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇