Markus Michalski FAQ

StoryForge: Installation

Install and set up StoryForge: requirements, plugin installation, the setup skill, your first author profile and Windows notes.

StoryForge: Installation

Deutsche Version

← Back to overview


Requirements

Component Purpose
Claude Code Plugin host
Python 3.10 or newer Runtime of the MCP server (runs in its own virtual environment)
Pandoc EPUB and PDF export
xelatex PDF export (the export command calls Pandoc with --pdf-engine=xelatex)
Calibre (ebook-convert) MOBI export only, optional

You do not need your own API key. The plugin works through the Claude access of Claude Code.


Install the plugin

The project README names this route:

claude plugin add storyforge

The repository ships a plugin manifest (.claude-plugin/plugin.json) and a marketplace file (.claude-plugin/marketplace.json) for this. The manifest wires in the skills from skills/, the MCP server storyforge-mcp and three hooks.


Run the setup

After installation, the setup skill creates everything else:

/storyforge:setup

The skill works through these steps (the numbers match those in the skill):

  1. Detect the platform and find a working Python interpreter (python3, then python, then py -3, plus known install locations on Windows).
  2. Check that Python 3.10 or newer is available.
  3. Create the virtual environment at ~/.storyforge/venv if it is missing.
  4. Install the dependencies from the plugin's requirements.txt: mcp (version 2.x), pyyaml, pymupdf, python-docx, plus a few minimum versions for security-relevant transitive packages.
  5. Create the directories ~/.storyforge/cache and ~/.storyforge/authors.
  6. Copy config/config.example.yaml to ~/.storyforge/config.yaml if that file does not exist yet.
  7. Check Pandoc (pandoc --version) and print an install hint if it is missing.
  8. Check Calibre (ebook-convert --version, only needed for MOBI).
  9. Test the MCP import with the virtual environment's Python.
  10. Create ~/projekte/book-projects/projects if it is missing.
  11. Report the status and suggest the next step.

Step 9 always creates ~/projekte/book-projects/projects, even if you set a different paths.content_root in the config. Adjust the path afterwards in the configuration.

The setup skill doubles as the repair tool: if the MCP server does not respond, run it again.


How the MCP server is started

The plugin's .mcp.json starts the server storyforge-mcp through a small wrapper that calls the virtual environment's Python.

Platform Wrapper Interpreter
Linux, macOS bin/run-server ~/.storyforge/venv/bin/python3
Windows bin/run-server.cmd %USERPROFILE%\.storyforge\venv\Scripts\python.exe

The three hooks also run through this wrapper. Without the virtual environment at ~/.storyforge/venv, neither the server nor the hooks run.


Windows: python3 is not found

On Windows, python3 and python sometimes exit with code 49 and no output even though Python is installed. That is the Microsoft Store placeholder, not a missing installation. The setup skill therefore also tries py -3 and the usual install directories. If it still reports that Python is missing, install Python 3.10 or newer from python.org and enable "Add python.exe to PATH".


First steps after installation

/storyforge:create-author My Name
/storyforge:new-book
/storyforge:help

Continue with the configuration and the skills reference.