Skip to content

MCP / Agent mode is not working when model file is shared #7143

@Expro

Description

@Expro

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

  1. Download model from gallery
  2. Copy configuration file for downloaded model
  3. Import model by pasting copied configuration file, adding MCP and Agent sections, and changing name (but not changing filename!)
  4. Try to chat with model configured for MCP / Agent mode (Chat view is not showing option to enable MCP)
  5. (optional) Verify logs in debug mode to see no MCP activity happens
  6. (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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions