(g *gin.RouterGroup)
| 8 | ) |
| 9 | |
| 10 | func MCP(g *gin.RouterGroup) { |
| 11 | if !conf.Conf.MCP.Enable { |
| 12 | g.Any("/mcp", func(c *gin.Context) { |
| 13 | common.ErrorStrResp(c, "MCP server is not enabled", 403) |
| 14 | }) |
| 15 | return |
| 16 | } |
| 17 | mcp.Register(g) |
| 18 | } |
no test coverage detected