unarchive_cycle
Restore an archived cycle in a project by providing the project and cycle IDs.
Instructions
Unarchive a cycle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | UUID of the project | |
| cycle_id | Yes | UUID of the cycle |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- plane_mcp/tools/cycles.py:304-318 (handler)The `unarchive_cycle` tool handler function. It is decorated with @mcp.tool(), takes project_id and cycle_id as parameters, retrieves the Plane client and workspace slug via get_plane_client_context(), then calls client.cycles.unarchive() to unarchive the cycle. Returns a boolean indicating success.
@mcp.tool() def unarchive_cycle(project_id: str, cycle_id: str) -> bool: """ Unarchive a cycle. Args: workspace_slug: The workspace slug identifier project_id: UUID of the project cycle_id: UUID of the cycle Returns: True if the cycle was unarchived successfully """ client, workspace_slug = get_plane_client_context() return client.cycles.unarchive(workspace_slug=workspace_slug, project_id=project_id, cycle_id=cycle_id) - plane_mcp/tools/__init__.py:36-36 (registration)The tool is registered via `register_cycle_tools(mcp)` call in the `register_tools` function, which is the central registration point for all tools.
register_cycle_tools(mcp) - plane_mcp/tools/cycles.py:20-21 (registration)The `register_cycle_tools` function registers all cycle tools (including unarchive_cycle) by decorating them with @mcp.tool() inside the function.
def register_cycle_tools(mcp: FastMCP) -> None: """Register all cycle-related tools with the MCP server.""" - plane_mcp/tools/cycles.py:17-17 (helper)The `get_plane_client_context` helper is imported and used to get the authenticated Plane client and workspace slug needed for the API call.
from plane_mcp.client import get_plane_client_context