
godot addon character setup
提供工具和MCP支持,用于创建和管理Godot角色,包括碰撞形状、命中框等。
Repository Info
About This Server
提供工具和MCP支持,用于创建和管理Godot角色,包括碰撞形状、命中框等。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Character Setup Plugin for Godot
This plugin provides tools with MCP support to create and manage Godot characters such as the player character, enemies, NPCs, including collision shapes, hitboxes, and detection areas. A Games Asset Server (GAS) is included which can be used to manage game assets (images, audio, etc.) and sync them between a local mapping file and a remote server with a REST API backed by an SQLite database.
The plugin also includes detection tools for image files and audio files, which can be used to automatically generate collision shapes, hitboxes, and detection areas for sprite sheets.
- ability to analyze audio files with the YAMNet model and generate tags for audio files
- ability to analyze image files with the OpenCV library and generate collision shapes for sprite sheets
- ability to detect and assign tags to image files
These abilities can be used to further enhance a character by adding matching audio and animations.
Status
Work In progress... lots of stuff to do. Stay tuned!
How to use
Configure the MCP server in ~/.cursor/mcp.json (global) or .cursor/mcp.json (project-specific):
json
{
"mcpServers": {
"character-setup-mcp": {
"command": "node",
"args": ["res://addons/character_setup_plugin/server/index.js"],
"env": { "MCP_TRANSPORT": "stdio" }
}
}
}
Add the plugin to your project:
cd /path/to/your/project
mkdir -p addons
git clone https://github.com/kristianmandrup/character-setup-plugin.git addons/character-setup
Install OpenCV
- Install Python 3.x Note: Usually your OS comes with Python pre-installed.
- Ensure Python is in the system
PATHie.python --versionshould returnPython 3.x.x.
Install Node.js
Install Node.js
File Detectors
- ImageDetector: Detects image files (default:
.png,.jpg,.jpeg,.bmp) and analyzes sprite sheets using OpenCV. - AudioDetector: Detects audio files (default:
.wav,.ogg,.mp3) and assigns tags. - Configure extensions via code or plugin settings.
Collision Tools
- CollisionBox: Generates physics collision shapes (feet, half height), blue.
- HitBox: Generates hitboxes (full sprite), red.
- DetectionArea: Generates detection areas (3x collision, circular), green.
- Configure colors in the settings panel.
SpriteAnalyzer
- Purpose: Classifies images (single sprite, background, sprite sheet) and analyzes sprite sheets for animations.
- Script:
analyze_sprite_sheet.pyuses OpenCV and optional OpenAI GPT-4o. - Metadata: Includes
image_type,animations(name, frame_count, frame_range). - Usage: Triggered by
AssetMapUpdatervia@mcp character-setup-mcp update_asset_map.
Audio-Animation Matching
- Matches audio to animations using
character_nameand animation names. - Stores
linked_animationin audio metadata.
Scene/Script Maps
- Scene map links
character_nameto.tscnfiles. - Script map associates
.gdfiles with scenes vialinked_scene.
Quick Start
Clone the repository
git clone https://github.com/kristianmandrup/godot-addon-character-setupInstall dependencies
cd godot-addon-character-setup
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.