implement tools resources and prompts for mcp

This commit is contained in:
Timur Gordon
2025-03-14 23:05:55 +01:00
parent 475e812ba3
commit 8b9b0678b8
12 changed files with 748 additions and 7 deletions

View File

@@ -94,6 +94,11 @@ pub fn path_fix_absolute(path string) string {
return "/${path_fix(path)}"
}
// normalize a file path while preserving path structure
pub fn path_fix(path string) string {
return path.trim('/')
}
// remove underscores and extension
pub fn name_fix_no_ext(name_ string) string {