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)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rad_patch_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository_path | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
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']}"