Skip to main content
Glama

protolint-mcp

by yoheimuta
directories.go570 B
package config import ( "strings" "github.com/yoheimuta/protolint/internal/filepathutil" ) // Directories represents the target directories. type Directories struct { Exclude []string `yaml:"exclude" json:"exclude" toml:"exclude"` } func (d Directories) shouldSkipRule( displayPath string, ) bool { for _, exclude := range d.Exclude { if !strings.HasSuffix(exclude, string(filepathutil.OSPathSeparator)) { exclude += string(filepathutil.OSPathSeparator) } if filepathutil.HasUnixPathPrefix(displayPath, exclude) { 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