This project provides an MCP (Model Context Protocol) server with tools for game development, including character sprite generation and storyline creation.
This project has been updated for Windows compatibility. The main changes include:
- Using
sys.executableinstead of hardcoded "python" in subprocess calls - Windows-compatible path handling throughout the codebase
- Proper environment variable loading
Create a .env file in the project root with the following content:
# OpenAI API Key (required for the MCP client)
OPENAI_API_KEY=your_openai_api_key_here
# Gemini API Key (required for image generation)
GEMINI_API_KEY=your_gemini_api_key_herepip install -r requirements.txtpython mcp_client.py- File Operations: create_file, read_file, delete_file, append_file, list_directory
- Character Generation: generate_character_sprites (creates complete sprite sets with animations)
- Story Generation: generate_initial_storyline, generate_overview, generate_characters, generate_scenes, generate_skill_tree, generate_cutscenes
If you encounter issues on Windows:
- Make sure Python is in your PATH
- Ensure all environment variables are set correctly
- Check that the reference images exist in
schemas/excharacs/ - Verify that the output directory
mcp_output/is writable
HTV/
├── mcp_client.py # Main MCP client
├── mcp_server/ # MCP server implementation
│ ├── main.py # Server entry point
│ ├── nanobanana_check.py # Image generation using Gemini
│ └── tools/
│ └── spritesheet_pipeline.py # Character sprite generation
├── schemas/
│ └── excharacs/ # Reference images for character generation
└── requirements.txt # Python dependencies