Skip to main content
Glama
slice.go413 B
package utils func Contains[T comparable](slice []T, item T) bool { for _, v := range slice { if v == item { return true } } return false } func RemoveDuplicates[T comparable](slice []T) []T { seen := make(map[T]struct{}) result := make([]T, 0, len(slice)) for _, v := range slice { if _, exists := seen[v]; !exists { seen[v] = struct{}{} result = append(result, v) } } return result }

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