DevJoy.Mcp.Config
0.7.0
dotnet add package DevJoy.Mcp.Config --version 0.7.0
NuGet\Install-Package DevJoy.Mcp.Config -Version 0.7.0
<PackageReference Include="DevJoy.Mcp.Config" Version="0.7.0" />
<PackageVersion Include="DevJoy.Mcp.Config" Version="0.7.0" />
<PackageReference Include="DevJoy.Mcp.Config" />
paket add DevJoy.Mcp.Config --version 0.7.0
#r "nuget: DevJoy.Mcp.Config, 0.7.0"
#:package DevJoy.Mcp.Config@0.7.0
#addin nuget:?package=DevJoy.Mcp.Config&version=0.7.0
#tool nuget:?package=DevJoy.Mcp.Config&version=0.7.0
DevJoy.Mcp
A C# .NET library that MCP servers import to gain configuration management capabilities. When integrated into an MCP server, it provides secure, automated configuration management with intelligent handling of sensitive data and seamless distribution across multiple MCP client applications.
Features
- Automatic Sensitive Data Detection: Automatically identifies and securely stores sensitive configuration values
- Multi-Client Distribution: Distributes configurations to VS Code, Claude Desktop, Cursor, and other AI tools
- Client-Specific Distribution: Target specific clients instead of distributing to all
- Dual Storage System: Non-sensitive data in JSON, sensitive data in
.env
files - Configuration Hierarchy: Environment variables → Local config → Global config precedence
- Cross-Platform: Works on Windows, macOS, and Linux
- Secure Secret Input: Capture passwords and API keys directly from console, bypassing LLM interfaces entirely
Prerequisites
Building the Project
# Clone the repository
git clone https://github.com/devjoy-digital/devjoy.mcp-config.git
cd devjoy.mcp-config
# Restore dependencies
dotnet restore
# Build the solution
dotnet build
# Run tests
dotnet test
# Create NuGet package
dotnet pack --configuration Release
Project Structure
devjoy.mcp-config/
├── src/
│ └── DevJoy.Mcp/ # Main library project
├── test/
│ └── DevJoy.Mcp.Tests/ # Unit and integration tests
├── .github/
│ └── workflows/ # CI/CD pipelines
└── DevJoy.Mcp.sln # Solution file
Development
Running Tests
# Run all tests
dotnet test
# Run tests with coverage
dotnet test --collect:"XPlat Code Coverage"
# Run specific test
dotnet test --filter "FullyQualifiedName~ConfigurationManager"
Building for Release
# Build in Release mode
dotnet build --configuration Release
# Create NuGet package
dotnet pack --configuration Release --output ./artifacts
Integration
To integrate this library into your MCP server:
Add the NuGet package reference:
<PackageReference Include="DevJoy.Mcp" Version="1.0.0" />
Use the configuration manager in your MCP server:
using DevJoy.Mcp; using DevJoy.Mcp.Security; var configManager = McpConfig.CreateManager(); // Register your MCP server await configManager.RegisterServerAsync(serverConfig); // Set non-sensitive configuration await configManager.SetServerPropertyAsync("my-server", "host", "localhost"); // Securely capture passwords without LLM exposure await configManager.SetServerPropertySecurelyAsync( "my-server", "password", "Enter password (hidden):" );
Documentation
- Client-Specific Distribution - Target specific clients with configuration
Contributing
Please read our contributing guidelines before submitting pull requests.
License
[License information to be added]
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Microsoft.Extensions.Configuration (>= 9.0.7)
- System.Text.Json (>= 9.0.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.