wslc-mcp

v0.2.0
wslc-mcp Checked 1 day ago Published 4 months ago

MCP server for wslc (WSL containers) — Docker command translation, Compose migration analysis and tool compatibility checks for AI coding agents

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

convert_docker_command

Translate a Docker (or Podman) command into its wslc equivalent for WSL containers on Windows 11. Returns the converted command plus migration notes for flags that are dropped, rewritten or behave differently. Use this whenever a user asks how to run a docker command with wslc, or how to drop Docker Desktop.

ParameterTypeDescription
command *stringThe docker command or multi-line shell script to translate.

analyze_compose

Analyse a docker-compose.yml for migration to wslc. wslc has NO Compose runtime, so this returns an equivalent `wslc run` command per service, the volume/network commands to run first, and every Compose key that cannot be carried over (depends_on, healthcheck, restart, deploy). Use when a user wants to migrate a Compose stack.

ParameterTypeDescription
content *stringFull text of the docker-compose.yml file.

check_tool_compatibility

Check whether a developer tool works with wslc. The rule: CLI-driven tooling ports to wslc, API-driven tooling does not, because wslc is daemonless and exposes no Docker Engine API or socket. Use for questions like "does Testcontainers/Portainer/act work with wslc".

ParameterTypeDescription
tool *stringTool name, e.g. "Testcontainers", "Portainer", "VS Code Dev Containers".

check_devcontainer

Check a devcontainer.json for wslc compatibility and explain the required VS Code setting (dev.containers.dockerPath = wslc). Flags keys that cannot work, such as dockerComposeFile and features.

ParameterTypeDescription
content *stringFull text of devcontainer.json (comments allowed).

get_wslc_limitations

List the known limitations of the wslc preview compared to Docker: no Compose runtime, no restart policies, no --platform, no Docker socket/Engine API, no buildx, and the run flags wslc lacks. Use when a user asks what they give up by switching from Docker Desktop.