feat(website): one-command CLI install + Segment install-intent events on MCP docs#2917
Conversation
…s on MCP docs - MCPInstall: terminal-style 'One-command install' section between the client picker and the step-by-step panel; the setup flag follows the selected client and the section collapses for clients the CLI does not support (cursor, claude, codex, opencode only) - Segment (lazy-loaded @segment/analytics-next): 'Install Command Copied' on the CLI one-liner, 'Install Config Copied' on config code cards (client/mode/caption), 'Install Button Clicked' on the Cursor deeplink - installation.mdx: introduce the CLI as the fastest path Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
✅ Deploy Preview for docsearch-demo ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
vascobettencourt
left a comment
There was a problem hiding this comment.
The quick-install path needs to be limited to the clients the CLI can actually configure. CI is green, but the current UI advertises a nonfunctional install command for every unsupported client.
| </motion.div> | ||
|
|
||
| {/* Fastest path: supported clients include their setup flag; others use the interactive setup. */} | ||
| <AnimatePresence initial={false}> |
There was a problem hiding this comment.
This AnimatePresence always receives a child, so the quick-install panel never exits for unsupported clients. Selecting ChatGPT, Pi, VS Code, Windsurf, Zed, Conductor, Antigravity, or Other still shows npx @docsearch/cli setup and claims it adds the server/rules/skills to that selected client. The unflagged CLI only detects/prompts for Cursor, Claude, Codex, and OpenCode, so it cannot configure the selected unsupported client. Please gate the child on CLI_SUPPORTED_CLIENTS.has(selected.id) (which will also let this exit animation run), as described in the PR summary.
There was a problem hiding this comment.
by default the setup command installs for most agents in the relevant folders.
those that are not listed is because it will justwork™️ without any specific install instructions
…s on MCP docs (#2917) * feat(website): one-command CLI install + Segment install-intent events on MCP docs - MCPInstall: terminal-style 'One-command install' section between the client picker and the step-by-step panel; the setup flag follows the selected client and the section collapses for clients the CLI does not support (cursor, claude, codex, opencode only) - Segment (lazy-loaded @segment/analytics-next): 'Install Command Copied' on the CLI one-liner, 'Install Config Copied' on config code cards (client/mode/caption), 'Install Button Clicked' on the Cursor deeplink - installation.mdx: introduce the CLI as the fastest path Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix: ci * fix: lint * fix sizing * fix * rm: pnpm lock
What
Reworks the Install DocSearch MCP docs (
docs/mcp/installation) so we can see who actually wants to install it, and gives the fastest path.One-command install (design)
MCPInstall, between the client picker and the step-by-step panel —npx @docsearch/cli setup --<client>, with the flag crossfading as you switch clients (mirrors the MCP frontend hero).cursor,claude,codex,opencode— verified againstpackages/docsearch-cliflags) and shows default for the rest.installation.mdxnow introduces the CLI as the fastest path, with plugin/manual as the do-it-yourself routes.Segment install-intent events
@segment/analytics-nextbehind a small lazy-loaded, SSR-safe helper (src/lib/segment.js) — Segment only loads on the first tracked interaction.context.pagetells them apart):Install Command Copied— CLI one-liner copy (client,command)Install Config Copied— any config code-card copy (client,mode,caption)Install Button Clicked— Cursor one-click deeplink (client,mode)Why based on
feat/docusaurus-adapter-v5The website only builds with the migrated
themeConfigshape from #2904, so this stacks on top of it and should merge after it.Test plan
bun run buildinpackages/website— client + SSR compile, static build succeeds🤖 Generated with Claude Code