MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / MCPHandle

Method MCPHandle

controller/mcp/iml.go:212–217  ·  view source on GitHub ↗
(ctx *gin.Context)

Source from the content-addressed store, hash-verified

210}
211
212func (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
219func (i *imlMcpController) ServiceHandleSSE(ctx *gin.Context) {
220 apikey := ctx.Request.URL.Query().Get("apikey")

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
ServeHTTPMethod · 0.45

Tested by

no test coverage detected