Skip to main content
Glama

protolint-mcp

by yoheimuta
slice.go621 B
package stringsutil import "github.com/yoheimuta/protolint/internal/filepathutil" // ContainsStringInSlice searches the haystack for the needle. func ContainsStringInSlice( needle string, haystack []string, ) bool { for _, h := range haystack { if h == needle { return true } } return false } // ContainsCrossPlatformPathInSlice searches the unix path haystack for the cross-platform needle. func ContainsCrossPlatformPathInSlice( needle string, unixPathHaystack []string, ) bool { for _, h := range unixPathHaystack { if filepathutil.IsSameUnixPath(h, needle) { return true } } return false }

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/yoheimuta/protolint'

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