MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / MCP

Function MCP

server/mcp.go:10–18  ·  view source on GitHub ↗
(g *gin.RouterGroup)

Source from the content-addressed store, hash-verified

8)
9
10func 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}

Callers 1

InitFunction · 0.70

Calls 2

ErrorStrRespFunction · 0.92
RegisterFunction · 0.92

Tested by

no test coverage detected