
ext-sakamoro/asepritemcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Aseprite MCP サーバー (Python) — Claude/LLM によるプログラム的なピクセルアート パレット/バッチ/ Luaスクリプトビルダー/エラー処理/テストカバレッジ.
概要
強力な Python MCP (Model Context Protocol) サーバで、Aseprite とのプログラマティック・インタラクションを強化し、エラー処理、コンフィギュレーション管理、バッチ処理などの機能を備えています。 - : JSON/YAML のサポートによる詳細な、アクション可能なエラーメッセージによるカスタム例外 - : パフォーマンスメトリックで構造化されたロギング - : 作成、適用、および色パレットを抽出 - : 複数のファイルを並列に処理 - : クリーンで安全な Lua スクリプト生成 - : 入力検証とパストラバー保護 - : 包括的なユニットテスト - : スプライトを作成し、レイヤーとフレームを追加します - : ピクセル、ライン、長方形、円、および作業を埋めます - :スケーリングとレイヤーのサポートで様々なフォーマットにエクスポート - :GameBoy、NES、PICO-8、CGA、モノクロ、セピア - : カスタムカラースキームを作成および適用 - : 既存の画像から色を抽出 - : スプライトを通して色を置き換える - : アスペクト比を維持する複数のスプライトをサイズ変更 - : 複数のファイルを異なるフォーマットに変換 - :...
概要(AI 翻訳)
macOSセットアップガイド
強力な Python MCP (Model Context Protocol) サーバで、Aseprite とのプログラマティック・インタラクションを強化し、エラー処理、コンフィギュレーション管理、バッチ処理などの機能を備えています。
Â̂ m 点
-️️包括的なエラー処理:詳細、実行可能なエラーメッセージのカスタム例外 -******** 設定管理**: JSON/YAML サポートによるPydanticベースの設定 -** リリース アドバンスト・ロギング**: パフォーマンスメトリックで構造化されたロギング
- ** パレット管理**: カラーパレットの作成、適用、抽出
- ** ⚡ バッチ処理**: 並行して複数のファイルを処理する
- ️️ Lua Script Builder: クリーンで安全な Lua スクリプト生成 -** 強化セキュリティ**:入力検証とパストラバース保護 -** フルテストカバレッジ:包括的なユニットテスト
## アクセサリー
コア描画ツール
- Canvas操作: スプライトを作成し、レイヤーとフレームを追加します。
- 描画ツール:ピクセル、ライン、長方形、サークル、および作業を埋めます
- 輸出用具: スケールとレイヤーサポートで様々なフォーマットにエクスポート
##新しいパレットツール(v2.0)
- プリセットパレット:GameBoy、NES、PICO-8、CGA、モノクロ、セピア
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Aseprite MCP Tools v2.0
A powerful Python MCP (Model Context Protocol) server for programmatic interaction with Aseprite, featuring enhanced error handling, configuration management, batch processing, and more!
🚀 What’s New in v2.0
- 🛡️ Comprehensive Error Handling: Custom exceptions with detailed, actionable error messages
- 🔧 Configuration Management: Pydantic-based settings with JSON/YAML support
- 📝 Advanced Logging: Structured logging with performance metrics
- 🎨 Palette Management: Create, apply, and extract color palettes
- ⚡ Batch Processing: Process multiple files in parallel
- 🏗️ Lua Script Builder: Clean, type-safe Lua script generation
- 🔒 Enhanced Security: Input validation and path traversal protection
- 🧪 Full Test Coverage: Comprehensive unit tests
📋 Features
Core Drawing Tools
- Canvas Operations: Create sprites, add layers and frames
- Drawing Tools: Pixels, lines, rectangles, circles, and fill operations
- Export Tools: Export to various formats with scaling and layer support
New Palette Tools (v2.0)
- Preset Palettes: GameBoy, NES, PICO-8, CGA, Monochrome, Sepia
- Custom Palettes: Create and apply custom color schemes
- Palette Extraction: Extract colors from existing images
- Color Remapping: Replace colors throughout sprites
Batch Processing (v2.0)
- Batch Resize: Resize multiple sprites maintaining aspect ratio
- Batch Export: Convert multiple files to different formats
- Batch Palette Apply: Apply palettes to multiple files
- Custom Scripts: Run Lua scripts on file sets
🔧 Installation
Requirements
- Python 3.13+
- Aseprite (must be installed separately)
Claude Desktop Configuration
Using UV (Recommended)
{
"mcpServers": {
"aseprite": {
"command": "/opt/homebrew/bin/uv",
"args": [
"--directory",
"/path/to/aseprite-mcp",
"run",
"-m",
"aseprite_mcp"
],
"env": {
"ASEPRITE_PATH": "/path/to/aseprite"
}
}
}
}
Using Python
{
"mcpServers": {
"aseprite": {
"command": "python",
"args": ["-m", "aseprite_mcp"],
"cwd": "/path/to/aseprite-mcp",
"env": {
"ASEPRITE_PATH": "/path/to/aseprite"
}
}
}
}
Install Dependencies
pip install -r requirements.txt
⚙️ Configuration
Environment Variables
export ASEPRITE_PATH="/Applications/Aseprite.app/Contents/MacOS/aseprite"
export ASEPRITE_MCP_LOG_LEVEL="INFO"
Configuration File (config.json)
{
"aseprite_path": "/path/to/aseprite",
"canvas": {
"max_width": 10000,
"max_height": 10000
},
"batch": {
"max_parallel_jobs": 4,
"continue_on_error": true
},
"log_level": "INFO",
"security": {
"allowed_directories": ["/home/user/sprites"],
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"aseprite": {
"command": "/opt/homebrew/bin/uv",
"args": [
"--directory",
"/path/to/aseprite-mcp",
"run",
"-m",
"aseprite_mcp"
],
"env": {
"ASEPRITE_PATH": "/path/to/aseprite"
}
}
}
}