r/unity • u/LetterheadOk9463 • Jul 30 '26
Resources Use Unity CLI not Unity MCP
MCP's tools are hardcoded. Every tool dumps everything the agent could possibly need, whether it's relevant or not. That's why Unity MCP burns through so many tokens.
I got tired of that.
So instead of Unity MCP, I started using Unity CLI. Not because it uses fewer tokens by default, but because it lets you write your own commands.
I started with a meta command: instead of reading the whole command list, the agent searches only what's relevant.
Then I took it further and built a Claude skill that teaches the agent how to use the Unity CLI.Β
The important part:
The skill asks Claude to spot repetitive tasks while working and turn them into new commands (macros). This doesn't shrink token usage on its own, but it organically grows the command library the more its used
The library is small right now, since I can't cover every workflow myself. That's why I'm open-sourcing the whole thing. More users means a better shared macro set for everyone.
Let's see where it goes.
Here is the repo link:
5
u/raszohkir Jul 30 '26
You DID something then you got TIRED of that and then BUILT something? THEN you took it even FURTHER?
Nice story Klaude
-3
1
-4
u/brogam3 Jul 30 '26
idk what kind of logic it is to use a CLI to instrument a game engine. How about just offering an actual API for the engine? I guess a CLI is a kind of API but pretty much the worst most unergonomical kind.
4
u/magic6435 Jul 30 '26
What other api would you want a game engine to have, REST π? Bash commands are the most ergonomic api there is and simple enough for all people and machines to use.
1
u/LetterheadOk9463 Jul 30 '26
Didn't he mean having them built into the engine would be better, i.e. communicate directly to the c++ backend of unity rather than using cli to execute a static c# method which intern calls the c++ api
-1
u/brogam3 Jul 30 '26
how do you think the CLI communicates with the engine? it's not magic, it's using the real API.
0
21
u/QuitsDoubloon87 Jul 30 '26
Or you can learn to code.Β