Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Jul 22, 2025

Summary

This PR fixes the issue where disabled MCP servers were still starting processes and showing incorrect status indicators in the UI.

Changes

Backend (McpHub.ts)

  • Added disabled state checks in updateServerConnections() method to prevent disabled servers from being connected
  • Disabled servers are no longer passed to the modelcontextprotocol library when initializing connections

Frontend (McpView.tsx)

  • Updated getStatusColor() to return grey color for disabled servers regardless of connection status
  • Modified UI rendering to show minimal interface for disabled servers without error messages or retry buttons
  • Disabled servers now show a clear "Server is disabled" message instead of connection errors
  • Prevented expansion of disabled servers in the UI

Translations

  • Added "disabled" translation key to the MCP translation file for proper internationalization

Testing

  • All existing tests pass
  • Linting passes
  • Type checking passes

Fixes

Fixes #6036


Important

Fixes issue where disabled MCP servers were incorrectly starting processes and showing wrong statuses, with UI and translation updates.

  • Backend (McpHub.ts):
    • Added checks in updateServerConnections() to prevent disabled servers from connecting.
    • Disabled servers are excluded from connections in the modelcontextprotocol library.
  • Frontend (McpView.tsx):
    • getStatusColor() now returns grey for disabled servers.
    • UI for disabled servers shows a minimal interface with a "Server is disabled" message.
    • Prevents expansion of disabled servers in the UI.
  • Translations:
    • Added "disabled" translation key to MCP translation files in multiple languages.

This description was created by Ellipsis for 86de02e. You can customize this summary. It will automatically update as commits are pushed.

…rrect status

- Added disabled state checks in updateServerConnections() to prevent disabled servers from being connected
- Updated frontend getStatusColor() to show grey for disabled servers
- Modified UI rendering to show minimal interface for disabled servers without error messages or retry buttons
- Added translation for disabled server status

Fixes #6036
@roomote roomote bot requested review from cte, jr and mrubens as code owners July 22, 2025 23:08
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working labels Jul 22, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Jul 22, 2025
"retrying": "Wiederhole...",
"retryConnection": "Verbindung wiederholen"
"retryConnection": "Verbindung wiederholen",
"disabled": "Server is disabled"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The string for the key "disabled" is in English ('Server is disabled') in a German locale file. Consider translating it to German (e.g., 'Server deaktiviert')

Suggested change
"disabled": "Server is disabled"
"disabled": "Server deaktiviert"

This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.

"retrying": "Reintentando...",
"retryConnection": "Reintentar conexión"
"retryConnection": "Reintentar conexión",
"disabled": "Server is disabled"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The string "Server is disabled" appears in English within a localization file that's otherwise in Spanish. Consider updating it to a Spanish equivalent (e.g., "Servidor deshabilitado") for consistency.

Suggested change
"disabled": "Server is disabled"
"disabled": "Servidor deshabilitado"

This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.

"retrying": "Nouvelle tentative...",
"retryConnection": "Réessayer la connexion"
"retryConnection": "Réessayer la connexion",
"disabled": "Server is disabled"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new key "disabled" has the value "Server is disabled" in English, while the rest of the translations are in French. Consider using the French equivalent (e.g., "Serveur désactivé") for consistency.

Suggested change
"disabled": "Server is disabled"
"disabled": "Serveur désactivé"

This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.

"retrying": "Riprovo...",
"retryConnection": "Riprova connessione"
"retryConnection": "Riprova connessione",
"disabled": "Server is disabled"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The translation for the "disabled" status is currently in English ('Server is disabled'). Since this file is for the Italian locale, consider translating it into Italian for consistency.

Suggested change
"disabled": "Server is disabled"
"disabled": "Server disabilitato"

This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.

"retrying": "Ponawianie...",
"retryConnection": "Ponów połączenie"
"retryConnection": "Ponów połączenie",
"disabled": "Server is disabled"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new string for the "disabled" key is in English, while the rest of the translations in this file are in Polish. Should this be localized to Polish (e.g., "Serwer jest wyłączony") for consistency?

Suggested change
"disabled": "Server is disabled"
"disabled": "Serwer jest wyłączony"

This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.

"retrying": "重试中...",
"retryConnection": "重试连接"
"retryConnection": "重试连接",
"disabled": "Server is disabled"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the translation for the key "disabled" is in English ('Server is disabled') whereas the rest of the file is in Chinese. If this isn't intentional, please update the text to Chinese (e.g., '已禁用').

Suggested change
"disabled": "Server is disabled"
"disabled": "已禁用"

This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.

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

Labels

bug Something isn't working Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Disabled MCP servers still start processes and show incorrect status indicators

3 participants