kristianmandrup
MCP Serverkristianmandruppublic

godot addon character setup

提供工具和MCP支持,用于创建和管理Godot角色,包括碰撞形状、命中框等。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
GDScript
Language
-
License

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

  1. Install Python 3.x Note: Usually your OS comes with Python pre-installed.
  2. Ensure Python is in the system PATH ie. python --version should return Python 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.py uses OpenCV and optional OpenAI GPT-4o.
  • Metadata: Includes image_type, animations (name, frame_count, frame_range).
  • Usage: Triggered by AssetMapUpdater via @mcp character-setup-mcp update_asset_map.

Audio-Animation Matching

  • Matches audio to animations using character_name and animation names.
  • Stores linked_animation in audio metadata.

Scene/Script Maps

  • Scene map links character_name to .tscn files.
  • Script map associates .gd files with scenes via linked_scene.

Quick Start

1

Clone the repository

git clone https://github.com/kristianmandrup/godot-addon-character-setup
2

Install dependencies

cd godot-addon-character-setup
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerkristianmandrup
Repogodot-addon-character-setup
LanguageGDScript
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation