MCPcopy Create free account
hub / github.com/boltrunner/gcli2api / DiscoverProjectID

Method DiscoverProjectID

internal/codeassist/client.go:248–330  ·  view source on GitHub ↗

DiscoverProjectID attempts to derive the Google Cloud project ID to use with Code Assist when none is provided. It mirrors the Node implementation: 1) POST :loadCodeAssist {metadata:{pluginType:"GEMINI"}} - if response.cloudaicompanionProject is present, return it 2. else determine default tier from

(ctx context.Context)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 1

doJSONMethod · 0.95

Tested by

no test coverage detected