-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add mcp client dropdown configuration #248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a dropdown component to MCP server cards that allows users to add servers to different MCP clients (Cursor, VS Code, and Claude Code). The feature provides client-specific installation methods including deeplinks, CLI commands, and JSON configurations.
Changes:
- Adds utility functions for generating client-specific MCP installation configs and commands
- Creates a custom React hook to manage client installation actions with clipboard copying and deeplink opening
- Implements a dropdown UI component for selecting installation methods
- Integrates the dropdown into the server card component
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| src/lib/mcp/client-configs.ts | Utility functions for generating client-specific configs (deeplinks, CLI commands, JSON) for Cursor, VS Code, and Claude Code |
| src/hooks/use-add-mcp-to-client.ts | Custom hook providing actions to open deeplinks, copy commands, and copy JSON configs with toast notifications |
| src/hooks/tests/use-add-mcp-to-client.test.ts | Comprehensive tests for the hook covering deeplink opening, clipboard copying, and error handling |
| src/components/add-mcp-to-client-dropdown.tsx | Dropdown menu component with client-specific installation options |
| src/app/catalog/components/server-card.tsx | Integrates the dropdown component next to the copy URL button |
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add direct tests for stdio config and remote config with headers, covering code paths that weren't tested through the hook tests. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
kantord
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great job, love it!
Add dropdown clients in the mcp card
Claude code
Kapture.2026-01-19.at.10.54.01.mp4
Cursor
Kapture.2026-01-19.at.10.43.45.mp4
VSCode
Kapture.2026-01-19.at.16.41.23.mp4