MCPcopy Index your code
hub / github.com/modelcontextprotocol/registry / getGitCommitHash

Function getGitCommitHash

deploy/pkg/k8s/registry.go:21–29  ·  view source on GitHub ↗

getGitCommitHash returns the current git commit hash

()

Source from the content-addressed store, hash-verified

19
20// getGitCommitHash returns the current git commit hash
21func getGitCommitHash() string {
22 cmd := exec.Command("git", "rev-parse", "HEAD")
23 output, err := cmd.Output()
24 if err != nil {
25 // Fallback to a default value if git command fails
26 return "unknown"
27 }
28 return strings.TrimSpace(string(output))
29}
30
31// DeployMCPRegistry deploys the MCP Registry to the Kubernetes cluster
32func DeployMCPRegistry(ctx *pulumi.Context, cluster *providers.ProviderInfo, environment string, ingressNginx *helm.Chart, pgCluster *apiextensions.CustomResource) (*corev1.Service, error) {

Callers 1

DeployMCPRegistryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…