feat: add MCP tool and web UI management

This commit is contained in:
lpf
2026-03-07 22:09:52 +08:00
parent cff379809c
commit fb5a228e7d
16 changed files with 1836 additions and 4 deletions

View File

@@ -23,6 +23,10 @@ type ResourceScopedTool interface {
ResourceKeys(args map[string]interface{}) []string
}
type CatalogTool interface {
CatalogEntry() map[string]interface{}
}
func ToolToSchema(tool Tool) map[string]interface{} {
return map[string]interface{}{
"type": "function",