rad_id
Retrieve the unique Radicle ID of the current node for peer-to-peer code collaboration. Simplify repository management and synchronization across Radicle and GitHub using the MCP Server.
Instructions
Get the current node's Radicle ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/radicle_mcp/server.py:207-217 (handler)The main handler function for the 'rad_id' tool. It runs the 'rad self' command using the shared run_rad_command helper and formats the output, returning the node's Radicle ID or an error message.@mcp.tool() async def rad_id() -> str: """ Get the current node's Radicle ID. """ result = await run_rad_command(["rad", "self"]) if result["success"]: return f"🆔 Your Radicle ID:\n{result['stdout']}" else: return f"❌ Failed to get Radicle ID: {result['stderr']}"