Add MCP server sharing via shareable links#2269
Draft
gary149 wants to merge 2 commits into
Draft
Conversation
Lets users share a custom MCP server with anyone via a URL-encoded link (/mcp/share?name=...&url=...). Recipient lands on a confirmation page with the server name, URL, a caution about trust, and Add/Cancel buttons. Custom server cards now have a Share button that copies the link to clipboard. Stores nothing server-side: the share URL carries name + URL only, auth headers are never included so secrets don't leak. Page sets its own OG/Twitter meta tags for link previews; layout default meta tags are skipped on this path.
Render the existing MCP server Modal with a pre-filled AddServerForm instead of a bespoke card, so the recipient sees the exact same UI (fields, headers details, warning, buttons) as the in-app Add Server modal. The recipient can still add headers before confirming.
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 the ability to share custom MCP servers with others via shareable links. Users can now generate a link for any custom MCP server that can be shared with others, who can then review and add the server to their instance.
Key Changes
src/routes/mcp/share/+page.svelte): Modal-based page that handles incoming MCP server share links with validation and a pre-filled form for adding the serversrc/lib/components/mcp/ServerCard.svelte): Added "Share" button to custom server cards that copies a shareable link to clipboard with visual feedbacksrc/routes/mcp/share/+page.ts): Page load handler that validates the shared server URL and name parameters, with proper error handling for invalid linksImplementation Details
nameandurl) on the/mcp/shareroutevalidateMcpServerUrlutilityAddServerFormwith server details for user review before addinghttps://claude.ai/code/session_01FYB4gqX5zm1vZHsejthcG6