Skip to main content
Glama

get_time_entry_activities

Retrieve a formatted list of available time-tracking activities from the Redmine MCP Server, enabling streamlined project management and task monitoring.

Instructions

取得所有可用的時間追蹤活動列表 Returns: 格式化的時間追蹤活動列表

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

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

Implementation Reference

  • MCP tool handler: Retrieves time entry activities from Redmine client and formats them into a readable string table. Registered via @mcp.tool() decorator.
    @mcp.tool() def get_time_entry_activities() -> str: """ 取得所有可用的時間追蹤活動列表 Returns: 格式化的時間追蹤活動列表 """ try: client = get_client() activities = client.get_time_entry_activities() if not activities: return "沒有找到時間追蹤活動" result = "可用的時間追蹤活動:\n\n" result += f"{'ID':<5} {'名稱':<20} {'預設':<8}\n" result += f"{'-'*5} {'-'*20} {'-'*8}\n" for activity in activities: is_default = "是" if activity.get('is_default', False) else "否" result += f"{activity['id']:<5} {activity['name']:<20} {is_default:<8}\n" return result except RedmineAPIError as e: return f"取得時間追蹤活動失敗: {str(e)}" except Exception as e: return f"系統錯誤: {str(e)}"
  • RedmineClient helper method that performs the API GET request to fetch the list of time entry activities from Redmine.
    def get_time_entry_activities(self) -> List[Dict[str, Any]]: """取得時間追蹤活動列表""" response = self._make_request('GET', '/enumerations/time_entry_activities.json') return response.get('time_entry_activities', [])

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