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:
-
Update the version number in:
windsurf_mcp_config_manager/__init__.pysetup.py
-
Commit and push these changes to GitHub
-
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file windsurf_mcp_config_manager-0.2.1.tar.gz.
File metadata
- Download URL: windsurf_mcp_config_manager-0.2.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9f59f63328c6c054f0802b654b26d3f67323c9246c51310b0be658aadecbca6
|
|
| MD5 |
e7faf09615962713115831720d41db8b
|
|
| BLAKE2b-256 |
af3b364a88870e7db99672fa91aaceac34790a3a232642c40b8e697b447648c6
|
File details
Details for the file windsurf_mcp_config_manager-0.2.1-py3-none-any.whl.
File metadata
- Download URL: windsurf_mcp_config_manager-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f79440abc1cb0edd50a43d5bea711da7b4302d3f1a7c217d97932b703c3e88ff
|
|
| MD5 |
1554ff0bda24acd8d0126e87e3460228
|
|
| BLAKE2b-256 |
5a226ea0e6b1b6d59c9c64145da0064b34707949fd4e2eb02885a913dcdf1b8e
|