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.
()
| 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. |
| 38 | func UIAssetsAvailable() bool { |
| 39 | _, err := GetUIAsset("get-me.html") |
| 40 | return err == nil |
| 41 | } |