MCPcopy
hub / github.com/modelcontextprotocol/registry / NewConfig

Function NewConfig

internal/config/config.go:32–41  ·  view source on GitHub ↗

NewConfig creates a new configuration with default values

()

Source from the content-addressed store, hash-verified

30
31// NewConfig creates a new configuration with default values
32func NewConfig() *Config {
33 var cfg Config
34 err := env.ParseWithOptions(&cfg, env.Options{
35 Prefix: "MCP_REGISTRY_",
36 })
37 if err != nil {
38 panic(err)
39 }
40 return &cfg
41}

Callers 11

TestCORSHeadersFunction · 0.92
TestCORSHeaderValuesFunction · 0.92
TestPrometheusHandlerFunction · 0.92
TestListServersEndpointFunction · 0.92
mainFunction · 0.92

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…