[WIP] MCP Client Configuration and Per User Session#21
Closed
[WIP] MCP Client Configuration and Per User Session#21
Conversation
Co-authored-by: mhackermsft <61195478+mhackermsft@users.noreply.github.com>
Co-authored-by: mhackermsft <61195478+mhackermsft@users.noreply.github.com>
Co-authored-by: mhackermsft <61195478+mhackermsft@users.noreply.github.com>
Copilot stopped work on behalf of
mhackermsft due to an error
July 18, 2025 13:45
Owner
|
try again |
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.
Implementing per-user MCP client configuration to allow users to have personalized MCP server configurations with secure parameter storage.
Completed Implementation:
Key Changes Made:
Database & Models:
UserMcpInputmodel with encrypted value storage per userAddUserMcpInputs) for user MCP input storageSecurity Implementation:
EncryptionServicefor secure parameter encryption/decryption using AES-256Core Services:
UserMcpInputServicefor managing user MCP input values with placeholder replacementUserMcpPluginProviderfor per-user MCP plugin initialization with parameter substitutionUserKernelFactoryto create kernels with user-specific pluginsAIServiceto support dynamic kernel updates with user MCP pluginsParameter Replacement Logic:
${input:key}placeholder substitution in:User Interface:
/mcp-configpage for users to configure their MCP parametersIntegration & Compatibility:
Testing & Validation:
"Bearer ${input:api_token}"→"Bearer sk-test987654321"✓Architecture Benefits:
Current State:
This implementation enables users to have personalized MCP server configurations similar to GitHub Copilot and Visual Studio Code, with secure parameter storage and dynamic plugin loading based on user-specific inputs.
Fixes #19.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.