Skip to main content
Glama

get_trackers

Retrieve and format a list of all available trackers in a Redmine project management system using MCP Server for streamlined issue management.

Instructions

取得所有可用的追蹤器列表 Returns: 格式化的追蹤器列表

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "title": "get_trackersArguments", "type": "object" }

Implementation Reference

  • MCP tool handler for 'get_trackers'. Uses RedmineClient to fetch trackers and formats them into a readable table string. Registered via @mcp.tool() decorator.
    @mcp.tool() def get_trackers() -> str: """ 取得所有可用的追蹤器列表 Returns: 格式化的追蹤器列表 """ try: client = get_client() trackers = client.get_trackers() if not trackers: return "沒有找到追蹤器" result = "可用的追蹤器:\n\n" result += f"{'ID':<5} {'名稱':<20} {'預設狀態':<12}\n" result += f"{'-'*5} {'-'*20} {'-'*12}\n" for tracker in trackers: default_status = tracker.get('default_status', {}).get('name', 'N/A') result += f"{tracker['id']:<5} {tracker['name']:<20} {default_status:<12}\n" return result except RedmineAPIError as e: return f"取得追蹤器列表失敗: {str(e)}" except Exception as e: return f"系統錯誤: {str(e)}"
  • RedmineClient helper method that makes the HTTP GET request to '/trackers.json' endpoint to retrieve the list of trackers from Redmine API.
    def get_trackers(self) -> List[Dict[str, Any]]: """取得追蹤器列表""" response = self._make_request('GET', '/trackers.json') return response.get('trackers', [])

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/snowild/redmine-mcp'

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