Skip to content

fix: add clipboard fallback for server config copy#1430

Open
william-xue wants to merge 1 commit into
modelcontextprotocol:mainfrom
william-xue:fix/copy-server-config-fallback
Open

fix: add clipboard fallback for server config copy#1430
william-xue wants to merge 1 commit into
modelcontextprotocol:mainfrom
william-xue:fix/copy-server-config-fallback

Conversation

@william-xue
Copy link
Copy Markdown

Summary

  • Add a textarea-based clipboard fallback for copying server config snippets when navigator.clipboard is unavailable.
  • Reuse the same copy path for both “Server Entry” and “Servers File”.
  • Add test coverage for the fallback path.

Fixes #913

Test plan

  • npm test -- Sidebar.test.tsx --runInBand
  • npm test -- --runInBand
  • npm run prettier-check -- client/src/components/Sidebar.tsx client/src/components/__tests__/Sidebar.test.tsx
  • npm run build-client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Servers File Export is Broken

1 participant