rad_patch_list
View all patches in a Radicle repository to track code changes and collaboration status.
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 'rad_patch_list' tool. It executes the 'rad patch list' command using the shared run_rad_command helper and formats the output with success/error messages.@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']}"