### Install Dependencies, Build, and Test Source: https://github.com/griffithsbs/envmcp/blob/main/CONTRIBUTING.md Standard commands to set up the development environment, build the project, and run tests. ```bash npm install npm run build npm test ``` -------------------------------- ### Environment File Format Example Source: https://github.com/griffithsbs/envmcp/blob/main/README.md Demonstrates the key-value pair format for environment variables, including comments and values with spaces. ```dotenv DATABASE_URL=postgresql://user:password@localhost/db API_KEY=your-secret-api-key # This is a comment QUOTED_VALUE="value with spaces" ``` -------------------------------- ### Quick Start: Using Default .env.mcp Source: https://github.com/griffithsbs/envmcp/blob/main/README.md Execute an MCP server command using environment variables defined in the default ~/.env.mcp file. ```bash # Use default ~/.env.mcp file npx envmcp your-mcp-server $DATABASE_URL ``` -------------------------------- ### Install envmcp Globally Source: https://github.com/griffithsbs/envmcp/blob/main/README.md Install the envmcp package globally using npm to make the command-line tool available system-wide. ```bash npm install -g envmcp ``` -------------------------------- ### MCP Client Configuration: Before envmcp Source: https://github.com/griffithsbs/envmcp/blob/main/README.md Example of an MCP client configuration where sensitive database credentials are directly exposed in the command arguments. ```json { "my_database": { "command": "my-mcp-server", "args": ["postgresql://user:password@hostname/db"] } } ``` -------------------------------- ### Quick Start: Specifying a Custom Environment File Source: https://github.com/griffithsbs/envmcp/blob/main/README.md Execute an MCP server command using environment variables from a custom-specified .env file. ```bash # Specify custom env file npx envmcp --env-file .env your-mcp-server $API_KEY $DATABASE_URL ``` -------------------------------- ### MCP Client Configuration: After envmcp Source: https://github.com/griffithsbs/envmcp/blob/main/README.md Example of an MCP client configuration updated to use envmcp, referencing environment variables for sensitive information. ```json { "my_database": { "command": "npx", "args": ["envmcp", "my-mcp-server", "$DATABASE_URL"] } } ``` -------------------------------- ### Quick Start: Using Short Flag for Custom Environment File Source: https://github.com/griffithsbs/envmcp/blob/main/README.md Execute an MCP server command using environment variables from a custom-specified .env file, utilizing the short flag `-e`. ```bash # Short flag version npx envmcp -e /path/to/secrets.env your-mcp-server $MY_SECRET ``` -------------------------------- ### Link Local Build and Test Environment Variable Substitution Source: https://github.com/griffithsbs/envmcp/blob/main/CONTRIBUTING.md Steps to link a local build of envmcp and test its functionality with environment variable substitution. ```bash npm run build npm link # Create a test env file echo "TEST_VAR=hello world" > test.env # Test with environment variable substitution envmcp --env-file test.env echo '$TEST_VAR' # Unlink when done npm unlink -g envmcp ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.