feat(cli): add @docsearch/cli for MCP setup and search#2911
Merged
Conversation
Add a new @docsearch/cli workspace package that helps users install the hosted DocSearch MCP into their AI agents (Cursor, Claude Code, Codex, OpenCode, Gemini CLI) and query it from the terminal. - setup: interactive scope + agent prompts, git-root project detection, idempotent MCP config/rule/skill writers, --project/--global/--all flags - docs/resolve/query: hosted MCP HTTP client with human and --json output - colored terminal UI: landing wordmark, spinner, and markdown rendering Co-authored-by: Cursor <cursoragent@cursor.com>
✅ Deploy Preview for docsearch-demo ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for docsearch ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Preserve user configuration during setup, return reliable query failures, and ensure release artifacts are validated and published. Co-authored-by: Cursor <cursoragent@cursor.com>
Prepare the first standalone DocSearch CLI package release without versioning the fixed DocSearch package group. Co-authored-by: Cursor <cursoragent@cursor.com>
dylantientcheu
marked this pull request as ready for review
July 9, 2026 19:57
dylantientcheu
requested review from
8bittitan,
NatanTechofNY,
pipeline1987,
shortcuts and
vascobettencourt
as code owners
July 9, 2026 19:57
Co-authored-by: Cursor <cursoragent@cursor.com>
8bittitan
approved these changes
Jul 14, 2026
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
Adds a new
@docsearch/cliworkspace package: an npm CLI (npx @docsearch/cli) that installs the hosted DocSearch MCP into AI coding agents and queries public developer documentation from the terminal.setuppackage.json, then cwd.docs/resolve/query--endpointoverrides it.--jsonemits clean machine-readable results.isErrorresults now return a non-zero process exit, and requests have explicit timeouts and cleanup.Packaging and terminal UX
NO_COLORsupport.prepackrebuilds a cleandist; the package intentionally exposes only its executable.Notes
picocolorsandjsonc-parser.minor).Test plan
bun run --filter @docsearch/cli buildbun run --filter @docsearch/cli test(56 tests)bun run --filter @docsearch/cli test:pack(18-file, 18.2 kB tarball)bun run lintbun run test:typesbun run build