Skip to content

Conversation

@xsodus
Copy link
Contributor

@xsodus xsodus commented May 12, 2025

Hi @justinpbarnett,

This pull request introduces support for configuring and managing the VSCode GitHub Copilot client within the UnityMcpBridge project. Key changes include adding a new McpTypes entry for VSCode, implementing VSCode-specific configuration logic, and updating the editor UI to handle VSCode-specific scenarios.

New VSCode Client Support:

  • Added a new McpClient entry for "VSCode GitHub Copilot" with platform-specific configuration paths in McpClients.cs.
  • Introduced a new McpTypes enum value VSCode to distinguish VSCode clients.

VSCode-Specific Configuration Logic:

  • Updated the WriteToConfig method to handle VSCode-specific configuration formats, ensuring proper structure for mcp.servers.unityMCP.
  • Enhanced the CheckMcpConfiguration method to validate VSCode configurations and handle differences in configuration structure compared to other clients.

Editor UI Enhancements:

  • Modified UnityMcpEditorWindow to provide a dedicated "Auto Configure" button and manual setup instructions for VSCode clients. The manual setup includes generating a VSCode-specific user configuration JSON:
"mcp": {
    "servers": {
      "unityMCP": {
        "command": "uv",
        "args": [
          "--directory",
          "/usr/local/bin/UnityMCP/UnityMcpServer/src",
          "run",
          "server.py"
        ]
      }
    }
  }
  • Updated the ManualConfigEditorWindow class to allow inheritance by making its fields and methods protected, enabling potential extension for VSCode-specific manual setup windows.

Thank you for consideration.

xsodus added 6 commits May 12, 2025 08:25
- Updated McpTypes to include VSCode.
- Enhanced McpClients to handle VSCode configuration paths.
- Implemented VSCodeManualSetupWindow for user instructions and JSON configuration.
- Modified UnityMcpEditorWindow to support VSCode-specific setup and configuration.
- Updated .gitignore to include .DS_Store files.
…ndow and override methods for improved functionality
… JSON serialization and improve client type management
@jmeyerworms
Copy link

cool feature ;)

@bhadrik
Copy link

bhadrik commented May 20, 2025

I have created agent inside of Unity instead of managing MCP, check it out here.
https://github.com/bhadrik/unity-autopilot

@elpsykongloo
Copy link

It seems the project maintainer isn't interested in following up on this project further. I sent them a Twitter DM but got no reply - quite disappointing

@Scriptwonder
Copy link
Collaborator

Thank you! Works like a charm on my end.

@Scriptwonder Scriptwonder merged commit 8211d85 into CoplayDev:master Jul 13, 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.

5 participants