rad_remote_list
List all remotes in a Radicle repository to manage connections and collaboration across peer-to-peer code networks. Specify the repository path for targeted results.
Instructions
List remotes 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:236-252 (handler)The handler function for the rad_remote_list tool. It executes the 'rad remote' command using the shared run_rad_command helper and formats the output with success/error messages. The @mcp.tool() decorator registers it with the MCP server.@mcp.tool() async def rad_remote_list(repository_path: str = ".") -> str: """ List remotes in a Radicle repository. Args: repository_path: Path to the repository (default: current directory) """ result = await run_rad_command(["rad", "remote"], cwd=repository_path) if result["success"]: if result["stdout"]: return f"🌐 Remotes in repository:\n{result['stdout']}" else: return "🌐 No remotes found in repository" else: return f"❌ Failed to list remotes: {result['stderr']}"