Skip to content

Conversation

@alex-feel
Copy link
Owner

No description provided.

Enable MCP servers to be configured with combined scopes (e.g., scope: [user, profile]) allowing servers to be available both in profile isolation and globally.

- Add validate_scope_combination() to validate scope combinations
- Add normalize_scope() to normalize scope values (string/list/comma-separated)
- Modify configure_all_mcp_servers() to handle multiple scopes per server
- Add 47 comprehensive tests in TestCombinedScopeSupport class
- Support backward compatibility with existing single-scope configurations
Fixes two bugs in MCP profile server configuration:
- Tilde paths (~/.claude/...) not expanded to absolute paths
- Commands stored as raw strings instead of command+args structure

Added parse_mcp_command() function that:
- Expands tilde paths using existing expand_tildes_in_command()
- Converts backslashes to forward slashes before shlex parsing
- Splits commands into executable and args using shlex
- Wraps npx/npm with cmd /c on Windows for proper execution

Updated create_mcp_config_file() to use structured format with separate command, args, and env fields per MCP JSON schema.
@github-actions
Copy link

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  scripts
  setup_environment.py 911
Project Total  

This report was generated by python-coverage-comment-action

@alex-feel alex-feel merged commit 8de3c6e into main Jan 22, 2026
12 checks passed
@alex-feel alex-feel deleted the alex-feel-dev branch January 22, 2026 12:06
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.

2 participants