Skip to content

feat: add click-to-toggle functionality for MCP servers in dialog#225

Open
ariane-emory wants to merge 5 commits intodevfrom
feat/clickable-dialogue-mcps
Open

feat: add click-to-toggle functionality for MCP servers in dialog#225
ariane-emory wants to merge 5 commits intodevfrom
feat/clickable-dialogue-mcps

Conversation

@ariane-emory
Copy link
Owner

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Makes the entries in the /mcps dialogue clickable to enable or disable the MCP server in question.

  • Add onSelect handler to each MCP option in the /mcps dialog
  • Extract toggle logic into reusable toggle() function
  • Both mouse click and spacebar now use the same toggle logic
  • Dialog remains open after clicking (consistent with spacebar behavior)
  • Prevent concurrent toggles with loading state check

ariane-emory and others added 4 commits March 4, 2026 10:22
- Add onSelect handler to each MCP option in the /mcps dialog
- Extract toggle logic into reusable toggle() function
- Both mouse click and spacebar now use the same toggle logic
- Dialog remains open after clicking (consistent with spacebar behavior)
- Prevent concurrent toggles with loading state check
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.

1 participant