Skip to content

Conversation

Sunrisea
Copy link
Contributor

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

主要包括以下内容:

  • 参数支持通过argsPosition指定传参位置
  • 支持在模版中引用 Nacos 配置内容
  • 修复了模版解析中存在的一些问题

Nacos MCP 模版规则参考官方文档: MCP 模版配置手册

Describe how to verify it

Special notes for reviews

@github-actions github-actions bot added the area/mcp SAA MCP Module label Sep 12, 2025
@Sunrisea Sunrisea changed the title 修复 Nacos MCP Gateway 解析 Nacos MCP 模版的若干问题 fix(mcp):修复 Nacos MCP Gateway 解析 Nacos MCP 模版的若干问题 Sep 12, 2025
@Sunrisea Sunrisea changed the title fix(mcp):修复 Nacos MCP Gateway 解析 Nacos MCP 模版的若干问题 fix(mcp): 修复 Nacos MCP Gateway 解析 Nacos MCP 模版的若干问题 Sep 12, 2025
@Sunrisea
Copy link
Contributor Author

@Aias00 涉及到 Mcp Gateway 的改动, 麻烦review下

Copy link
Collaborator

@Aias00 Aias00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aias00 Aias00 merged commit 416bc09 into alibaba:main Sep 14, 2025
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mcp SAA MCP Module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants