Similarityoung opened a new pull request, #757: URL: https://github.com/apache/dubbo-go-pixiu/pull/757
<!-- Thanks for sending a pull request! --> **What this PR does**: This pull request introduces a new provider-agnostic MCP registry controller framework and a Nacos-specific implementation, along with several utility and conversion functions for handling registry configuration. It also updates the `go.mod` dependencies, adding new packages for Nacos v2 and Alibaba Cloud, while cleaning up unused or outdated dependencies. The changes are grouped into three main themes: registry controller framework, Nacos registry integration, and dependency updates. **Registry controller framework:** * Added a provider-agnostic registry controller interface (`Controller`), a builder function type (`BuildFunc`), and a factory for provider registration and controller instantiation in `pkg/adapter/mcpserver/registry/controller.go` and `pkg/adapter/mcpserver/registry/factory.go`. [[1]](diffhunk://#diff-c8c5eebf84e35c0e7233f9f46f5e5737bd4054c263e2848618eda72299395134R1-R21) [[2]](diffhunk://#diff-90a620bb0f303601f04a93eb3ccd55161d48c0a93255b4c1dc272c71b548d174R1-R24) **Nacos registry integration:** * Implemented Nacos registry controller, including provider registration, controller lifecycle management, service discovery, and change notification in `pkg/adapter/mcpserver/registry/nacos/adapter.go` and `pkg/adapter/mcpserver/registry/nacos/controller.go`. [[1]](diffhunk://#diff-063f812f376b8c965e0e0db94cfeb0add690c7a43a059c0708a09866677aec50R1-R71) [[2]](diffhunk://#diff-057c08631735ab26fea60c2b028ace192c34ea0ce011ce6b88efbf4b50da7767R1-R135) * Added conversion logic for Nacos tool specifications to Pixiu tool configuration, including template parsing and argument extraction, in `pkg/adapter/mcpserver/registry/nacos/converter.go`. * Defined Nacos configuration data structures for tools, templates, and metadata in `pkg/adapter/mcpserver/registry/nacos/types.go`. * Added a utility function to parse host and port from URLs or address strings in `pkg/adapter/mcpserver/common/url.go`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org