MCP get_hierarchy command Eats up too much tokens for Semantic search. Please Improve this.
Opened this issue · 0 comments
Aloim commented
The get_hierarchy command does eat ALOT of tokens. and i often exceed it. To be fair, I do use the Semantic search which is the most costly one. But still I'd be happy if you could optimize the command somehow for Semantic searches. Or make a fallback that if the max tokensize is exceeded it uses "cheaper" search methods automatically / asks the user if it should do that instead.
here an example from claudecode:
● UnityMCP - manage_scene (MCP)(action: "get_hierarchy")
⎿ Error: MCP tool "manage_scene" response (29320 tokens) exceeds maximum allowed tokens (25000). Please use pagination, filtering, or limit parameters to
reduce the response size.