mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 04:37:31 +08:00
fix(golang-filter): fix bug of stop and buffer in decode data (#2754)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user