refactor, add modularity

This commit is contained in:
sha
2026-03-20 14:09:28 +02:00
parent b56cc63c84
commit 3a701a5280
13 changed files with 354 additions and 273 deletions
+13
View File
@@ -0,0 +1,13 @@
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)