Skip to content

custom.yaml catalog not working in Windows #10

@JohnRDOrazio

Description

@JohnRDOrazio

Hello @theNetworkChuck and thank you for this boilerplate! It was able to get me started in building my own MCP server.

Few things I noticed along the way. I use Windows 11 and Docker Desktop with WSL integration.

  • the WSL path ~\.docker\mcp is not used at all by Docker Desktop, it only uses %USERPROFILE/mcp on the Windows side;
  • creating a custom catalog custom.yaml under %USERPROFILE/mcp/catalogs is not picked up at all by Docker Desktop, not sure if there is any way to tell it to look there too, it seems to only look at %USERPROFILE/mcp/catalogs/docker_mcp.yaml, so in the end I had to paste in the custom tool to the end of the docker_mcp.yaml file
  • when restarting Docker Desktop, it seems to remove any entries that are not in a published catalog, so the custom tool running on the local Docker image needs to be re-added to docker_mcp.yaml every time Docker Desktop is restarted
  • no changes need to be made to any of the Claude Desktop configuration files, the latest format allows for any new tools in the Docker MCP catalog to be picked up automatically, %APPDATA%/Roaming/Claude/claude_desktop_config.json now looks something like this:
    {
        "mcpServers": {
            "MCP_DOCKER": {
                "command": "docker",
                "args": [
                    "mcp",
                    "gateway",
                    "run"
                ],
                "env": {
                    "LOCALAPPDATA": "C:\\Users\\[USER]\\AppData\\Local",
                    "ProgramData": "C:\\ProgramData",
                    "ProgramFiles": "C:\\Program Files"
                }
            }
        }
    }
  • docker mcp ... commands do not work in WSL, since the Docker MCP Toolkit is only on the Windows side, simple solution is to use docker.exe mcp ... and it will invoke the Docker MCP Toolkit from Windows

OS: Windows 11
Docker Desktop: v4.48.0
Claude Desktop: v0.14.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions