Windows Subsystem for Linux
On Windows computers with WSL and at least one Linux distro, SolutionMCP adds the wsl pack: 20 tools to work inside your Linux distros from any AI app. Without a distro, the pack doesn't appear.
What the AI can do
| Tools | What they do |
|---|---|
| wsl_distros, wsl_system_info | List your distros, and show a distro's version, memory, uptime and users. |
| wsl_list, wsl_read, wsl_info | List a folder, read a file, and show a file's details. |
| wsl_find, wsl_grep | Find files by name, and search inside files. |
| wsl_write, wsl_mkdir, wsl_copy, wsl_move | Create and change files and folders. Moving never overwrites a file. |
| wsl_delete | Delete a file or folder for good. It refuses /, the home folder and your Windows drives. |
| wsl_chmod, wsl_chown | Change permissions and owners. |
| wsl_disk_usage | Free space, and the biggest things in a folder. |
| wsl_services, wsl_service_control | List systemd services, and start, stop, restart, enable or disable one. |
| wsl_apt | Search, install, remove and update packages. |
| wsl_power | Shut down WSL, or stop one distro, to free memory. |
| wsl_run | Run any command. Always asks first. |
Good to know
- Leave the distro empty to use your default distro. The AI can name another one, like
Ubuntu-22.04. - Paths can be absolute (
/etc), start with~(your Linux home), or be relative to your Linux home. - Deleting in WSL is permanent: there's no Recycle Bin inside Linux.
- Commands sent to wsl_run are checked against the same blocked list as the terminal tool, so things like
sudoandshutdownare refused. - wsl_apt, wsl_service_control and wsl_chown run as the Linux root user, so they ask first in Balanced mode.
- wsl_services needs systemd, which current Ubuntu on WSL has turned on.
See also Tools for your system.