feat:提交并优化mcp配置

This commit is contained in:
piexlMax(奇淼
2025-05-14 12:39:20 +08:00
parent 09603c436e
commit b197a84ef7
2 changed files with 233 additions and 1 deletions

View File

@@ -60,7 +60,18 @@ func (a *AutoCodeTemplateApi) MCPList(c *gin.Context) {
global.GVA_LOG.Error(err.Error())
return
}
response.OkWithData(list, c)
mcpServerConfig := map[string]interface{}{
"mcpServers": map[string]interface{}{
global.GVA_CONFIG.MCP.Name: map[string]string{
"url": baseUrl,
},
},
}
response.OkWithData(gin.H{
"mcpServerConfig": mcpServerConfig,
"list": list,
}, c)
}
// Create