Skip to main content

MCP Config Manager

Configuration management utilities for Model Context Protocol (MCP) servers. This package provides functionality to manage MCP server configurations for different clients like Claude Desktop and VSCode extensions (Cline and Roo).

Features

  • Automatic configuration file path detection for different environments
  • Support for Claude Desktop and VSCode extensions (Cline and Roo)
  • Environment variable validation
  • Generic configuration management functions
  • VSCode extension specific settings (disabled, autoApprove) for Cline and Roo

Installation

pip install mcp-config-manager

Usage

from mcp_config_manager import add_to_config

# Define your required environment variables
REQUIRED_ENV_VARS = ["API_KEY", "API_URL"]

# Add to Claude Desktop configuration
add_to_config(
    server_name="my-mcp-server",
    required_env_vars=REQUIRED_ENV_VARS,
    config_type="claude"
)

# Add to Cline configuration (VSCode extension)
add_to_config(
    server_name="my-mcp-server",
    required_env_vars=REQUIRED_ENV_VARS,
    config_type="cline"  # Will include disabled=False and autoApprove settings
)

# Add to Roo configuration (VSCode extension)
add_to_config(
    server_name="my-mcp-server",
    required_env_vars=REQUIRED_ENV_VARS,
    config_type="roo"  # Will include disabled=False and autoApprove settings
)

# With custom environment variables
env_vars = {
    "API_KEY": "my-key",
    "API_URL": "https://api.example.com"
}

add_to_config(
    server_name="my-mcp-server",
    required_env_vars=REQUIRED_ENV_VARS,
    env_vars=env_vars,
    config_type="cline"
)

Configuration File Locations

The package automatically detects the appropriate configuration file paths:

Claude Desktop

  • EC2: ~/.vscode-server/data/User/globalStorage/anthropic.claude/settings/claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json

VSCode Extensions

Cline

  • EC2: ~/.vscode-server/data/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  • macOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  • Windows: %APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Roo

  • EC2: ~/.vscode-server/data/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
  • macOS: ~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
  • Windows: %APPDATA%/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json

VSCode Extension Settings

When adding configurations for VSCode extensions (Cline or Roo), the following additional settings are automatically included:

{
  "disabled": false,  // Server is enabled by default
  "autoApprove": []  // List of operations to auto-approve
}

Development

  1. Clone the repository
  2. Install development dependencies: pip install -e ".[dev]"
  3. Run tests: pytest
  4. Submit pull requests

License

MIT License - see LICENSE file for details.

Metadata

Release files for mcp-config-manager 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-config-manager 0.1.1
File Size Uploaded
mcp_config_manager-0.1.1.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-config-manager 0.1.1
File Interpreter ABI Platform
mcp_config_manager-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / mcp_config_manager-0.1.1.tar.gz

Download URL mcp_config_manager-0.1.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
30ba645c0e9b6efcca2b7cbc20995e799d37b3f0af2a646b04633e9a42449513
BLAKE2b-256 checksum
How to use checksums
9d0ee3882afbd604ae9c6aa1d224673f3fcf930ea342389744cd5b9f22736f02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / mcp_config_manager-0.1.1-py3-none-any.whl

Download URL mcp_config_manager-0.1.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fea43ee19b945903bc6d67e3c893363f09e1980cf961aa8a6e6292bd20352b01
BLAKE2b-256 checksum
How to use checksums
01c7afe587ca7a35354e385702aa0a9d65acdf6a8acf2c7331bb0a5f59c50752
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page