by rusiaaman
Shell and coding agent on mcp clients
# Add to your Claude Code skills
git clone https://github.com/rusiaaman/wcgwEmpowering chat applications to code, build and run on your local machine.
wcgw is an MCP server with tightly integrated shell and code editing tools.
⚠️ Warning: This MCP server provides unfiltered access to your machine's shell and files. It does not restrict LLMs from executing arbitrary commands or making unintended changes. This tool can be misused by attackers or run dangerous commands if the AI hallucinates. Run this repository only if you fully understand and accept the risks associated with running AI agents with no restrictions.
As of 2026 the reason you could use wcgw is that it provides fully interactive shell experience that you and the agent both can control (including sending key-strokes).
Combined with the wcgw vscode extension that attaches the agent's shell in your editor, you can get the best agentic shell experience that is out there.
The file editing tricks and the general minimalism also helps agent be more productive.

No comments yet. Be the first to share your thoughts!
[6 Oct 2025] Model can now run multiple commands in background. ZSH is now a supported shell. Multiplexing improvements.
[27 Apr 2025] Removed support for GPTs over relay server. Only MCP server is supported in version >= 5.
[24 Mar 2025] Improved writing and editing experience for sonnet 3.7, CLAUDE.md gets loaded automatically.
[16 Feb 2025] You can now attach to the working terminal that the AI uses. See the "attach-to-terminal" section below.
[15 Jan 2025] Modes introduced: architect, code-writer, and all powerful wcgw mode.
[8 Jan 2025] Context saving tool for saving relevant file paths along with a description in a single file. Can be used as a task checkpoint or for knowledge transfer.
[29 Dec 2024] Syntax checking on file writing and edits is now stable. Made initialize tool call useful; sending smart repo structure to claude if any repo is referenced. Large file handling is also now improved.
[9 Dec 2024] Vscode extension to paste context on Claude app
task id". The saved file can be used to do other kinds of knowledge transfer, such as taking help from another AI.screen -x to attach to the terminal that the AI runs commands on. See history or interrupt process or interact with the same terminal that AI uses.First install uv using homebrew brew install uv
(Important: use homebrew to install uv. Otherwise make sure uv is present in a global location like /usr/bin/)
Then create or update claude_desktop_config.json (~/Library/Application Support/Claude/claude_desktop_config.json) with following json.
{
"mcpServers": {
"wcgw": {
"command": "uvx",
"args": ["--python", "3.12", "wcgw@latest"]
}
}
}
Then restart claude app.
Optional: Force a specific shell
To use a specific shell (bash or zsh), add the --shell argument:
{
"mcpServers": {
"wcgw": {
"command": "uvx",
"args": ["--python", "3.12", "wcgw@latest", "--shell", "/bin/bash"]
}
}
}
If there's an error in setting up
uv is installed. Then run 'which uv' in the terminal, and use its output in place of "uv" in the configuration.uv tool run --python 3.12 wcgw runs in your terminal. It should have no output and shouldn't exit.uv version 0.6.0 for which this tool was tested.npx @modelcontextprotocol/inspector@0.1.7 uv tool run --python 3.12 wcgwThis mcp server works only on wsl on windows.
To set it up, install uv
Then add or update the claude config file %APPDATA%\Claude\claude_desktop_config.json with the following
{
"mcpServers": {
"wcgw": {
"command": "wsl.exe",
"args": ["uvx", "--python", "3.12", "wcgw@latest"]
}
}
}
When you encounter an error, execute the command wsl uv --python 3.12 wcgw in command prompt. If you get the error /bin/bash: line 1: uv: command not found, it means uv was not installed globally and you need to point to the correct path of uv.
whereis uv
Example output:
uv: /home/mywsl/.local/bin/uv
wsl /home/mywsl/.local/bin/uv tool run --python 3.12 wcgw
{
"mcpServers": {
"wcgw": {
"command": "wsl.exe",
"args": ["/home/mywsl/.local/bin/uv", "tool", "run", "--python", "3.12", "wcgw"]
}
}
}
Replace /home/mywsl/.local/bin/uv with your actual uv path from step 1.
Wait for a few seconds. You should be able to see this icon if everything goes right.
over here

Then ask claude to execute shell commands, read files, edit files, run your code, etc.
There are three built-in modes. You may ask Claude to run in one of the modes, like "Use 'architect' mode" | Mode | Description | Allows | Denies | Invoke prompt | |-----------------|--------------------------------------------------------------------------