Skip to main content
Glama
default.go820 B
package config import ( "os" "path/filepath" "strings" ) var defaultConfigFile = "~/.config/kube-audit-mcp/config.yaml" func DefaultConfigFile() string { p, err := ExpandPath(defaultConfigFile) if err != nil { return defaultConfigFile } return p } func ExpandPath(path string) (string, error) { if len(path) > 0 && path[0] == '~' { home, err := os.UserHomeDir() if err != nil { return path, err } path = filepath.Join(home, path[1:]) } return path, nil } func ShortHomePath(path string) string { home, err := osUserHomeDir() if err != nil { return path } // Only replace the home directory if the path starts with it if strings.HasPrefix(path, home) { return strings.Replace(path, home, "~", 1) } return path } // Variable for mocking in tests var osUserHomeDir = os.UserHomeDir

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mozillazg/kube-audit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server