MCPcopy Create free account
hub / github.com/53AI/53AIHub / GetMCPServer

Function GetMCPServer

api/controller/mcp_server.go:29–34  ·  view source on GitHub ↗

GetMCPServer returns the singleton MCP server used by the backend.

()

Source from the content-addressed store, hash-verified

27
28// GetMCPServer returns the singleton MCP server used by the backend.
29func GetMCPServer() *MCPServer {
30 mcpServerOnce.Do(func() {
31 mcpServerInst = newMCPServer()
32 })
33 return mcpServerInst
34}
35
36func newMCPServer() *MCPServer {
37 server := mcp.NewServer(&mcp.Implementation{

Callers

nothing calls this directly

Calls 2

newMCPServerFunction · 0.85
DoMethod · 0.65

Tested by

no test coverage detected