MCPcopy Create free account
hub / github.com/chatmcp/mcprouter / FindServerByKey

Function FindServerByKey

model/server.go:59–66  ·  view source on GitHub ↗
(serverKey string)

Source from the content-addressed store, hash-verified

57}
58
59func FindServerByKey(serverKey string) (*Server, error) {
60 server := &Server{}
61
62 err := db().Where("server_key = ?", serverKey).
63 First(server).Error
64
65 return server, err
66}
67
68func GetServers(page int, limit int) ([]*Server, error) {
69 if page <= 0 {

Callers 1

getDBServerConfigFunction · 0.92

Calls 1

dbFunction · 0.85

Tested by

no test coverage detected