Skip to main content
Glama
talhaorak

Taiga MCP Bridge

by talhaorak

get_issue_statuses

Retrieve available issue statuses for a specific project using the Taiga MCP Bridge, enabling efficient project management and workflow tracking.

Instructions

Lists the available statuses for issues within a specific project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes
session_idYes

Implementation Reference

  • The handler function for the 'get_issue_statuses' MCP tool. It authenticates the session, retrieves the Taiga client wrapper, and calls the API to list issue statuses for the specified project.
    @mcp.tool("get_issue_statuses", description="Lists the available statuses for issues within a specific project.")
    def get_issue_statuses(session_id: str, project_id: int) -> List[Dict[str, Any]]:
        """Retrieves the list of issue statuses for a project."""
        logger.info(
            f"Executing get_issue_statuses for project {project_id}, session {session_id[:8]}...")
        taiga_client_wrapper = _get_authenticated_client(session_id) # Use wrapper variable name
        try:
            # Use pytaigaclient syntax: client.resource.list(project_id=...)
            statuses = taiga_client_wrapper.api.issue_statuses.list(project_id=project_id)
            # return [s.to_dict() for s in statuses] # Remove .to_dict()
            return statuses # Return directly
        except TaigaException as e:
            logger.error(
                f"Taiga API error getting issue statuses for project {project_id}: {e}", exc_info=False)
            raise e
        except Exception as e:
            logger.error(
                f"Unexpected error getting issue statuses for project {project_id}: {e}", exc_info=True)
            raise RuntimeError(f"Server error getting issue statuses: {e}")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/talhaorak/pytaiga-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server