-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
✨ feat: Configurable MCP Dropdown Placeholder #7988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
follow up here, need to start from latest You can do: git checkout dev
git pull origin dev
git checkout feat-mcp-env
git rebase dev Also this will need a documentation update: You can use this as a reference: |
35361b2
to
414aaf3
Compare
7 tasks
…ection of librechat.yaml rather than .env
… for better type consistency
414aaf3
to
ded7478
Compare
…roved localization
…components for enhanced configuration management
danny-avila
approved these changes
Jun 23, 2025
rhonyabdullah
pushed a commit
to rhonyabdullah/LibreChat
that referenced
this pull request
Jun 27, 2025
* new env variable for mcp label * 🔄 refactor: Update MCPSelect placeholderText to draw from interface section of librechat.yaml rather than .env * 🧹 chore: extract mcpServers schema for better maintainability * 🔄 refactor: Update MCPSelect and useMCPSelect to utilize TPlugin type for better type consistency * 🔄 refactor: Pass placeholder from startupConfig to MCPSubMenu for improved localization * 🔄 refactor: Integrate startupConfig into BadgeRowContext and related components for enhanced configuration management --------- Co-authored-by: mwbrandao <[email protected]> Co-authored-by: Danny Avila <[email protected]>
kenshinsamue
pushed a commit
to intelequia/LibreChat
that referenced
this pull request
Aug 4, 2025
* new env variable for mcp label * 🔄 refactor: Update MCPSelect placeholderText to draw from interface section of librechat.yaml rather than .env * 🧹 chore: extract mcpServers schema for better maintainability * 🔄 refactor: Update MCPSelect and useMCPSelect to utilize TPlugin type for better type consistency * 🔄 refactor: Pass placeholder from startupConfig to MCPSubMenu for improved localization * 🔄 refactor: Integrate startupConfig into BadgeRowContext and related components for enhanced configuration management --------- Co-authored-by: mwbrandao <[email protected]> Co-authored-by: Danny Avila <[email protected]>
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.
Related to #7964
Summary
This PR introduces support for configuring the default MCP server selection label via the
librechat.yaml
interface configuration (using a newmcpServers.placeholder
field). This enables the MCPSelect label to be customized directly through YAML-based configuration, supporting better flexibility and future enhancements to MCP server UI configuration.Changes:
mcpServers.placeholder
to the interface schema (packages/data-provider/src/config.ts
)librechat.example.yaml
with a new section for MCP server UI configurationmcpServers
in the interface configuration loaded byapi/server/services/start/interface.js
client/src/components/Chat/Input/MCPSelect.tsx
to usestartupConfig?.interface?.mcpServers?.placeholder
Change Type
Please delete any irrelevant options.
Testing
Test Configuration:
Test Steps:
Add the following to your
librechat.yaml
interface section:Start the LibreChat server
Navigate to a conversation with MCP servers available
Verify that the MCP dropdown shows "Custom Label" instead of the default "MCP Servers"
Fallback Testing:
mcpServers
configuration from the YAMLConfiguration Validation:
Checklist