rad_help
Access documentation for Radicle commands to understand usage and options for peer-to-peer code collaboration.
Instructions
Get help for Radicle commands.
Args:
command: Specific command to get help for (optional)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | No |
Implementation Reference
- src/radicle_mcp/server.py:255-272 (handler)The handler function for the 'rad_help' tool. It runs 'rad --help' or 'rad <command> --help' using the run_rad_command helper and formats the output. The @mcp.tool() decorator registers it as an MCP tool. The function signature and docstring define the input schema.@mcp.tool() async def rad_help(command: Optional[str] = None) -> str: """ Get help for Radicle commands. Args: command: Specific command to get help for (optional) """ if command: result = await run_rad_command(["rad", command, "--help"]) else: result = await run_rad_command(["rad", "--help"]) if result["success"]: return f"📖 Radicle Help:\n{result['stdout']}" else: return f"❌ Failed to get help: {result['stderr']}"