Skip to main content
Glama

get_issue

Retrieve detailed information about a specific Redmine issue, including comments and attachments, by providing the issue ID.

Instructions

Returns details of the specified issue, including comments and attachments.

Args:
    issue_id: Issue number

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issue_idYes

Implementation Reference

  • The actual implementation of the get_issue logic, which communicates with the Redmine API via redminelib and handles errors.
    def get_issue(self, issue_id: int) -> Dict[str, Any]:
        try:
            issue = self._redmine.issue.get(
                issue_id, include=["journals", "attachments"]
            )
            return _issue_dict(issue, detailed=True)
        except ResourceNotFoundError:
            raise RedmineError(f"Issue not found: #{issue_id}")
        except (AuthError, ForbiddenError) as e:
            raise RedmineError(f"Authentication failed: {e}") from e
        except Exception as e:
            raise RedmineError(f"get_issue failed: {e}") from e
  • The tool registration for "get_issue" in the MCP interface using the @mcp.tool() decorator.
    @mcp.tool()
    def get_issue(issue_id: int) -> Dict[str, Any]:
        """Returns details of the specified issue, including comments and attachments.
    
        Args:
            issue_id: Issue number
        """
        logger.info(f"tool=get_issue issue_id={issue_id}")
        try:
            return _client().get_issue(issue_id)
        except RedmineError as e:
            logger.error(f"get_issue error: {e}")
            raise

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/daiji-sshr/redmine-mcp-stateless'

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