Kenji Engine is an AI-native game engine that enables developers to build games using natural language, generate pixel art assets with AI, and deploy with a single command. It combines a robust ECS architecture with built-in AI capabilities through its integrated MCP server to streamline the game development process.
Clone the repository:
git clone <repository-url> kenji-ge
cd kenji-ge
Install dependencies:
bun install
Build all packages:
bun run build
Install CLI tools globally:
Option A: Automated setup (recommended):
# Run the setup script
./scripts/setup-global.sh
Option B: Manual setup - main command only:
# From the root directory
bun run build:packages
bun link
Option C: Manual setup - individual tools:
# Build packages first
bun run build:packages
# Install the TUI editor
cd packages/tui-editor && bun link && cd ../..
# Install the basic CLI
cd packages/cli && bun link && cd ../..
After linking, you can use the interactive menu from anywhere:
kenji-ge
This will show a menu with options to:
Once you've run bun link, you'll have these commands available globally:
Main Command:
TUI Editor Commands:
Create a new Pong game:
kenji-ge
Then select "Create New Project" from the menu
Start development:
cd your-game-name
kenji-editor start
Open in browser: Open index.html in your browser to see your game!
Start Kenji's MCP server and connect Kuuzuki:
kenji-mcp-server
Use natural language commands:
Basic game setup with engine initialization.
Classic Pong game with:
Breakout game with:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "kenji-engine" '{"command":"npx","args":["-y","kenji-engine","mcp"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"kenji-engine": {
"command": "npx",
"args": [
"-y",
"kenji-engine",
"mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"kenji-engine": {
"command": "npx",
"args": [
"-y",
"kenji-engine",
"mcp"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect