一键导入
rw-git-mcp-installation
Guides the agent through installing and configuring the rw_git MCP server on the user's system.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guides the agent through installing and configuring the rw_git MCP server on the user's system.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | rw-git-mcp-installation |
| description | Guides the agent through installing and configuring the rw_git MCP server on the user's system. |
rw-git MCP Server Installation GuideThis skill instructs you on how to set up the rw_git Model Context Protocol (MCP) server for a user so that their AI agents can access robust repository analysis tools.
Trigger this skill whenever a user asks to "install rw_git MCP", "connect the git MCP server", or "set up the repo analysis AI tools".
First, identify which AI client the user wants to connect the MCP server to. If they haven't specified, ask them. Common clients include:
Also, ensure the user has Node.js installed, as npx is the recommended and easiest way to run the server. If they don't have Node.js, ask if they have Homebrew or the Dart SDK.
Based on their client and OS, locate the correct MCP configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json.cursor/mcp.json exists in the current workspace. If so, update it.~/.gemini/config/mcp.json or within a plugin configuration.Once the target file is located, use your file editing tools to safely merge the following rw_git configuration block into the mcpServers object.
{
"mcpServers": {
"rw_git": {
"command": "npx",
"args": [
"-y",
"@rw-core/rw-git-mcp"
]
}
}
}
[!WARNING] Do NOT overwrite existing MCP servers in the configuration file. Parse the JSON carefully and only insert or update the
rw_gitkey insidemcpServers.
If the user prefers not to use npx, adjust the command and args accordingly:
command: "rw-git-mcp", args: []command: "rw_git_mcp", args: []After updating the configuration file, instruct the user to restart their AI client (e.g., fully quit and reopen Claude Desktop or reload Cursor).
To proactively verify that the server works on their machine, you can run a quick test via standard input:
echo '{"jsonrpc": "2.0", "id": 1, "method": "prompts/list"}' | npx -y @rw-core/rw-git-mcp
If the command outputs a valid JSON-RPC response containing a prompt named rw-git-mcp-reporting, the installation is successful!
When using rw_git tools, especially code quality tools, be aware that history-scanning tools apply a default commit analysis limit (defaultCommitLimit in lib/src/constants.dart of the rw-git repository — currently 500 commits). If the analysis requires more history, you must explicitly pass a larger limit argument to the tools; each tool's limit parameter description states the current default.