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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DevJoy.Mcp.Config" Version="0.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DevJoy.Mcp.Config" Version="0.7.0" />
                    
Directory.Packages.props
<PackageReference Include="DevJoy.Mcp.Config" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DevJoy.Mcp.Config --version 0.7.0
                    
#r "nuget: DevJoy.Mcp.Config, 0.7.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DevJoy.Mcp.Config@0.7.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DevJoy.Mcp.Config&version=0.7.0
                    
Install as a Cake Addin
#tool nuget:?package=DevJoy.Mcp.Config&version=0.7.0
                    
Install as a Cake Tool

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:

  1. Add the NuGet package reference:

    <PackageReference Include="DevJoy.Mcp" Version="1.0.0" />
    
  2. 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

Contributing

Please read our contributing guidelines before submitting pull requests.

License

[License information to be added]

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.0 121 8/3/2025
0.6.1 75 8/2/2025