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)