Repository navigation
feat(mcp): add folder tools, a folder filter and several tags - #342
Merged
Merged
Conversation
- list_folders: list folders, including empty ones, with note and subfolder counts.
- move_folder: move or rename a folder.
- delete_folder: delete an empty folder. It refuses the vault root and any
folder with something in it, through a new require_empty parameter on
DELETE /api/folders/{path}.
- list_notes and search_notes: optional folder and recursive parameters.
The filter matches whole path segments and runs before pagination.
- get_notes_by_tag: optional tags and match (all or any). tag works as before.
- move_note and move_folder: other notes do not change. The result lists the
notes whose path links no longer work, through a new reportBrokenLinks
option on the move endpoints.
Calls that exist today keep working the same way.
Refs gamosoft#337
Owner
|
Thanks a lot @juanlb , this will make its way into the next release (probably next week) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #337
This is the single PR you asked for in #337.
Changes
list_folders: lists folders, including empty ones, with note and subfolder counts.move_folder: moves or renames a folder.delete_folder: deletes an empty folder. It refuses the vault root and any folder with something in it. It uses a new optionalrequire_emptyparameter onDELETE /api/folders/{path}.list_notesandsearch_notes: optionalfolderandrecursiveparameters. The filter matches whole path segments, soworkdoes not returnworkspace. It runs before pagination.get_notes_by_tag: optionaltagsandmatch(allorany).tagworks as before.move_noteandmove_folder: other notes do not change. The result lists the notes whose path links no longer work. It uses a new optionalreportBrokenLinksfield on the move endpoints.No frontmatter in the list calls.
Calls that exist today keep working the same way.
documentation/MCP.mdanddocumentation/API.mdare updated.How I tested it
I ran the app on a test vault and called each tool through the MCP server. I also checked that the existing REST calls return the same responses as before.