MCPcopy Create free account
hub / github.com/f/mcptools / GetServerCommand

Function GetServerCommand

pkg/alias/alias.go:88–100  ·  view source on GitHub ↗

GetServerCommand retrieves the server command for a given alias.

(aliasName string)

Source from the content-addressed store, hash-verified

86
87// GetServerCommand retrieves the server command for a given alias.
88func GetServerCommand(aliasName string) (string, bool) {
89 aliases, err := Load()
90 if err != nil {
91 return "", false
92 }
93
94 alias, exists := aliases[aliasName]
95 if !exists {
96 return "", false
97 }
98
99 return alias.Command, true
100}

Callers 2

GuardCmdFunction · 0.92
utils.goFile · 0.92

Calls 1

LoadFunction · 0.85

Tested by

no test coverage detected