From 36806d9e5ca3c8fb5a791ba495d90b59e08d6620 Mon Sep 17 00:00:00 2001 From: Xin Luo <65529035+luoxiner@users.noreply.github.com> Date: Fri, 11 Apr 2025 14:12:51 +0800 Subject: [PATCH] support nacos namespace (#2045) --- plugins/golang-filter/mcp-server/registry/nacos/server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/golang-filter/mcp-server/registry/nacos/server.go b/plugins/golang-filter/mcp-server/registry/nacos/server.go index 7b725a3ab..9812975e7 100644 --- a/plugins/golang-filter/mcp-server/registry/nacos/server.go +++ b/plugins/golang-filter/mcp-server/registry/nacos/server.go @@ -112,6 +112,10 @@ func (c *NacosConfig) ParseConfig(config map[string]any) error { return errors.New("missing serviceMatcher") } + if namespace, ok := config["namespace"].(string); ok { + c.Namespace = &namespace + } + matchers := map[string]string{} for key, value := range serviceMatcher { matchers[key] = value.(string)