Repository navigation
Description
Before submitting your bug report
- I believe this is a bug. I'll try to join the Continue Discord for questions
- I'm not able to find an open issue that reports the same bug
- I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
macOS: Sequoia 15.4.1
VSCode version: 1.101.1
Continue extension version: 1.0.14
name: Local Assistant
version: 1.0.0
schema: v1
models:
- name: Ollama
provider: ollama
model: AUTODETECT
apiBase: http://localhost:11434
context:
- provider: code
- provider: docs
- provider: diff
- provider: terminal
- provider: problems
- provider: folder
- provider: codebase
mcpServers:
- name: MCP_DOCKER
command: docker
args:
- mcp
- gateway
- runDescription
Hi,
today I wanted to test Docker Desktop's MCP Toolkit in combination with Continue. I connected Continue in my VSCode with Docker and installed two sample MCP servers.
Continue recognizes the new MCP server in the config.yaml as MCP_DOCKER. But in the MCP tab, it shows the error:
Failed to connect to "MCP_DOCKER" Error: MCP error -32000:
Connection closed Process output: STDERR: reading registry: reading registry.yaml: SHOME is not defined
I don't know where to fix that. The sample MCP servers I took (DuckDuckGo and Fetch (Reference)) have no configuration options in Docker.
When I tested this setup, but with Claude instead of Continue, it instantly worked, so my guess is that I missed some configuration in Continue, but what?
Thanks for the help!
To reproduce
No response
Activity
Lucidpaper commentedon Jun 26, 2025
mcpServers:
command: docker
args:
worked for me instead of
mcpServers:
command: docker
args:
abbrechen commentedon Jun 26, 2025
@Lucidpaper Thanks for your alternative. It solved the undefined $HOME error.
I was wondering why you have used port 8811 instead of the 11434. I tried both and with the default port, on which my ollama is running on, the number of errors has been reduced to one:
Failed to connect to "MCP_DOCKER" Error: MCP error -32000. Google says that this error is known for a wrong protocol when connecting a MCP client to a server. Turns out, my ollama just has a REST API, but no special one for MCP servers.In the next days, I will try to find a way of running an ollama-mcp server in Docker. One option could be this npm package: https://github.com/rawveg/ollama-mcp
But overall, seems to be an ollama problem, but a Continue.dev problem.
mkschl commentedon Jun 26, 2025
I just added this to the default config:
It works for Docker MCP servers that do not have a configuration like connection string or access tokensHankLeo commentedon Jun 27, 2025
Thanks @mkschl , it works to me by adding ENV $HOME in the
~/.continue/config.yamlabbrechen commentedon Jun 27, 2025
@mkschl Thanks! Defining HOME solved all the problems. All MCP server could be founded.
My config looks like the one from @HankLeo - the standard MCP server config that has been added by Docker Desktop + the environment adjustment.
But why is it solving it? What happens under the hood that the user path is crucial? And if that config snippet is needed, Docker Desktop should add it automatically.
mkschl commentedon Jun 27, 2025
The issue is
continuestarts a subprocess and the environment variables from the parent process seem not be shared to it. This issue has nothing to do with Docker Desktop:). But the docker command needs to have access to its~/.docker/mcp/folder, where all the configuration are storedPatrick-Erichsen commentedon Jun 30, 2025
@mkschl I think that was resolved with #6157
This is still an issue for folks on latest release?
ramkumarar commentedon Jul 6, 2025
Tried this in windows (with WSL running dockers) with both intellij and vscode. Faced following error. I can run docker run mcp from windows command line and it works fine but plugin gives the error
Failed to connect to "MCP_DOCKER" Error: MCP error -32000: Connection closed Process
output: STDERR: docker: unknown command: docker mcp Run 'docker --help' for more
information
My configuration:
thepirateclub commentedon Jul 19, 2025
@ramkumarar
(for windows)
I'm found a solution to this problem. The problem was linked to docker-cli and its environment variables. - docker/cli#6145.
This problem was solved by adding these lines to the env section:
jtabox commentedon Aug 6, 2025
Shouldn't the ProgramData key actually have
ProgramData(C:\\ProgramData) as value?TyroneNel commentedon Nov 4, 2025
This worked for me on vs code continue win 10
github-actions commentedon Feb 3, 2026
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
github-actions commentedon Feb 13, 2026
This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!