An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: AI Agent https://github.com/siyuan-note/siyuan/issues/17797
Daniel4e26cef547c0
diff --git a/kernel/mcp/tools/document.go b/kernel/mcp/tools/document.goindex dee9d9616f..1608628881 100644--- a/kernel/mcp/tools/document.go+++ b/kernel/mcp/tools/document.go@@ -170,7 +170,7 @@ func documentList(args map[string]interface{}) (CallToolResult, error) {var sb strings.Buildersb.WriteString(fmt.Sprintf("Documents in %s (hPath: %s):\n\n", notebook, hPath))for _, f := range files {- sb.WriteString(fmt.Sprintf("- %s (id: %s, hPath: %s)\n", f.Name, f.ID, hPath+"/"+f.Name))+ sb.WriteString(fmt.Sprintf("- %s (id: %s, hPath: %s)\n", f.Name, f.ID, strings.TrimRight(hPath, "/")+"/"+f.Name))}return CallToolResult{Content: []ContentItem{{Type: "text", Text: sb.String()}}}, nil}