feat(cli): add CLI + Skills mode to ctx7 setup#2187
Merged
fahreddinozcan merged 6 commits intomasterfrom Mar 11, 2026
Merged
Conversation
- Add MCP vs CLI mode selection prompt at the start of setup - CLI mode authenticates user and installs docs skill via promptForInstallTargets - Add --cli, --universal, --antigravity flags to setup command - --yes skips the detected-locations confirmation prompt - Default CLI install scope to global (override with --project) - Fix checkbox selected choices to render in green (consistent with select prompt) - Move Claude Code above Universal in IDE selection order - Add forceUniversal=false option to promptForInstallTargets for setup flow - Add yes? to AddOptions to support auto-confirm in promptForInstallTargets
- Pass apiKey through to resolveCliAuth in CLI mode setup - Store provided API key as bearer token for subsequent API calls - Update cli.mdx and setup.md to reflect both MCP and CLI + Skills modes
…sor for CLI - --api-key works in both MCP and CLI + Skills mode (not MCP-only) - --oauth clarified as MCP-only - Added --cursor to CLI + Skills mode examples (Cursor has a skills directory) - Updated auth table row for ctx7 setup
- Validate /owner/repo format locally before spinner starts, showing consistent error + hint for both "react" and "/react" inputs - Send X-Context7-Source, X-Context7-Client-IDE, X-Context7-Client-Version, and X-Context7-Transport headers on library/docs requests so CLI appears in the admin telemetry dashboard
enesgules
approved these changes
Mar 11, 2026
enesgules
reviewed
Mar 11, 2026
| "X-Context7-Source": "cli", | ||
| "X-Context7-Client-IDE": "ctx7-cli", | ||
| "X-Context7-Client-Version": VERSION, | ||
| "X-Context7-Transport": "cli", |
Collaborator
There was a problem hiding this comment.
maybe we can remove this since this is not an actual transport and not related to mcp? also now we send the source header? wdyt?
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
ctx7 setupdocsskill globally via the standardpromptForInstallTargetsflow (same asctx7 skills install)--yesnow skips the detected-locations confirmation prompt inpromptForInstallTargetsNew flags on
ctx7 setup--mcp--cli--universal.agents/skills)--antigravity.agent/skills)--yes/-y