Skip to main content
Glama

MCPJungle mcp gateway

by mcpjungle
Mozilla Public License 2.0
638
  • Apple
version.go960 B
package version import ( "runtime/debug" ) const defaultVersion = "dev" // Version can be overridden at build time using: // go build -ldflags="-X 'github.com/mcpjungle/mcpjungle/pkg/version.Version=v1.2.3'" var Version = defaultVersion // GetVersion returns the version string using build info or fallback to default. func GetVersion() string { if Version != "" && Version != defaultVersion { return NormalizeVersion(Version) } if info, ok := debug.ReadBuildInfo(); ok && info.Main.Version != "" && info.Main.Version != "(devel)" { return NormalizeVersion(info.Main.Version) } return defaultVersion } // NormalizeVersion ensures a consistent version format: // - If version starts with a digit (e.g., "1.2.3"), prefix with 'v' → "v1.2.3" // - Leave values starting with 'v' or non-semver strings untouched func NormalizeVersion(v string) string { if v == "" { return v } if v[0] >= '0' && v[0] <= '9' { return "v" + v } return v }

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/mcpjungle/MCPJungle'

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