feat(cli): context7 alias, add/submit, and WinGet packaging - #2950
Open
AMDphreak wants to merge 1 commit into
Open
feat(cli): context7 alias, add/submit, and WinGet packaging#2950AMDphreak wants to merge 1 commit into
AMDphreak wants to merge 1 commit into
Conversation
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>
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
Fixes the gaps raised in #2949 at the source:
context7is now a second bin alias alongsidectx7(npm package name staysctx7becausecontext7is already taken on npm by an unrelated package).ctx7 add|submit <url>wrapsPOST /api/v2/add/...with auto-detected kinds (github/gitlab/bitbucket/git/website/openapi/llmstxt),--json, and idempotent409handling. MCP gains a matchingadd-librarytool.Upstash.Context7manifest templates +cli-portable-releaseworkflow (Homebrew parity). Requires a release asset + optionalWINGET_TOKENfor auto-submit.Notes
context7is 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 searchuntil maintainers cut a release with the portable zip and complete the winget-pkgs submission (automated whenWINGET_TOKENis set).Test plan
vitestforadd-libraryURL detection / payload shapingctx7build;ctx7 add --help/--helpshow new command + alias notetsctypecheck foradd-librarytoolwinget install Upstash.Context7ctx7 add https://github.com/... --jsonwith a real API key