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.
This commit is contained in:
parent
fd6041d0cc
commit
7b7e45c9ed
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue