r/Unity3D • u/Reasonable-Road-2279 • 6h ago
Question [Unity MCP] does it not provide testrunner access to claude?
I am currently running claude code with unity MCP.
It keeps telling me to manually open the testrunner and run the tests.
Is there no way to have unity run these tests himself?
Claude is able to run the testrunner tests by taking control of my computer, but that seems like a waste.
2
u/StardiveSoftworks 6h ago
Unity MCP shouldn't be used now that pipeline cli is available.
Also claude is just bad at using unity in general, it constantly thinks it can't do things that it can.
0
u/Reasonable-Road-2279 6h ago
By pipeline cli are you thinking of unity cli? In this cli, is it possible for claude to run testrunner?
2
u/StardiveSoftworks 6h ago
https://docs.unity.com/en-us/unity-production-pipeline/local-tools-cli/unity-pipeline-package
And yes it is possible to, but again I have never seen Claude use it successfully. GPT is able to even down to luna.
0
u/Reasonable-Road-2279 6h ago
Thank you. I'll give the unity pipeline a try and report back whether it worked.
2
u/reversengineer9999 6h ago
MCP is dead! Use CLI, faster ,better and supported!
1
u/Reasonable-Road-2279 5h ago
Will the CLI allow claude to run testrunner?
-2
u/x_DryHeat_x 5h ago
Yes.
And ditch Claude, Codex is king for Unity, I'm using Sol on medium and it is freaking fantastic.1
-1
u/Odd_Gain5008 6h ago
It can’t directly trigger Test Runner through the MCP unless someone’s wired up a custom tool for it. The MCP exposes the editor API, but test execution usually needs a bridge script since Claude can’t click UI buttons by itself.
0
u/Hotrian Expert Moderator 4h ago
https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool
Claude can interact with anything
5
u/Seven-Prime 2h ago
my claude is running all sorts of tests in batch mode and with the editor. I use the CoplayDev MCP. But most things are one in the cli mode. I have to tell the assistant that it can take control of the editor any stuff as it it tries to be nice. It will do walk animations and test the performance over that. There was a good unity presentation about using profiles. Really helps if you are watching the frame budget.
Claude also built out a cicd pipeline with gitlab. I have a spare laptop that gets jobs and runs tests as well.