fix: skip unhealthy or disabled services form nacos and always marshal AllowTools field (#3220)

Co-authored-by: EricaLiu <30773688+Erica177@users.noreply.github.com>
This commit is contained in:
aias00
2026-01-15 10:46:21 +08:00
committed by jingze
parent 5f43dd0224
commit 811179a6a0
2 changed files with 5 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ type McpServerRule struct {
MatchRoute []string `json:"_match_route_,omitempty"`
Server *ServerConfig `json:"server,omitempty"`
Tools []*McpTool `json:"tools,omitempty"`
AllowTools []string `json:"allowTools,omitempty"`
AllowTools []string `json:"allowTools"`
}
type ServerConfig struct {