Skip to content

feat(cli): context7 alias, add/submit, and WinGet packaging - #2950

Open
AMDphreak wants to merge 1 commit into
upstash:masterfrom
AMDphreak:feat/cli-context7-alias-add-winget
Open

feat(cli): context7 alias, add/submit, and WinGet packaging#2950
AMDphreak wants to merge 1 commit into
upstash:masterfrom
AMDphreak:feat/cli-context7-alias-add-winget

Conversation

@AMDphreak

Copy link
Copy Markdown

Summary

Fixes the gaps raised in #2949 at the source:

  • Memorable CLI name: context7 is now a second bin alias alongside ctx7 (npm package name stays ctx7 because context7 is already taken on npm by an unrelated package).
  • Agent-friendly submit: ctx7 add|submit <url> wraps POST /api/v2/add/... with auto-detected kinds (github/gitlab/bitbucket/git/website/openapi/llmstxt), --json, and idempotent 409 handling. MCP gains a matching add-library tool.
  • WinGet path: portable Windows zip builder + Upstash.Context7 manifest templates + cli-portable-release workflow (Homebrew parity). Requires a release asset + optional WINGET_TOKEN for auto-submit.

Notes

  • npm package name context7 is squatted by a third-party CLI (bin: c7). The bin alias unblocks users immediately; reclaiming the package name itself may be possible later via trademark/npm dispute if Upstash holds Context7 trademark rights (not legal advice — flagging as a parallel option).
  • WinGet package will not appear in winget search until maintainers cut a release with the portable zip and complete the winget-pkgs submission (automated when WINGET_TOKEN is set).

Test plan

  • vitest for add-library URL detection / payload shaping
  • ctx7 build; ctx7 add --help / --help show new command + alias note
  • MCP tsc typecheck for add-library tool
  • Maintainers: publish CLI, run CLI portable release workflow, verify winget install Upstash.Context7
  • Live ctx7 add https://github.com/... --json with a real API key

Expose a memorable context7 bin next to ctx7, add authenticated
library submission for agents (add/submit + MCP add-library), and
ship Windows portable/WinGet scaffolding for parity with Homebrew.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant