We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/weibaohui/k8m'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
split_and_trim.go•300 B
package utils
import "strings"
// SplitAndTrim 拆分字符串并去除每项前后空白
func SplitAndTrim(s, sep string) []string {
parts := strings.Split(s, sep)
var res []string
for _, p := range parts {
p = strings.TrimSpace(p)
if p != "" {
res = append(res, p)
}
}
return res
}