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