Merge pull request #237 from olibuijr/fix/mcp-template-create-note-keys

Fix create_note_from_template MCP tool: post templateName/notePath
This commit is contained in:
Guillermo Villar 2026-06-09 10:13:58 +02:00 committed by GitHub
commit a84b59ab24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -254,9 +254,10 @@ class NoteDiscoveryClient:
Returns: Returns:
APIResponse with creation result APIResponse with creation result
""" """
# The /api/templates/create-note endpoint reads `templateName` and `notePath`.
data = { data = {
"template": template_name, "templateName": template_name,
"path": note_path, "notePath": note_path,
} }
if variables: if variables:
data["variables"] = variables data["variables"] = variables