Unity MCP Server

Integrations

  • Supports deployment through Docker with configuration options, allowing the server to be containerized and run in isolated environments.

  • Enables repository interactions for cloning the Unity MCP server codebase as part of the installation process.

  • Supports accessing and cloning the Unity MCP server repository from GitHub as part of the setup workflow.

Smithery.ai용 Unity MCP 서버

Unity 게임 개발을 위한 포괄적인 모델 컨텍스트 프로토콜(MCP) 서버로, 프로젝트 관리, 장면 편집, 프리팹 생성, 스크립트 생성 등을 위한 도구를 제공합니다.

특징

  • 프로젝트 관리 : Unity 프로젝트 생성 및 열기
  • 씬 편집 : Unity 씬을 만들고 수정합니다.
  • 프리팹 생성 : 사용자 정의 가능한 구성 요소로 프리팹을 생성합니다.
  • 스크립트 생성 : 다양한 템플릿(MonoBehaviour, ScriptableObject, EditorWindow)을 사용하여 C# 스크립트를 만듭니다.
  • Smithery.ai 통합 : Smithery.ai 플랫폼과 완벽한 호환성

시작하기

필수 조건

  • Node.js 18 이상
  • Unity 설치됨(실제 Unity 작업을 위해)

설치

  1. 저장소를 복제합니다.

지엑스피1

  1. 종속성 설치:
npm install
  1. 프로젝트를 빌드하세요:
npm run build

서버 실행

지역 개발

npm run dev

Smithery.ai 배포

npm run smithery:start

또는 Docker를 사용하면:

docker-compose up -d

구성

서버는 환경 변수를 통해 구성할 수 있습니다.

  • SMITHERY : Smithery 모드를 활성화하려면 "true"로 설정합니다(WebSocket 전송 사용).
  • PORT : WebSocket 서버 포트(기본값: 3000)
  • UNITY_PROJECTS_PATH : Unity 프로젝트를 저장할 디렉토리
  • SCRIPT_ROOT : 스크립트 템플릿을 저장할 디렉토리

API 도구

Unity 프로젝트 생성

지정된 구성으로 새로운 Unity 프로젝트를 만듭니다.

{ "name": "MyGameProject", "path": "./projects", "unityVersion": "2022.3.5f1" }

오픈 유니티 프로젝트

기존 Unity 프로젝트를 엽니다.

{ "path": "./projects/MyGameProject" }

Unity 씬 만들기

새로운 Unity 장면을 만듭니다.

{ "name": "MainLevel", "projectPath": "./projects/MyGameProject" }

Unity 프리팹 만들기

새로운 Unity 프리팹을 만듭니다.

{ "name": "EnemyCharacter", "projectPath": "./projects/MyGameProject", "components": ["Rigidbody", "MeshRenderer", "BoxCollider"] }

Unity 스크립트 생성

Unity용 새로운 C# 스크립트를 생성합니다.

{ "name": "PlayerController", "projectPath": "./projects/MyGameProject", "scriptType": "MonoBehaviour", "template": "// Optional custom template content" }

도커 지원

Docker를 사용하여 서버를 배포할 수 있습니다.

# Build the Docker image docker build -t unity-mcp-server . # Run the container docker run -p 3000:3000 -d unity-mcp-server

특허

이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 라이선스 파일을 참조하세요.

-
security - not tested
F
license - not found
-
quality - not tested

Smithery.ai와의 자연어 통합을 통해 사용자가 프로젝트를 관리하고, 장면을 편집하고, 프리팹을 만들고, 스크립트를 생성할 수 있게 해주는 Unity 게임 개발을 위한 모델 컨텍스트 프로토콜 서버입니다.

  1. Features
    1. Getting Started
      1. Prerequisites
      2. Installation
      3. Running the Server
    2. Configuration
      1. API Tools
        1. Create Unity Project
        2. Open Unity Project
        3. Create Unity Scene
        4. Create Unity Prefab
        5. Generate Unity Script
      2. Docker Support
        1. License
          ID: x6qf49foir