Skip to content

Optionally connect to places other than localhost #109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

michaelnugent
Copy link

This change allows the user to select listening on 0.0.0.0 instead of only loopback. Loopback is left as the default and the python portion's default assumes the hardcoded port on localhost unless cli arguments are passed. Dockerfile (see #108 ) has been updated to pass cli arguments.

Added

  • Network Interface Configuration in Unity MCP Bridge

    • Added toggle option to listen on all network interfaces (0.0.0.0) vs. loopback only (127.0.0.1)
    • Added display of available IP addresses in the editor window
    • Added persistence of network interface settings using EditorPrefs
    • Added helper method to discover available IP addresses on the machine
  • Docker Support for UnityMcpServer

    • Added command-line parameters to specify Unity host and port
    • Added --unity-host parameter to connect to specific Unity Editor hostname/IP
    • Added --unity-port parameter to specify custom port
    • Added --log-level parameter to control logging verbosity
    • Added README.docker.md with Docker configuration instructions
    • Added configuration examples for both Docker and Podman

Changed

  • Modified UnityMcpBridge to support binding to all interfaces
  • Updated Dockerfile to use a flexible ENTRYPOINT that accepts command-line arguments
  • Enhanced connection logging to show the host and port being used
  • Updated UnityMcpServer to explicitly use command-line parameters
  • Improved error messages with more diagnostic information

Security

  • Added warning message when listening on all interfaces
  • Default binding remains on loopback only (127.0.0.1) for security
  • Added documentation about security implications of network exposure

@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

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.

2 participants