Build Faster With AI Tools
Last updated
Last updated
HYTOPIA's SDK was built out of the box to work extremely well with popular AI coding editors and tools like and . Our SDK's development patterns, documentation, and examples make AI assistants capable of building many complex features and ideas using the HYTOPIA SDK with as little as a single prompt.
AI tools are also a fantastic way to assist you in quickly getting up to speed with how to use the HYTOPIA SDK. By using these tools to ask how to implement specific ideas you have, they can fast track you learning how the HYTOPIA SDK works by coding what you're trying to do!
To supercharge your development experience beyond just regular AI tooling, HYTOPIA provides a specialized MCP server that runs in parallel with your development environment.
The HYTOPIA MCP (Model Context Protocol) Server provides tools and resources to help developers build games with the HYTOPIA SDK.
It enables AI assistants like Claude to provide accurate, up-to-date guidance specific to HYTOPIA game development. It turns a generalized AI assistant into a supercharged game development expert with full knowledge of the HYTOPIA SDK.
First, let's start by installing the HYTOPIA MCP for a new project, or an existing project. Here's how to do that.
When creating a new HYTOPIA project (Initial Setup), you can have the MCP server automatically configured for you:
During the initialization process, you'll be presented with a questionnaire. Answer the questions, and the MCP server will be set up for you.
The questionnaire will ask you if you use Cursor or Claude Code or both. If you wish to use the cursor MCP server with some other MCP client, the raw STDIO command is at the bottom of this guide.
If you're integrating the MCP server into an existing HYTOPIA project:
Follow the prompts to configure the MCP server for your environment.
Next up, we need to configure our IDE to use our MCP server so our AI assistant has access to it.
Make sure you're using the latest version of Cursor
Open your project in Cursor IDE
Go to Settings > MCP
Enable the MCP server
The command should automatically be set to bunx
with arguments:
When using Claude Code, the MCP server is configured via a .mcp.json
file that should have been created during initialization. You can verify it exists in your project root directory.
Once configured, the HYTOPIA MCP Server provides the following tools to AI assistants:
read_me_first
: Provides an overview of the HYTOPIA SDK
full_game_example
: Shows a complete example game
help
: Access help documentation for specific topics
describe_project
: Gets a representation of your project structure
list_models
: Lists available models
list_audio
: Lists available audio files
get_model_animations
: Gets animations for specific models
Use Claude 3.5 or Claude 3.7 for optimal results
When starting a new project, explicitly ask the AI to check the read_me_first
and full_game_example
tools
For specific implementation questions, direct the AI to relevant sections of the help
tool
If the AI gets stuck or gives inconsistent answers, start a new chat thread
If the AI attempts to run bun index.ts
or similar commands to start the HYTOPIA server, reject this tool call and continue normally
If the MCP server isn't functioning as expected:
Verify the MCP server is enabled in your IDE settings
Check that you're in the correct project directory with a valid HYTOPIA project
Try reinitializing the MCP server with bunx hytopia init-mcp
Restart your IDE
If you wish to use the MCP server with a client other than Cursor or Claude Code, you can use the following MCP JSON config:
Please note that you must replace /path/to/your/hytopia/server
with the full path to your HYTOPIA project. This is the folder with package.json.