MCPcopy Index your code
hub / github.com/github/github-mcp-server / UIAssetsAvailable

Function UIAssetsAvailable

pkg/github/ui_embed.go:38–41  ·  view source on GitHub ↗

UIAssetsAvailable returns true if the MCP App UI assets have been built. This checks for a known UI asset file to determine if `script/build-ui` has been run. Use this to gracefully skip UI registration when assets aren't available, allowing non-UI features to work without requiring a UI build.

()

Source from the content-addressed store, hash-verified

36// Use this to gracefully skip UI registration when assets aren't available,
37// allowing non-UI features to work without requiring a UI build.
38func UIAssetsAvailable() bool {
39 _, err := GetUIAsset("get-me.html")
40 return err == nil
41}

Calls 1

GetUIAssetFunction · 0.85