-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Description
Is your feature request related to a problem? Please describe.
Nacos目前目前支持3种方式的MCP服务注册方式, Spring AI的自动注册,存量HTTP API转换,以及手动录入MCP服务。
对于手动录入MCP服务,可以通过解析标准MCP Registry Json 数据的方式,一键导入MCP服务的声明从而减少用户录入MCP服务的手工操作。提升录入MCP服务的效率。
Nacos currently supports three methods for MCP service registration: Spring AI automatic registration, legacy HTTP API conversion, and manual entry of MCP services.
For manual entry of MCP services, users can parse standard MCP Registry JSON data and import MCP service declarations with one click, significantly reducing manual operations and improving the efficiency of MCP service registration.
Describe the solution you'd like
根据MCP Registry API的标准,解析API所返回的MCP JSON对象,并自动生成Nacos MCP Server的描述配置,同时进行存储。
According to the MCP Regsitry API specification, Parse the api response json object and auto generate Nacos MCP Server configuration and persist.
Describe alternatives you've considered
需要额外考虑的是导入时的性能问题,根据MCP Registry API的标准,API是可以进行分页查询的,若分页内容过多,导入的数据内容过大可能会对Nacos的性能和稳定性造成影响。
因此需要设计一个机制或者配置,限制单次可导入的MCP服务的个数,甚至一次仅允许导入1个MCP服务。
An additional consideration is the performance impact during imports. According to the MCP Regsitry API specification, APIs support paginated queries. If the paginated content is excessive, importing overly large datasets may adversely affect Nacos’ performance and stability.
Therefore, a mechanism or configuration must be designed to limit the number of MCP services that can be imported in a single batch—or even restrict imports to one MCP service at a time.
Additional context
- Parse MCP Registry API response json object.
- Map and auto generate to Nacos MCP Server configuration and persist.
- Add API to input and handle the MCP Registry API response json object.
- Add relative UI in Nacos Console UI to support user input the json object.