TC

ttiimmaacc/cinema4d-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

143 stars 28 forks Качество 69 Тренд 2MIT

ttiimmaacc/cinema4d-mcp — это кандидат на сервер MCP, импортированный из https://github.com/ttiimmaacc/cinema4d-mcp.

Обзор

ttiimmaacc/cinema4d-mcp — это кандидат на сервер MCP, импортированный из https://github.com/ttiimmaacc/cinema4d-mcp.

Обзор (машинный перевод)

Cinema4D MCP Server соединяет Cinema 4D с Claude, обеспечивая 3D-манипуляцию с подсказками.

Содержание

  • Компоненты
  • Предварительные требования
  • Установка
  • Настройка
  • Использование
  • Навык агента
  • Разработка
  • Устранение неполадок и отладка
  • Структура файла
  • Команды инструментов
  • Руководство по использованию — практические советы, схемы извлечения и известные проблемы

Компоненты

  1. C4D Plugin: сокетный сервер, который прослушивает команды с MCP-сервера и выполняет их в среде Cinema 4D.
  2. MCP Server: Python-сервер, реализующий протокол MCP и предоставляющий инструменты для интеграции с Cinema 4D.

Предварительные требования

  • Cinema 4D (рекомендуется R2024+)
  • Python 3.10 или выше (для компонента MCP Server)

Установка

Чтобы установить проект, следуйте следующим шагам:

Клонировать Хранилище

Установите пакет сервера MCP

Сделать скрипт оболочки исполняемым

Подготовка

Настройка плагина Cinema 4D

Чтобы настроить плагин Cinema 4D, следуйте следующим шагам:

  1. Скопировать файл плагина: Скопировать файл c4d_plugin/mcp_server_plugin.pyp в папку плагинов Cinema 4D. Путь зависит от вашей операционной системы:
  • macOS: /Users/USERNAME/Library/Preferences/Maxon/Maxon Cinema 4D/plugins/

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Cinema4D MCP — Model Context Protocol (MCP) Server

Cinema4D MCP Server connects Cinema 4D to Claude, enabling prompt-assisted 3D manipulation.

Table of Contents

Components

  1. C4D Plugin: A socket server that listens for commands from the MCP server and executes them in the Cinema 4D environment.
  2. MCP Server: A Python server that implements the MCP protocol and provides tools for Cinema 4D integration.

Prerequisites

  • Cinema 4D (R2024+ recommended)
  • Python 3.10 or higher (for the MCP Server component)

Installation

To install the project, follow these steps:

Clone the Repository

git clone https://github.com/ttiimmaacc/cinema4d-mcp.git
cd cinema4d-mcp

Install the MCP Server Package

pip install -e .

Make the Wrapper Script Executable

chmod +x bin/cinema4d-mcp-wrapper

Setup

Cinema 4D Plugin Setup

To set up the Cinema 4D plugin, follow these steps:

  1. Copy the Plugin File: Copy the c4d_plugin/mcp_server_plugin.pyp file to Cinema 4D’s plugin folder. The path varies depending on your operating system:

    • macOS: /Users/USERNAME/Library/Preferences/Maxon/Maxon Cinema 4D/plugins/
    • Windows: C:\Users\USERNAME\AppData\Roaming\Maxon\Maxon Cinema 4D\plugins\
  2. Start the Socket Server:

    • Open Cinema 4D.
    • Go to Extensions > Socket Server Plugin
    • You should see a Socket Server Control dialog window. Click Start Server.

Claude Desktop Configuration

To configure Claude Desktop, you need to modify its configuration file:

  1. Open the Configuration File:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Alternatively, use the Settings menu in Claude Desktop (Settings > Developer > Edit Config).
  2. Add MCP Server Configuration: For development/unpublished server, add the following configuration:

    "mcpServers": {
      "cinema4d": {
        "command": "python3",
        "args": ["/Users/username/cinema4d-mcp/main.py"]
      }
    }
    
  3. Restart Claude Desktop after updating the configuration file.

Usage

  1. Ensure the Cinema 4D Socket Server is running.
  2. Open Claude Desktop and look for the hammer icon 🔨 in the input box, indicating MCP tools are available.
Открыть полный README на GitHub

Установка

npx @modelcontextprotocol/inspector uv --directory /Users/username/cinema4d-mcp run cinema4d-mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

"mcpServers": { "cinema4d": { "command": "python3", "args": ["/Users/username/cinema4d-mcp/main.py"] } }