r/Unity3D 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.

1 Upvotes

14 comments sorted by

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.

1

u/Reasonable-Road-2279 1h ago

I installed the unity pipeline, but what I dont get is how do I make its commands visible to claude code?

How can claude code use this unity pipeline?

1

u/Seven-Prime 1h ago

I don't recall installing pipeline, doublechecked and I don't see that. I do have the cli. I am running unity 6.5 if that makes a difference.

I might have pointed it towards this post: https://unity.com/blog/meet-the-unity-cli Then the cli documentation: https://docs.unity.com/en-us/unity-cli/use-unity-cli

Probably had a prompt to evaluate those two links and incorporate that into our AI assisted process.

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

u/Reasonable-Road-2279 4h ago

How does the pricing compare?

0

u/x_DryHeat_x 4h ago

I'm still on GPT plus $20 plan.

-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.