fix: 添加占位符字段防止json schema校验失败

This commit is contained in:
piexlMax(奇淼
2025-11-06 17:43:09 +08:00
parent ca0a1250cd
commit 057ad2eeeb
2 changed files with 6 additions and 0 deletions

View File

@@ -52,6 +52,9 @@ func (a *ApiLister) New() mcp.Tool {
**返回数据结构:**
- databaseApis: 数据库中的API记录包含ID、描述、分组等完整信息
- ginApis: gin路由中的API仅包含路径和方法需要AI根据路径自行揣摩路径的业务含义例如/api/user/:id 表示根据用户ID获取用户信息`),
mcp.WithString("_placeholder",
mcp.Description("占位符防止json schema校验失败"),
),
)
}

View File

@@ -46,6 +46,9 @@ func (m *MenuLister) New() mcp.Tool {
- 菜单权限管理:了解系统中所有可用的菜单项
- 导航组件开发:构建动态导航菜单
- 系统架构分析:了解系统的菜单结构和页面组织`),
mcp.WithString("_placeholder",
mcp.Description("占位符防止json schema校验失败"),
),
)
}