Add Variables Management System with Automatic Substitution#4
Draft
codegen-sh[bot] wants to merge 2 commits intomainfrom
Draft
Add Variables Management System with Automatic Substitution#4codegen-sh[bot] wants to merge 2 commits intomainfrom
codegen-sh[bot] wants to merge 2 commits intomainfrom
Conversation
- Created backend variable controller and service for CRUD operations - Added frontend VariablesPage with Add/Edit/Delete functionality - Integrated Variables tab in navigation with tag icon - Added variable substitution logic in server creation/update - Variables stored in variables.json with secure display in UI - Automatic substitution of environment variables in server configs Co-authored-by: Zeeeepa <zeeeepa@gmail.com>
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
- Add GitHub installation service with repository cloning and analysis - Add GitHub installation endpoints to server controller and routes - Create GitHubInstallDialog component for frontend installation - Enhance ServerCard with GitHub badges and uninstall functionality - Add Install from GitHub button to ServersPage - Support for Node.js and Python project detection and building - Automatic server configuration generation from installed projects - Visual indicators for GitHub-installed servers with yellowish background Co-authored-by: Zeeeepa <zeeeepa@gmail.com>
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.
🔧 Variables Management System
This PR implements a comprehensive Saved Variables system that allows users to store environment variables (like API keys) and automatically substitute them in server configurations.
✨ Key Features
Backend Implementation
/variables)variables.jsonwith automatic substitution logicFrontend Implementation
Automatic Substitution
server.env🎯 User Experience
GEMINI_API_KEY→your_actual_api_key_hereGEMINI_API_KEY=placeholdervariables.json📁 Files Added/Modified
Backend:
src/controllers/variableController.ts- CRUD endpointssrc/services/variableService.ts- Core logic & substitutionsrc/routes/index.ts- API routessrc/controllers/serverController.ts- IntegrationFrontend:
frontend/src/pages/VariablesPage.tsx- Main interfacefrontend/src/components/AddVariableDialog.tsx- Add dialogfrontend/src/components/EditVariableDialog.tsx- Edit dialogfrontend/src/App.tsx- Route configurationfrontend/src/components/layout/Sidebar.tsx- Navigation🔒 Security Features
This sets the foundation for the GitHub installation system by providing secure variable management that will be essential for storing API keys and tokens needed by installed MCP servers.
💻 View my work • 👤 Initiated by @Zeeeepa • About Codegen
⛔ Remove Codegen from PR • 🚫 Ban action checks
Description by Korbit AI
What change is being made?
Add a Variables Management System to the application, enabling automatic substitution of variables within server configurations.
Why are these changes being made?
To allow users to manage environment variables such as API keys directly from the application, facilitating secure and consistent variable usage across server configurations by automating their substitution. This enhancement provides a structured and user-friendly interface for variable management and integrates substitution logic to replace variable placeholders in both server environment variables and command-line arguments.