Skip to main content

A utility to manage Windsurf MCP server configurations

Project description

Windsurf MCP Config Manager

A command-line utility to manage Windsurf/Codeium MCP server configurations. This tool helps you easily add, update, delete, and list MCP server configurations used by Windsurf/Codeium.

Installation

pip install windsurf-mcp-config-manager

Quick Start

The utility provides a command-line interface with the shortcut wmcp and several subcommands:

# Add a new MCP server
wmcp add my-server --command python --args "server.py,--port=8080" --env DEBUG=true

# List all configured servers
wmcp list

# Update an existing server
wmcp update my-server --command node --args "app.js,--env=production"

# Delete a server
wmcp delete my-server

Configuration File

By default, the configuration is stored in ~/.codeium/windsurf/mcp_config.json. The file is automatically created if it doesn't exist. A backup is always created before making any changes to the configuration file.

Detailed Usage

Global Options

--config TEXT  Path to the config file (default: ~/.codeium/windsurf/mcp_config.json)
--help         Show this message and exit

Add Command

Add a new MCP server configuration.

wmcp add NAME --command COMMAND [--args ARGS] [--env KEY=VALUE]

Options:

  • NAME: Name of the MCP server (required)
  • --command TEXT: Command to run the MCP server (required)
  • --args TEXT: Arguments for the command (comma-separated)
  • --env TEXT: Environment variables in KEY=VALUE format (can be specified multiple times)

Example:

wmcp add my-server --command python --args "server.py,--port=8080,--debug" --env DEBUG=true --env LOG_LEVEL=info

Delete Command

Delete an MCP server configuration.

wmcp delete NAME

Options:

  • NAME: Name of the MCP server to delete (required)

Example:

wmcp delete my-server

Update Command

Update an existing MCP server configuration.

wmcp update NAME [--command COMMAND] [--args ARGS] [--env KEY=VALUE]

Options:

  • NAME: Name of the MCP server to update (required)
  • --command TEXT: New command to run the MCP server
  • --args TEXT: New arguments for the command (comma-separated)
  • --env TEXT: Environment variables to add/update (can be specified multiple times)

Example:

wmcp update my-server --command node --args "app.js,--production" --env NODE_ENV=production

List Command

List all configured MCP servers.

wmcp list

Example output:

Configured MCP servers:

my-server:
  Command: python
  Args: server.py, --port=8080
  Environment variables:
    DEBUG=true

Safety Features

  • Automatic backups: The tool automatically creates a backup of your configuration file before making any changes
  • Directory handling: Properly handles configuration files in any directory
  • Error handling: Provides clear error messages when something goes wrong

Development

Setup

git clone https://github.com/trilogy-group/trilogy-group-windsurf-mcp-config-manager.git
cd trilogy-group-windsurf-mcp-config-manager
pip install -e .

Publishing to PyPI

The package is automatically published to PyPI when a new release is created on GitHub. To create a new release:

  1. Update the version number in:

    • windsurf_mcp_config_manager/__init__.py
    • setup.py
  2. Commit and push these changes to GitHub

  3. Create a new release on GitHub with a tag matching the version number (e.g., "v0.1.0")

License

MIT

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

windsurf_mcp_config_manager-0.1.2.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

windsurf_mcp_config_manager-0.1.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file windsurf_mcp_config_manager-0.1.2.tar.gz.

File metadata

File hashes

Hashes for windsurf_mcp_config_manager-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f7272db223056a9ef49d2bc72901abcecf1dfe2f625764dedb7c4dac09b93b28
MD5 f7602bdd34ab13c05b0ca3e07cf6aa7a
BLAKE2b-256 597ff8bbb0dc145fdd4ecef09cd8bdd1191669d22de1a1dae07b3394526cb8d7

See more details on using hashes here.

File details

Details for the file windsurf_mcp_config_manager-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for windsurf_mcp_config_manager-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9034d5fd5f104e360d995b30cf7eec1d65f87c80d53eb7950f57f38284c14f7a
MD5 f4dcd65ee039ddb74273147f30a51b57
BLAKE2b-256 e15ddea8aec3118465c78930c5ea09b6b0ae762db1af296e78ab3ef475a0a0b2

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