rad_patch_list
List and manage patches in a Radicle repository to track code changes and collaboration progress. Specify the repository path to view patch details for effective peer-to-peer code collaboration.
Instructions
List patches in a Radicle repository.
Args:
repository_path: Path to the repository (default: current directory)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository_path | No | . |
Implementation Reference
- src/radicle_mcp/server.py:169-185 (handler)The handler function for the rad_patch_list tool, which lists patches in a Radicle repository by running the 'rad patch list' command. It is registered as an MCP tool via the @mcp.tool() decorator. Uses type hints for input schema (repository_path: str).@mcp.tool() async def rad_patch_list(repository_path: str = ".") -> str: """ List patches in a Radicle repository. Args: repository_path: Path to the repository (default: current directory) """ result = await run_rad_command(["rad", "patch", "list"], cwd=repository_path) if result["success"]: if result["stdout"]: return f"📋 Patches in repository:\n{result['stdout']}" else: return "📋 No patches found in repository" else: return f"❌ Failed to list patches: {result['stderr']}"