Skip to main content

Configuration management utilities for MCP servers

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_config_manager-0.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_config_manager-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file mcp_config_manager-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_config_manager-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for mcp_config_manager-0.1.1.tar.gz
Algorithm Hash digest
SHA256 30ba645c0e9b6efcca2b7cbc20995e799d37b3f0af2a646b04633e9a42449513
MD5 c1a5c3f206bfa8c6ee1c1828d2651bf4
BLAKE2b-256 9d0ee3882afbd604ae9c6aa1d224673f3fcf930ea342389744cd5b9f22736f02

See more details on using hashes here.

File details

Details for the file mcp_config_manager-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_config_manager-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fea43ee19b945903bc6d67e3c893363f09e1980cf961aa8a6e6292bd20352b01
MD5 82ba4e153cc2f781ed8a880d8b80e76d
BLAKE2b-256 01c7afe587ca7a35354e385702aa0a9d65acdf6a8acf2c7331bb0a5f59c50752

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page