MCPcopy Create free account
hub / github.com/github/gh-aw / getCompiledMcpConfigSchema

Function getCompiledMcpConfigSchema

pkg/parser/schema_compiler.go:74–79  ·  view source on GitHub ↗

getCompiledMcpConfigSchema returns the compiled MCP config schema, compiling it once and caching

()

Source from the content-addressed store, hash-verified

72
73// getCompiledMcpConfigSchema returns the compiled MCP config schema, compiling it once and caching
74func getCompiledMcpConfigSchema() (*jsonschema.Schema, error) {
75 mcpConfigSchemaOnce.Do(func() {
76 compiledMcpConfigSchema, mcpConfigSchemaError = compileSchema(mcpConfigSchema, "http://contoso.com/mcp-config-schema.json")
77 })
78 return compiledMcpConfigSchema, mcpConfigSchemaError
79}
80
81// GetCompiledRepoConfigSchema returns the compiled repo config schema, compiling it once and caching
82func GetCompiledRepoConfigSchema() (*jsonschema.Schema, error) {

Callers 1

validateWithSchemaFunction · 0.85

Calls 1

compileSchemaFunction · 0.70

Tested by

no test coverage detected