- 🌍 envmcp: Simplifying Environment Variables for Cursor MCP Servers
🌍 envmcp: Simplifying Environment Variables for Cursor MCP Servers
🌍 envmcp: Simplifying Environment Variables for Cursor MCP Servers
Welcome to envmcp, a lightweight solution for managing environment variables in your Cursor MCP server definitions. This tool helps streamline the process of handling configuration settings, credentials, and secrets, making it easier to manage your server environments.
📦 Table of Contents
🚀 Features
- Lightweight: Minimal overhead for quick setup and use.
- Easy Configuration: Simple syntax for defining environment variables.
- Secure Secret Management: Keep your credentials safe and organized.
- Integration with Cursor: Seamless use within Cursor MCP servers.
- Support for Multiple Environments: Manage different configurations for development, testing, and production.
💻 Installation
To get started with envmcp, download the latest release from our Releases page. After downloading, follow the instructions for your platform to install and set up the tool.
🛠️ Usage
Using envmcp is straightforward. Here’s a quick example to illustrate how to define and use environment variables in your MCP server definitions.
Example
-
Define Your Variables: Create a configuration file (e.g.,
env.config) with your environment variables.DATABASE_URL=mysql://user:password@localhost:3306/mydb API_KEY=your_api_key_here -
Load the Configuration: In your MCP server definition, include the following command to load the environment variables.
load_env('env.config') -
Access Variables: Use the variables in your server code.
db.connect(DATABASE_URL) api.authenticate(API_KEY)
This simple setup allows you to keep your sensitive information secure while maintaining flexibility in your configurations.
⚙️ Configuration
envmcp allows for easy configuration management. You can specify different environment files for various setups, such as development or production. Here’s how:
Multiple Environment Files
You can create different configuration files for different environments:
env.dev.configenv.prod.config
Load the appropriate file based on your environment:
if environment == 'production':
load_env('env.prod.config')
else:
load_env('env.dev.config')
🤝 Contributing
We welcome contributions from the community. If you have suggestions or improvements, please fork the repository and submit a pull request.
How to Contribute
- Fork the repository.
- Create a new branch for your feature or fix.
- Make your changes and commit them.
- Push to your branch.
- Open a pull request.
Your contributions help make envmcp better for everyone.
📄 License
This project is licensed under the MIT License. See the LICENSE file for details.
📬 Contact
For questions or feedback, please reach out via the Issues section of this repository.
🚀 Releases
To keep your installation up to date, check the Releases section regularly. Download the latest version, execute it, and enjoy the new features and fixes.
Thank you for using envmcp! We hope it makes managing your environment variables easier and more secure.