Merged
Conversation
When the user leaves the Project ID prompt blank, the wizard now calls vServer /v1/projects (using the just-entered credentials and region's vServer endpoint) and saves the single returned project. Each user is expected to have exactly one project per region, so using the first result is unambiguous. If auto-detect fails (bad creds, no network, no project), the wizard prints a warning and leaves the field blank — downstream tools (greenode-mcp-server) can still fall back to auto-detect at call time. - `go/cmd/configure/detect_project.go`: lightweight /v1/projects fetch using the existing auth.TokenManager - `go/cmd/configure/configure.go`: auto-invoke when projectID == "" - Docs + README updated with the new prompt flow Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #13. When the user leaves the Project ID prompt blank,
grn configurenow calls vServer/v1/projectswith the just-entered credentials and region's vServer endpoint, then saves the returned project_id.Each user has exactly one project per region (confirmed), so the first result is unambiguous.
Flow
Failure handling
In all cases the wizard completes successfully; downstream tools (greenode-mcp-server) can still auto-detect at call time.
Changes
go/cmd/configure/detect_project.go: new helper —detectProjectID()andvserverEndpointForRegion()go/cmd/configure/configure.go: invoke auto-detect when projectID is emptyREADME.md+docs/configuration.md: updated wizard output example.changes/next-release/enhancement-configure-*.json: changelog fragmentTest plan
go vet+go buildcleangrn configure listshows the saved value🤖 Generated with Claude Code