fix(mcp): harden dashboard dispatch lifecycle

Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
This commit is contained in:
naibaandnaiba/CloudCode committed 2026-07-20 04:32:16 +00:00
1 parent 2640b86d3a
commit 3f6de265a0
48 files changed
+1332 -265

No files matched your search

@@ -0,0 +1,14 @@
package controller
import "encoding/json"
func marshalMCPToolResult(result any) (string, error) {
if result == nil {
return "{}", nil
}
b, err := json.Marshal(result)
if err != nil {
return "", err
}
return string(b), nil
}