From 7b7e45c9ed30b0375122c644c82d6bfd59fccd64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93lafur=20B=C3=BAi=20=C3=93lafsson?= Date: Mon, 8 Jun 2026 23:17:41 +0000 Subject: [PATCH] Fix create_note_from_template MCP tool: post templateName/notePath The MCP client posted template/path, but /api/templates/create-note reads templateName/notePath, so every call failed with "HTTP 400: Template name and note path required" before the template was ever loaded. Send the keys the endpoint expects. --- mcp_server/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mcp_server/client.py b/mcp_server/client.py index b97cd5c..69012e3 100644 --- a/mcp_server/client.py +++ b/mcp_server/client.py @@ -254,9 +254,10 @@ class NoteDiscoveryClient: Returns: APIResponse with creation result """ + # The /api/templates/create-note endpoint reads `templateName` and `notePath`. data = { - "template": template_name, - "path": note_path, + "templateName": template_name, + "notePath": note_path, } if variables: data["variables"] = variables