get_epic
Retrieve detailed information about a specific epic using its ID through the Taiga MCP Bridge, enabling seamless integration with AI systems for project management.
Instructions
Gets detailed information about a specific epic by its ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| epic_id | Yes | ||
| session_id | Yes |
Implementation Reference
- src/server.py:895-913 (handler)The handler function for the 'get_epic' tool. It retrieves the authenticated Taiga client using the provided session_id and calls the Taiga API to get the epic details by its ID.@mcp.tool("get_epic", description="Gets detailed information about a specific epic by its ID.") def get_epic(session_id: str, epic_id: int) -> Dict[str, Any]: """Retrieves epic details by ID.""" logger.info( f"Executing get_epic ID {epic_id} for session {session_id[:8]}...") taiga_client_wrapper = _get_authenticated_client(session_id) # Use wrapper variable name try: # Epics expects epic_id as a positional argument epic = taiga_client_wrapper.api.epics.get(epic_id) # return epic.to_dict() # Remove .to_dict() return epic # Return directly except TaigaException as e: logger.error( f"Taiga API error getting epic {epic_id}: {e}", exc_info=False) raise e except Exception as e: logger.error( f"Unexpected error getting epic {epic_id}: {e}", exc_info=True) raise RuntimeError(f"Server error getting epic: {e}")