From bc5f1679d5bb7b749762a722a5bb3d97f0704ffd Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Thu, 26 Mar 2026 23:44:20 -0400 Subject: [PATCH] fix: accept PATCH on /api/tasks/:id (MCP update_task compatibility) The MCP fable_update_task tool calls PATCH /api/tasks/{id} but the route only declared PUT. Adding PATCH to the same handler fixes the 405. Co-Authored-By: Claude Sonnet 4.6 --- src/fabledassistant/routes/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fabledassistant/routes/tasks.py b/src/fabledassistant/routes/tasks.py index 3c639ed..c5b7a0d 100644 --- a/src/fabledassistant/routes/tasks.py +++ b/src/fabledassistant/routes/tasks.py @@ -117,7 +117,7 @@ async def get_task_route(task_id: int): return jsonify(data) -@tasks_bp.route("/", methods=["PUT"]) +@tasks_bp.route("/", methods=["PUT", "PATCH"]) @login_required async def update_task_route(task_id: int): uid = get_current_user_id()