u/cunfu009

Claude Code sometimes calls MCP directly instead of my Skill – how to force the Skill?

I'm an SDET working with AI. I built an MCP (with basic CRUD operations) and a separate Skill (for query + custom logic) on top of Elasticsearch. Both are connected to Claude Code + Minimax 2.7.

The problem: When I ask for a query, Claude Code sometimes uses my Skill, but other times it ignores the Skill and calls the MCP query directly. I added field mappings and simplifications inside the Skill, so if the MCP is called directly, those mappings are skipped and the query fails.

Has anyone else experienced this kind of inconsistent behavior? How do you prevent the model from bypassing the Skill? Do I really have to explicitly call the Skill every time, like /es_query_skill?

Any advice would be appreciated. Thanks!

reddit.com
u/cunfu009 — 17 hours ago