googleapis/mcp-toolbox · error

unable to create connection driver: %w

Error message

unable to create connection driver: %w

What it means

Error "unable to create connection driver: %w" thrown in googleapis/mcp-toolbox.

Source

Thrown at internal/sources/neo4j/neo4j.go:202

	}
	return children
}

func initNeo4jDriver(ctx context.Context, tracer trace.Tracer, uri, user, password, name string) (neo4j.Driver, error) {
	//nolint:all // Reassigned ctx
	ctx, span := sources.InitConnectionSpan(ctx, tracer, SourceType, name)
	defer span.End()

	auth := neo4j.BasicAuth(user, password, "")
	userAgent, err := util.UserAgentFromContext(ctx)
	if err != nil {
		return nil, err
	}
	driver, err := neo4j.NewDriver(uri, auth, func(config *neo4jconf.Config) {
		config.UserAgent = userAgent
	})
	if err != nil {
		return nil, fmt.Errorf("unable to create connection driver: %w", err)
	}
	return driver, nil
}

View on GitHub (pinned to 8cc6e09de2)

When it happens

Trigger: Thrown at internal/sources/neo4j/neo4j.go:202 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/05a6c13b0ff49aad. Report an issue: GitHub.