MCP Catalogs
首页wcgw screenshot

wcgw

by rusiaaman·660·综合分 54

一个提供Shell和代码编辑功能的MCP服务器,支持AI代理交互式终端访问。

developer-toolsfile-systemai-llm
62
Forks
2
活跃 Issue
1 个月前
最近提交
2 天前
收录于

概述

Wcgw是一个全面的MCP服务器,紧密集成了Shell和代码编辑工具,使AI代理能够直接与您的本地机器交互。它提供对Shell和文件系统的无过滤访问,并具有内置的安全功能,如文件保护和语法检查。该服务器支持交互式命令、并发后台进程,并包含VSCode扩展以增强终端体验。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:AI辅助软件开发,具有迭代代码执行和调试功能
:通过AI命令自动化文件系统操作和批量处理
:交互式Shell访问,能够恢复和共享任务检查点
:这个工具使用安全吗?
:如何监控终端活动?

什么时候选它

当您需要高度交互式的 shell 体验,让人类和 AI 能够控制同一终端,并具备高级文件编辑和任务检查点功能时,选择 wcgw。

什么时候不要选它

如果您需要为 AI 访问设置严格的安全边界,或者工作环境中未过滤的 shell 访问会带来不可接受的风险,应避免使用 wcgw。

此 server 暴露的工具

从 README 抽取出 6 个工具
  • InitializeInitialize(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

可对比工具

mcp-server-shellaidercursorvscode-copilot

安装

安装

**Mac 和 Linux**

  1. 使用 homebrew 安装 uv: brew install uv
  2. ~/Library/Application Support/Claude/ 中创建或更新 claude_desktop_config.json 文件,内容如下:
{
  "mcpServers": {
    "wcgw": {
      "command": "uvx",
      "args": ["--python", "3.12", "wcgw@latest"]
    }
  }
}
  1. 重启 Claude Desktop

**Windows (WSL)**

  1. 安装 [uv](https://docs.astral.sh/uv/getting-started/installation/)
  2. %APPDATA%\Claude\ 中更新 claude_desktop_config.json 文件,内容如下:
{
  "mcpServers": {
    "wcgw": {
      "command": "wsl.exe",
      "args": ["uvx", "--python", "3.12", "wcgw@latest"]
    }
  }
}

FAQ

这个工具使用安全吗?
该工具提供对您的机器Shell和文件的无过滤访问。它不会限制LLM执行任意命令。仅当您完全理解并接受相关风险时才使用它。
如何监控终端活动?
您可以使用VSCode扩展或运行 `screen -x <wcgw_session_name>` 来附加到AI正在使用的终端,让您能够监控或与正在运行的命令交互。

Hacker News 讨论

开发者社区最近的相关讨论。

wcgw 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。