fix(mcp): 修复 Nacos MCP Gateway 解析 Nacos MCP 模版的若干问题 #2388
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe what this PR does / why we need it
Nacos MCP Gateway 的当前实现进行 HTTP 接口转 MCP 服务时,是基于 Higress的 MCP 模版规则进行的,但是 Nacos 采用的模板规则和Higress的模版规则有略微不同,导致部分 Nacos 模版无法被正确解析, HTTP 服务无法正确转化 MCP 服务。
因此本PR主要对这部分内容进行了修正,以及进行了相关的功能增强。
Does this pull request fix one issue?
Describe how you did it
主要包括以下内容:
Nacos MCP 模版规则参考官方文档: MCP 模版配置手册
Describe how to verify it
Special notes for reviews