ensureConfigScope function
Parse a scope string into McpConfigScope, defaulting to local.
Implementation
McpConfigScope ensureConfigScope(String? scope) {
switch (scope?.toLowerCase()) {
case 'user':
return McpConfigScope.user;
case 'project':
return McpConfigScope.project;
case 'local':
default:
return McpConfigScope.local;
}
}