Skip to content

Conversation

@peppescg
Copy link
Collaborator

@peppescg peppescg commented Jan 12, 2026

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

@peppescg peppescg self-assigned this Jan 12, 2026
@peppescg peppescg linked an issue Jan 12, 2026 that may be closed by this pull request
@github-actions github-actions bot added the size/M Medium PR: 300-599 lines changed label Jan 12, 2026
@github-actions github-actions bot added size/M Medium PR: 300-599 lines changed and removed size/M Medium PR: 300-599 lines changed labels Jan 19, 2026
@peppescg peppescg marked this pull request as ready for review January 19, 2026 15:46
Copilot AI review requested due to automatic review settings January 19, 2026 15:46
Copy link

Copilot AI left a 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

peppescg and others added 2 commits January 19, 2026 17:04
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>
@github-actions github-actions bot added size/L Large PR: 600-999 lines changed and removed size/M Medium PR: 300-599 lines changed labels Jan 19, 2026
Copy link
Member

@kantord kantord left a 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!

@peppescg peppescg merged commit 8c41882 into main Jan 19, 2026
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Large PR: 600-999 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task] spike how sync the cloud mcp into local clients

3 participants