Skip to content

Comments

Add new env config options#48

Merged
alex-feel merged 6 commits intomainfrom
alex-feel-dev
Sep 4, 2025
Merged

Add new env config options#48
alex-feel merged 6 commits intomainfrom
alex-feel-dev

Conversation

@alex-feel
Copy link
Owner

No description provided.

Automatically pre-allow MCP servers configured in environment YAML files by adding them to the permissions.allow array.
This eliminates the need for users to manually approve MCP servers after setup.
Servers are formatted as mcp__servername in the permissions configuration.
Enable flexible configuration sources for environment setup:
- Direct URLs (https://example.com/config.yaml) with security warnings
- Local files (./my-config.yaml) for sensitive configurations with API keys
- Repository configs (python) for standard community-maintained setups

This allows teams to keep sensitive API keys in local configs while still using the one-liner installation approach. The script automatically detects the source type based on the config specification format.

Add comprehensive security warnings in documentation to alert users about the risks of loading configurations from untrusted remote sources.
Enable environment configs to specify Claude model (opus, sonnet, haiku, etc.) and granular permission controls including defaultMode, allow/deny/ask lists, and additionalDirectories.

Implements smart MCP server auto-allow logic that respects explicit deny/ask rules to reduce friction while maintaining security preferences.

- Add model field to environment configs supporting all Claude aliases
- Add comprehensive permissions configuration
- Implement intelligent MCP server permission merging
- Update templates and documentation with new configuration options
- Add env-variables section to YAML config for setting session environment variables
- Configure environment variables in additional-settings.json under 'env' key
- Support dictionary format for robust key-value pairs
- Update templates and documentation with examples (BASH_DEFAULT_TIMEOUT_MS, MAX_MCP_OUTPUT_TOKENS, etc.)
- Display configured env vars count in setup summary
- Support loading configs from private GitLab and GitHub repositories
- Implement hybrid authentication approach with multiple fallback methods:
  1. Command-line --auth parameter (highest priority)
  2. Environment variables (GITLAB_TOKEN, GITHUB_TOKEN, REPO_TOKEN)
  3. Interactive prompt (fallback for terminal sessions)
- Auto-detect repository type from URL patterns
- Try public access first, only use auth when needed (401/403 errors)
- Support one-liner execution with environment variables
- Add comprehensive documentation with examples for both platforms
@alex-feel alex-feel enabled auto-merge September 4, 2025 11:45
@alex-feel alex-feel merged commit 904bbbb into main Sep 4, 2025
5 checks passed
@alex-feel alex-feel deleted the alex-feel-dev branch September 4, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant