googleapis/mcp-toolbox · error
failed to find default Google Cloud credentials for project
Error message
failed to find default Google Cloud credentials for project %q: %w
What it means
Error "failed to find default Google Cloud credentials for project %q: %w" thrown in googleapis/mcp-toolbox.
Source
Thrown at internal/sources/datalineage/datalineage.go:108
return s.Config
}
func (s *Source) ProjectID() string {
return s.Project
}
func initLineageConnection(
ctx context.Context,
tracer trace.Tracer,
name string,
project string,
) (*lineage.Client, error) {
ctx, span := sources.InitConnectionSpan(ctx, tracer, SourceType, name)
defer span.End()
cred, err := google.FindDefaultCredentials(ctx, sources.CloudPlatformScope)
if err != nil {
return nil, fmt.Errorf("failed to find default Google Cloud credentials for project %q: %w", project, err)
}
userAgent, err := util.UserAgentFromContext(ctx)
if err != nil {
return nil, err
}
client, err := lineage.NewClient(ctx, option.WithUserAgent(userAgent), option.WithCredentials(cred))
if err != nil {
return nil, fmt.Errorf("failed to create Lineage client for project %q: %w", project, err)
}
return client, nil
}
func (s *Source) SearchLineageStreaming(
ctx context.Context,
parentLocation string,View on GitHub (pinned to 8cc6e09de2)
When it happens
Trigger: Thrown at internal/sources/datalineage/datalineage.go:108 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of googleapis/mcp-toolbox@8cc6e09de2 (2026-09-05).
Data as JSON: /api/errors/1b734a799282653e.
Report an issue: GitHub.