fix(golang-filter): fix bug of stop and buffer in decode data (#2754)

This commit is contained in:
Jingze
2025-08-13 11:37:01 +08:00
committed by GitHub
parent 79b3b23aab
commit 247de6a349
2 changed files with 8 additions and 3 deletions

View File

@@ -509,6 +509,11 @@ func (m *McpServerController) constructMcpSessionStruct(mcp *McpServer) string {
}
func (m *McpServerController) constructMcpServerStruct(mcp *McpServer) string {
// if no servers, return empty string
if mcp == nil || len(mcp.Servers) == 0 {
return ""
}
// Build servers configuration
servers := "[]"
if len(mcp.Servers) > 0 {