Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:sparkles: Support Model Context Protocol (MCP) https://github.com/siyuan-note/siyuan/issues/13795

Daniel3bd4bc574553
diff --git a/kernel/mcp/tools/types.go b/kernel/mcp/tools/types.go
index 8f1d50d048..e113feebdd 100644
--- a/kernel/mcp/tools/types.go
+++ b/kernel/mcp/tools/types.go
@@ -20,7 +20,7 @@ type Tool struct {
Name string `json:"name"`
Description string `json:"description"`
InputSchema ToolSchema `json:"inputSchema"`
- Handler func(args map[string]interface{}) (CallToolResult, error)
+ Handler func(args map[string]interface{}) (CallToolResult, error) `json:"-"`
}
type ToolSchema struct {