MCP / Agent mode is not working when model file is shared
Open
Nobody has claimed this yet.
bug
need-more-information
roadmap
unconfirmed
- Dominant language
- Go
- Stars
- 49.2k
- Forks
- 4.5k
- Avg merge
- 1d 3m
- Merged PRs (30d)
- 239
Description
LocalAI version:
v3.7.0
Describe the bug
If you configure model twice using same model file, and one configuration spec'ed for MCP / Agent mode, LocalAI fails to recognize that and MCP / Agent feature is not working.
To Reproduce
- Download model from gallery
- Copy configuration file for downloaded model
- Import model by pasting copied configuration file, adding MCP and Agent sections, and changing name (but not changing filename!)
- Try to chat with model configured for MCP / Agent mode (Chat view is not showing option to enable MCP)
- (optional) Verify logs in debug mode to see no MCP activity happens
- (optional) Verify configuration of MCP / Agent mode by downloading yet another model from gallery and editing it's original configuration file by pasting MCP and Agent sections.
Expected behavior
One of configurations works in Agent mode (uses MCP), another works in standard way.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.