Skip to content

Conversation

@IvanMurzak
Copy link
Owner

This pull request introduces a new GitHub Actions workflow, copilot-setup-steps.yml, to automate the setup of a persistent Unity Editor and MCP Server environment for use with the GitHub Copilot Coding Agent. The workflow ensures that both services are started as containers, properly licensed and initialized, and persist after the workflow completes, enabling Copilot to connect to them for further automation or testing.

Key changes introduced:

New CI/CD Workflow for Copilot + Unity Integration:

  • Adds .github/workflows/copilot-setup-steps.yml, a comprehensive workflow that provisions and configures both a Unity Editor service container and an MCP Server service container within GitHub Actions. This setup allows for persistent, ready-to-use Unity and MCP services for Copilot integration.

Service Container Management:

  • Implements logic to start the Unity Editor container in a dormant state, injects the necessary Unity license and project files, and then starts Unity in batch mode with a custom initialization method. The MCP Server is also started as a service container, configured to communicate with the Unity Editor over localhost.

Automated License Activation and Project Injection:

  • Automates Unity license activation using game-ci/unity-activate@v2 and securely copies the activated license and Unity project files into the Unity Editor container before startup.

**Robust Initialization and Health

KaiStarkk and others added 4 commits December 8, 2025 18:36
This workflow sets up Unity Editor + MCP Server as GitHub Services,
allowing Copilot to interact with Unity via MCP protocol.

Key features:
- Unity Editor runs as a Service (persists after setup completes)
- Unity-MCP-Server runs as a Service (bridges Copilot to Unity)
- License activation via GameCI with docker cp injection
- Both services accessible on localhost (8080 for MCP, 8090 for Unity)

Tested workflow: https://github.com/KaiStarkk/unity-copilot-docker-demo

Prerequisites:
- UNITY_LICENSE secret (contents of .ulf file)
- UNITY_EMAIL secret
- UNITY_PASSWORD secret
- MCP config in repo settings pointing to localhost:8080
Add copilot-setup-steps.yml for GitHub Copilot coding agent
@IvanMurzak IvanMurzak self-assigned this Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants