Skip to content

feat(cli): add CLI + Skills mode to ctx7 setup#2187

Merged
fahreddinozcan merged 6 commits intomasterfrom
ctx7-1356-ctx7-setup-for-cli
Mar 11, 2026
Merged

feat(cli): add CLI + Skills mode to ctx7 setup#2187
fahreddinozcan merged 6 commits intomasterfrom
ctx7-1356-ctx7-setup-for-cli

Conversation

@fahreddinozcan
Copy link
Contributor

@fahreddinozcan fahreddinozcan commented Mar 10, 2026

Summary

  • Adds MCP vs CLI + Skills mode selection prompt at the start of ctx7 setup
  • CLI + Skills mode authenticates the user and installs the docs skill globally via the standard promptForInstallTargets flow (same as ctx7 skills install)
  • Claude Code moved above Universal in IDE selection order
  • Checkbox selected choices now render in green, consistent with the select prompt style
  • --yes now skips the detected-locations confirmation prompt in promptForInstallTargets

New flags on ctx7 setup

Flag Description
--mcp Skip mode prompt, go straight to MCP server mode
--cli Skip mode prompt, go straight to CLI + Skills mode
--universal Install to Universal (.agents/skills)
--antigravity Install to Antigravity (.agent/skills)
--yes / -y Auto-confirm detected install locations

- 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
@linear
Copy link

linear bot commented Mar 10, 2026

@fahreddinozcan fahreddinozcan changed the title feat(cli): add CLI mode to ctx7 setup with docs skill installation feat(cli): add CLI + Skills mode to ctx7 setup Mar 11, 2026
- 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
"X-Context7-Source": "cli",
"X-Context7-Client-IDE": "ctx7-cli",
"X-Context7-Client-Version": VERSION,
"X-Context7-Transport": "cli",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@fahreddinozcan fahreddinozcan merged commit d418405 into master Mar 11, 2026
4 of 5 checks passed
@fahreddinozcan fahreddinozcan deleted the ctx7-1356-ctx7-setup-for-cli branch March 11, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants