Skip to content

fix: mark new MCP versions as latest - #29

Open
sweat123 wants to merge 1 commit into
nacos-group:mainfrom
sweat123:fix/issue-28-latest-version
Open

sweat123 wants to merge 1 commit into
nacos-group:mainfrom
sweat123:fix/issue-28-latest-version

Conversation

@sweat123

Copy link
Copy Markdown

修复 Nacos MCP Server 注册新版本后未自动成为 Latest 的问题。
当 MCP Name 已存在、但当前 version 尚未注册时,在构造 ServerVersionDetail 时增加:

server_version_detail.is_latest = True

新版本发布后会被设置为 Latest,原 Latest 自动转为历史版本。已有 name + version 的注册、兼容性校验、实例注册和订阅逻辑均保持不变。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant