Software⏱️ 2 min read📅 2026-05-29

How to Fix: Failed to connect MCP server to VS Code Continue extension on Windows/WSL2

VS Code Continue extension not triggering MCP tools on WSL2 with Ollama model.

Quick Answer: Check the MCP server's port and ensure it is exposed to the host machine, then configure the Continue extension to use the correct protocol.

To resolve the issue of the Continue extension not connecting to your MCP server in VS Code, let's first identify common causes and then walk through a step-by-step solution.

⚠️ Common Causes

  • Insufficient or incorrect MCP server configuration in the Continue extension settings.

🚀 How to Resolve This Issue

Method 1: Configure MCP Server

  1. Step 1: Open the Command Palette in VS Code by pressing `Ctrl+Shift+P` and type 'Continue: Select MCP server'.

Method 2: Update Ollama Models

  1. Step 1: Restart your Docker container for the Ollama models to ensure they are running with the latest configuration.

💡 Conclusion

By following these steps, you should be able to resolve the issue and successfully connect your MCP server to the Continue extension in VS Code.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions