(ctx *gin.Context)
| 210 | } |
| 211 | |
| 212 | func (i *imlMcpController) MCPHandle(ctx *gin.Context) { |
| 213 | cfg := i.settingModule.Get(ctx) |
| 214 | |
| 215 | req := ctx.Request.WithContext(utils.SetGatewayInvoke(ctx.Request.Context(), cfg.InvokeAddress)) |
| 216 | mcp_server.ServeHTTP(ctx.Writer, req) |
| 217 | } |
| 218 | |
| 219 | func (i *imlMcpController) ServiceHandleSSE(ctx *gin.Context) { |
| 220 | apikey := ctx.Request.URL.Query().Get("apikey") |