mirror of
https://github.com/shadoll/redmine-mcp.git
synced 2026-08-28 03:27:56 +00:00
14 lines
367 B
Python
14 lines
367 B
Python
import json
|
|
from ..mcp import mcp
|
|
from ..client import _get
|
|
|
|
|
|
@mcp.tool()
|
|
def get_issue_statuses() -> str:
|
|
"""
|
|
Get all available issue statuses in Redmine.
|
|
Use this to find the correct status_id before calling update_issue_status.
|
|
"""
|
|
data = _get("/issue_statuses.json")
|
|
return json.dumps(data["issue_statuses"], ensure_ascii=False, indent=2)
|