21 Commits

Author SHA1 Message Date
Shutong Wu ea3ce5a7e0 chore(asset-gen): "Asset Gen" tool-group label + regenerate reference docs
- McpToolsSection: add the asset_gen -> "Asset Gen" group display name so
  the tool-group tab no longer falls back to the raw "Asset_gen".
- Update the asset_gen group blurb (registry + CLI) to include audio gen.
- Regenerate the tool reference docs from the Python registry: add the
  missing generate_audio.md and refresh the asset_gen landscape/index.

Claude-Session: https://claude.ai/code/session_015KYy51gwBuhDuLZXXoqc98
2026-07-13 00:29:58 -07:00
Shutong Wu 45e5c883bd chore(review): fold in minor review findings
- standardize 5 stray 'MCP For Unity' doc-comments -> 'MCP for Unity'
- external-analytics: link in-product telemetry doc instead of plain ref
- fetch-stats: anchor output path to import.meta.url (run-from-anywhere)
- zh README: add Docs badge for EN/zh badge-row parity

Claude-Session: https://claude.ai/code/session_01XFiuAUxNS9riUJFFBEHvui
2026-06-27 16:24:16 -07:00
Warlander 0c2e275d9d Cleanup before the PR 2026-05-06 00:16:57 +02:00
Warlander 63731fcd12 Enable project-scoped custom tools in stdio mode
- ToolDiscoveryService: add AppDomain fallback scan for [McpForUnityTool] types
- StdioBridgeHost: include project_scoped_tools flag in heartbeat JSON
- McpToolsSection: update tooltip and default to reflect stdio support
- models.py: add project_scoped_tools field to UnityInstanceInfo
- port_discovery.py: read project_scoped_tools from status JSON
- main.py: enable project-scoped tools when Unity instance requests it
2026-05-05 22:06:10 +02:00
Shutong Wu 1fba42998c Update0503
1.Add Compat based scripts revolving around UnityCompatShims.cs, that will document our current API Compatibility changes in several files.
2.Add custom screenshot folder selection
2026-05-03 18:16:10 -04:00
Shutong Wu e15a377980 Update through field deployment - bug fix / doc update / UX change 2026-03-31 01:08:27 -04:00
Shutong Wu 38a4daeca0 Update on GUI 2026-03-15 19:50:35 -04:00
Shutong Wu b5b58b97a4 [Feature] Manage_graphics (#890)
* Initial update

* Update with docs and fix

* Update on Skybox

* Bug fix and compatability issue

* Update

* Resolve EntityIdToInstance and InstanceIdToObject conflict

* update to revert the changes

Seems EntityId is implicitly casted to Int so no need to prevent it.
2026-03-08 14:40:32 -04:00
Shutong Wu 241118de75 [Feature] manage_camera with cinemachine support (#882)
* Initial commit

* Fix and GUI update

* Updates and bug fix

* Doc update

* Update CameraCreate.cs
2026-03-07 01:53:25 -05:00
Shutong Wu 1cd1807daf Pro builder (#870)
* ProBuilder support initial update

* Bug fix and doc update

* code redundancy fix

* Include temporary bug fix and experimental notice

* Readme update

* Bug fixes

* update

* Update ManageScene.cs
2026-03-06 03:00:13 -05:00
Shutong Wu 852703d842 [Feature] Meta tool: toggle tool context in realtime (#854)
* Initial update on tool list update

* clean up and doc update

* Update for Stdio mode

* UI change and doc update

* fix based on audit

* Update manage_tools.py

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-03 00:07:14 -05:00
David Sarno eeaecba100 Merge branch 'fix/preserve-tool-toggle-state-restarts' of https://github.com/whatevertogo/unity-mcp into fix/723-rebased
# Conflicts:
#	MCPForUnity/Editor/Services/Transport/TransportManager.cs
2026-02-12 14:32:34 -08:00
David Sarno 6347c976a6 fix: add missing using UnityEditor.UIElements for IntegerField
IntegerField lives in UnityEditor.UIElements, not UnityEngine.UIElements.
Without this import the project fails to compile.
2026-02-12 14:28:10 -08:00
Shutong Wu ad3756eecc Bug fix and batch customization (#727)
* Update for UI-based batch execution

* [fix and mod] Bug fix and batch request customization

1. Fix the bug where for certain MacOS user (like me), the GitURLoverride is set to the unity-mcp folder rather than the unity-mcp/Server
2. Customize batch for it to take 0-100 requests. Tested on MacOS.
2026-02-11 19:23:52 -05:00
whatevertogo 3b624c1f43 fix: update tool filtering logic to handle user-specific tool lookups and improve error handling 2026-02-12 00:44:59 +08:00
whatevertogo 09c61e10be fix: avoid duplicate reregistration and harden tool preference tests 2026-02-11 22:04:38 +08:00
whatevertogo c513072213 fix: preserve tool enabled/disabled state across Unity restarts
Fixes #709

- Remove logic in ToolDiscoveryService.EnsurePreferenceInitialized
  that forced built-in tools to be re-enabled on every Unity launch
- Add ReregisterToolsAsync() to IMcpTransportClient for dynamic tool
  list updates when toggles change in the UI
- Implement tool reregistration in WebSocketTransportClient
- Add ReregisterToolsAsync() to McpToolsSection to trigger updates
  when tool toggles are flipped
- Add unit tests for ToolDiscoveryService preference persistence

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 22:04:11 +08:00
dsarno cb1a7dd2a1 feat: improve editor window UI + add transport mismatch warning (#613) 2026-01-22 22:48:03 -08:00
Marcus Sanatan e35ef22aba Add .meta files (#472)
* Add missing meta files

* Re-generate .meta files

It was for safety as some were AI generated before. Only minor changes were made
2025-12-19 18:59:19 -04:00
Shutong Wu 97b85749b5 [FEATURE] Camera Capture (#449)
* Updates on Camera Capture Feature

* Enable Camera Capture through both play and editor mode
Notes: Because the standard ScreenCapture.CaptureScreenshot does not work in editor mode, so we use ScreenCapture.CaptureScreenshotIntoRenderTexture to enable it during play mode.

* The user can access the camera access through the tool menu or through direct LLM calling. Both tested on Windows with Claude Desktop.

* Minor changes

nitpicking changes
2025-12-09 19:00:30 -05:00
Shutong Wu 7f8ca2a3bd [FEATURE] Custom Tool Fix and Add inspection window for all the tools (#414)
* Update .Bat file and Bug fix on ManageScript

* Update the .Bat file to include runtime folder
* Fix the inconsistent EditorPrefs variable so the GUI change on Script Validation could cause real change.

* Further changes

String to Int for consistency

* [Custom Tool] Roslyn Runtime Compilation

Allows users to generate/compile codes during Playmode

* Fix based on CR

* Create claude_skill_unity.zip

Upload the unity_claude_skill that can be uploaded to Claude for a combo of unity-mcp-skill.

* Update for Custom_Tool Fix and Detection

1. Fix Original Roslyn Compilation Custom Tool to fit the V8 standard
2. Add a new panel in the GUI to see and toggle/untoggle the tools. The toggle feature will be implemented in the future, right now its implemented here to discuss with the team if this is a good feature to add;
3. Add few missing summary in certain tools

* Revert "Update for Custom_Tool Fix and Detection"

This reverts commit ae8cfe5e256c70ac4a16c79d50341a39cbac18ba.

* Update README.md

* Reapply "Update for Custom_Tool Fix and Detection"

This reverts commit f423c2f25e9ccff4f3b89d1d360ee9cf13143733.

* Update ManageScript.cs

Fix the layout problem of manage_script in the panel

* Update

To comply with the current server setting

* Update on Batch

Tested object generation/modification with batch and it works perfectly! We should push and let users test for a while and see

PS: I tried both VS Copilot and Claude Desktop. Claude Desktop works but VS Copilot does not due to the nested structure of batch. Will look into it more.

* Revert "Merge pull request #1 from Scriptwonder/batching"

This reverts commit 55ee76810be161d414e1f5f5abaa5ee30ddd0052, reversing
changes made to ae2eedd7fb2c6a66ff008bacac481aefb1b0d176.
2025-12-07 19:38:32 -05:00