wcgw
by rusiaaman
Overview
An MCP server that empowers AI chat applications to execute shell commands, edit code, and manage project context on a local machine for development tasks.
Installation
uvx wcgw@latestEnvironment Variables
- OPENAI_MODEL
- OPENAI_API_KEY
- OPENAI_ORG_ID
- EDITOR
- ANTHROPIC_API_KEY
- WCGW_SERVER_INSTRUCTIONS
- SHELL
Security Notes
The server is designed to execute arbitrary shell commands and perform file modifications, which are inherently high-privilege operations. The BashCommand tool allows for execution of any command, posing a significant risk if commands are not carefully reviewed. The README.md explicitly warns against allowing BashCommand without review, as it may result in data loss. The system uses subprocess.run and pexpect.spawn for shell execution. File editing tools also have access to the local filesystem. Internal code uses `eval` for dynamic prompt setting, but within a controlled context and not exposed to arbitrary user input. The server communicates over standard I/O, reducing traditional network attack surface.
Similar Servers
cclsp
MCP server to integrate LLM-based coding agents with Language Server Protocol (LSP) servers for robust symbol resolution and code navigation.
consult-llm-mcp
Facilitates Claude Code to consult powerful external AI models for complex code analysis, debugging, and review tasks.
athena-protocol
This server acts as an AI tech lead, providing expert validation, impact analysis, and strategic guidance to AI coding agents before code changes are made.
mcp-ai-agent-guidelines
A comprehensive framework for building, orchestrating, and validating AI agents and their design processes, with a strong focus on code quality, security, and prompt engineering.