Skip to main content
Glama
context.go409 B
package config import "context" type configDirPathKey struct{} func withConfigDirPath(ctx context.Context, dirPath string) context.Context { return context.WithValue(ctx, configDirPathKey{}, dirPath) } func ConfigDirPathFromContext(ctx context.Context) string { val := ctx.Value(configDirPathKey{}) if val == nil { return "" } if strVal, ok := val.(string); ok { return strVal } return "" }

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/containers/kubernetes-mcp-server'

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