rune-mcp
v0.1.0
Published
Model Context Protocol (MCP) Server for creating multiplayer mobile games with Rune SDK
Maintainers
Readme
rune-mcp
⚠️ ALPHA RELEASE! ⚠️
A Model Context Protocol (MCP) server to help you develop multiplayer games with the Rune SDK. This project enables AI assistants like GitHub Copilot to understand the Rune SDK and help you rapidly iterate on building and debugging Rune games through specialized tools and templates.
Quickstart: VSCode + Github Copilot
- Create an empty folder (e.g
ai-game) and open it in VSCode - Create a
.vscodedirectory inside the game folder - Inside that directory create a file called
mcp.jsonwith this content:{ "servers": { "Rune": { "type": "stdio", "command": "npx", "args": ["rune-mcp@latest"] } } } - When you save the
mcp.jsonfile, you should see a little "Start" button appear: - Now press "Start" and then open up the Copilot window.
- IMPORTANT: Set Copilot to "Agent" mode using
Claude 3.7 Sonnet. You should see "🛠️ 9" in copilot since it has detected the 9 Rune tools: - Now type a prompt to build a Rune game. Here's an example prompt: "I'd like to build a Rune game. The game I had in mind is a 2D maze like puzzle game where you have to move some blocks around to get to the end of the maze. Can you build this Rune game for me?"
Support
Please join our Discord server for help and to report any issues you find! We're excited to help you build your first Rune game with AI
Contributing
To contribute to this project, please make sure to:
- Build and test your changes locally
- Follow the code style guidelines
- Update documentation as needed
Local Development
Installation
# Install dependencies
yarn install
# Build the project
yarn buildTo test locally using the mcp inspector, you can run
cd packages/rune-mcp
yarn inspectTesting local code in VS Code with GitHub Copilot
- Create a directory to test with and open that folder in vs code.
- Create a
.vscodedirectory in that folder - Inside that directory create a file called
mcp.json - Add the following
but replace with the full path to the rune-mcp repo on your local system, such as{ "servers": { "Rune": { "type": "stdio", "command": "node", "args": ["<local-path>/rune/packages/rune-mcp/dist/index.js"] } } }/User/david/Projectsor something similar. - Make sure you have run
yarn buildin the rune-mcp project so thedist/index.jsfile exists.
For further information on using MCP Servers in VS Code with Github Copilot, see: https://code.visualstudio.com/docs/copilot/chat/mcp-servers
Note: VS Code caches the server tool definitions so if you are modifying them you may have to restart VS Code for the agent to receive the new tools definitions.
Available MCP Tools
This server provides several custom tools for GitHub Copilot to use when assisting with Rune game development:
- create-rune-game: Creates a new Rune game project from a template
- restart-dev-server: Restarts the development server for a Rune project
- check-dev-server: Checks the status of a Rune development server
- check-rune-project-errors: Validates the Rune project for errors
- explain-rune-project: Provides explanations about Rune game structure and development
Project Structure
src/: Source code for the MCP serverindex.ts: Main entry point for the serverservices/: Core services for project managementtext/: Text definitions for toolstools/: MCP tool implementationsutils/: Utility functions
templates/: Template projects for different frameworks and languages- Various templates for JavaScript, TypeScript, React, Vue, Svelte, etc.
prompts/: Guidance for GitHub Copilot
License
MIT
