You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary of Changes
This pull request updates the secrets handling mechanism in the MCP API to support multiple secrets per server while maintaining backward compatibility. It introduces a new secretNames field alongside the existing secretName field, migrates existing servers from the old format to the new one, and ensures that both formats are handled gracefully during server creation and updates. The changes are designed to be non-breaking and transparent to existing users.
Findings & Recommendations
[package.json] - Version bump to 1.8.0 Resolution: No action needed. This is a standard version increment for a new feature release.
[src/controllers/mcp.ts] - Exclusion of secretName from response Resolution: No action needed. The controller correctly excludes the deprecated secretName field from responses, ensuring that only the new secretNames format is returned.
[src/services/mcp.ts] - Migration logic for secret names Resolution: No action needed. The migration logic is well-implemented and handles the transition from the old secretName format to the new secretNames format seamlessly. It also persists the migration to the database asynchronously, preventing blocking operations.
[src/services/mcp.ts] - Normalization of secret names during server creation Resolution: No action needed. The normalization logic correctly prioritizes secretNames over secretName for backward compatibility, ensuring that new servers are created with the correct format.
[src/services/mcp.ts] - Normalization of secret names during server updates Resolution: No action needed. The update logic correctly normalizes secret names, ensuring that both old and new formats are handled appropriately during updates.
Approval Status
Status: Approved
Reasoning: The pull request introduces a well-designed and backward-compatible enhancement to the secrets handling mechanism, with appropriate migration strategies and clear separation of concerns. The code is clean, well-documented, and addresses the stated objective effectively.
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
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.
backwards compatible implementation, no change to mcp servers as tool calls were already compatible.