Skip to content

Conversation

@continue
Copy link
Contributor

@continue continue bot commented Dec 21, 2025

This PR adds comprehensive documentation for the automatic message normalization feature that fixes Ollama model compatibility issues with MCP tool calling (introduced in PR #9253).

Documentation Updates

1. Troubleshooting Guide ()

Added new section "Ollama MCP tool calling issues" with:

- Explanation of automatic message normalization - **Mistral/Ministral models**: Documents the fix for "Unexpected role 'system' after role 'tool'" errors - **Gemma3 models**: Documents the fix for "Invalid 'tool_calls': unknown variant 'index'" errors - List of verified working Ollama models (DeepSeek V3.1, Qwen3, Mistral Large 3, etc.) - Cross-references to related documentation

2. Ollama Guide ()

Added "MCP Tool Calling Compatibility" subsection:

Highlights that Continue automatically handles model-specific message formatting—no configuration needed by users
  • Explains automatic fixes for Mistral/Ministral and Gemma3 models
  • Links to detailed troubleshooting section
  • Updated existing troubleshooting to reference verified working models

3. MCP Deep Dive ()

Added "Model Compatibility" note:

  • Brief mention that Continue handles Ollama model compatibility automatically
  • Directs users to detailed troubleshooting for specifics

Why These Changes?

The message normalization feature is a significant improvement that makes MCP tool calling work seamlessly with Ollama models that previously failed. Users need to know:

  1. It works automatically - no config changes needed
  2. Which models are affected - Mistral, Ministral, Gemma3
  3. What errors it fixes - specific 400 Bad Request messages
  4. Which models are verified - tested working models list

Documentation Approach

Used Mintlify components (Info, Warning, Accordion) to make information scannable and actionable Connected related docs (troubleshooting ↔ Ollama guide ↔ MCP guide) for easy navigation Troubleshooting = comprehensive; Ollama guide = overview; MCP = brief mention Emphasized "no action required" to reduce support burden

Related


This agent session was co-authored by nate and Continue.


Summary by cubic

Add docs for automatic message normalization that makes MCP tool calling work reliably with Ollama models. Includes troubleshooting for Mistral/Ministral system-message ordering and Gemma3 tool_call index errors, a verified models list, an Ollama guide note that no config is needed, and a brief mention in the MCP deep dive.

Written for commit 0811b73. Summary will update automatically on new commits.

…tion

Document the automatic message normalization feature that fixes
compatibility issues with Ollama models when using MCP tool calling:

- Add comprehensive troubleshooting section for Ollama MCP issues
- Document Mistral/Ministral system message reordering
- Document Gemma3 index field removal
- List verified working models
- Add notes to Ollama guide about automatic MCP compatibility
- Add brief mention in MCP deep dive documentation

Relates to PR #9253

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <[email protected]>
Co-authored-by: nate <[email protected]>
@continue continue bot requested a review from a team as a code owner December 21, 2025 20:52
@continue continue bot requested review from RomneyDa and removed request for a team December 21, 2025 20:52
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Dec 21, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

continue-agent size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant