mirror of
https://github.com/shadoll/redmine-mcp.git
synced 2026-08-28 19:43:13 +00:00
refactor, add modularity
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user