unity-mcp icon indicating copy to clipboard operation
unity-mcp copied to clipboard

Prompt occasionly not working when having multiple MCPs

Open Scriptwonder opened this issue 1 year ago • 4 comments

Image

Hi Justin, just found out that occasionally, if the MCP config has more than one server(other than UnityMCP), the prompt(I used a pretty simple one which is generate a cube), claude desktop will not work and suggests this error. This is rather strange and can you think of any solutions to this? I have tried (1)Config with only UnityMCP and (2)Config as my regular one(filesystem, mcp-installer, ...), and (1) will always work, where (2) will fail some to most of the times.

Scriptwonder avatar Mar 19 '25 16:03 Scriptwonder

How big is the system prompt for the other MCP servers? It could just be that the combined system prompts are pretty huge. I tried to condense mine down to as few tokens as possible while still listing out all the tools

justinpbarnett avatar Mar 19 '25 17:03 justinpbarnett

Have you checked having multiple servers in the config on your end? It also might be due to me using the free account with the rate and token limit. Sorry I did not mention that before.

Scriptwonder avatar Mar 19 '25 17:03 Scriptwonder

ah, yea that's probably the main issue. These MCPs use a lot of context. I'll see if I can help that on my end.

justinpbarnett avatar Mar 19 '25 18:03 justinpbarnett

this should be fixed in PR #11 !

justinpbarnett avatar Mar 20 '25 13:03 justinpbarnett