Hey all,
I have a local mcp which have bunch of tools (converted from custom crewai to mcp tools) which uses external api’s. Working fine on individual execution.
I have tasks and agents (5 each) which together creates a coding workflow.
Before when the tools were crewai custom tools the workflow/crew was working properly.
Now that i have converted the tool to mcp tools and am serving them through my mcp locally ‘stdio’ the crew hallucinates a lot and the failure rate is almost 80%.
What it does now after mcp integration,
- loads the tools correctly.
- hallucinates and gives wrong outputs or creates output based on tasks not using tools.
- dosen’t use tools even though explictly prompted in the tasks and agents prompts.
What I have tried.
- Cleaned the prompts. Make it directive.
- give proper names and descriptions to mcp tools.
- explicitly called tools in the tasks and agents prompt.
- Tested tools and mcp with claude, no issues with them.
I run the agent using two crews the first crew has 3 agents and the latter two. Tools are equal no in both crews. Both crew fails and gives hallucinated outputs and not from tools. Sometimes invoke tools , sometimes doesn’t.
Why is this happening and how can i resolve it?