
wcgw
by rusiaaman·★ 660·Score 54
An MCP server providing shell and code editing tools with interactive terminal access for AI agents.
Overview
Wcgw is a comprehensive MCP server that tightly integrates shell and code editing tools, enabling AI agents to interact directly with your local machine. It provides unfiltered access to the shell and file system with built-in safety features like file protection and syntax checking. The server supports interactive commands, concurrent background processes, and includes a VSCode extension for an enhanced terminal experience.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose wcgw when you need a highly interactive shell experience where both human and AI can control the same terminal, with advanced file editing capabilities and task checkpointing.
When NOT to choose this
Avoid wcgw if you need strict security boundaries for AI access, or if you're working in an environment where unfiltered shell access poses unacceptable risks.
Tools this server exposes
6 tools extracted from the READMEInitializeInitialize(any_workspace_path: string, initial_files_to_read: string[], mode_name: 'wcgw'|'architect'|'code_writer', task_id_to_resume: string)Reset shell and set up workspace environment
BashCommandBashCommand(command: string, wait_for_seconds: int?), BashCommand(send_text: string, wait_for_seconds: int?), BashCommand(send_specials: string[], wait_for_seconds: int?)Execute shell commands with timeout control or send input to interactive commands
ReadFilesReadFiles(file_paths: string[])Read content from one or more files
WriteIfEmptyWriteIfEmpty(file_path: string, file_content: string)Create new files or write to empty files
FileEditFileEdit(file_path: string, file_edit_using_search_replace_blocks: string)Edit existing files using search/replace blocks
ReadImageReadImage()Read image files for display/purpose
Comparable tools
Installation
Installation
**Mac and Linux**
- Install
uvusing homebrew:brew install uv - Create or update
claude_desktop_config.jsonin~/Library/Application Support/Claude/with:
{
"mcpServers": {
"wcgw": {
"command": "uvx",
"args": ["--python", "3.12", "wcgw@latest"]
}
}
}- Restart Claude Desktop
**Windows (WSL)**
- Install [uv](https://docs.astral.sh/uv/getting-started/installation/)
- Update
claude_desktop_config.jsonin%APPDATA%\Claude\with:
{
"mcpServers": {
"wcgw": {
"command": "wsl.exe",
"args": ["uvx", "--python", "3.12", "wcgw@latest"]
}
}
}FAQ
- Is this tool safe to use?
- The tool provides unfiltered access to your machine's shell and files. It does not restrict LLMs from executing arbitrary commands. Only use it if you fully understand and accept the associated risks.
- How can I monitor the terminal activity?
- You can use the VSCode extension or run `screen -x <wcgw_session_name>` to attach to the terminal that the AI is using, allowing you to monitor or interact with the running commands.
On Hacker News
Recent discussion from the developer community.
- Story by pcwelder · 2024-11-26
- Story by pcwelder · 2024-11-26
- Story by pcwelder · 2024-10-22
Compare wcgw with
Last updated · Auto-generated from public README + GitHub signals.