Description
The MCP server fails with Cloud profile 'default' not found even when a default profile is configured and marked with * in redisctl profile list.
Steps to Reproduce
- Configure a cloud profile:
redisctl cloud profile add demo
- Set it as default (shown with
* in profile list)
- Start MCP server and call
cloud_subscriptions_list
- Error:
Cloud profile 'default' not found
Expected Behavior
The MCP server should use the same profile resolution logic as the CLI:
- Check for explicitly passed profile parameter
- Check for
default_cloud / default_enterprise in config
- Fall back to first profile of the matching type
Current Behavior
The MCP server calls config.resolve_cloud_profile(None) which should work, but appears to be looking for a profile literally named "default" instead of using the configured default.
Relevant Code
crates/redisctl-mcp/src/cloud_tools.rs:19-21 - Profile resolution in CloudTools::new()
crates/redisctl-config/src/config.rs:275-290 - resolve_cloud_profile() implementation
Environment
- Profile list shows:
demo* (cloud) and re-test (enterprise)
- Config file:
~/Library/Application Support/com.redis.redisctl/config.toml
Workaround
None currently - the MCP server requires profiles to work.
Description
The MCP server fails with
Cloud profile 'default' not foundeven when a default profile is configured and marked with*inredisctl profile list.Steps to Reproduce
redisctl cloud profile add demo*in profile list)cloud_subscriptions_listCloud profile 'default' not foundExpected Behavior
The MCP server should use the same profile resolution logic as the CLI:
default_cloud/default_enterprisein configCurrent Behavior
The MCP server calls
config.resolve_cloud_profile(None)which should work, but appears to be looking for a profile literally named "default" instead of using the configured default.Relevant Code
crates/redisctl-mcp/src/cloud_tools.rs:19-21- Profile resolution in CloudTools::new()crates/redisctl-config/src/config.rs:275-290- resolve_cloud_profile() implementationEnvironment
demo*(cloud) andre-test(enterprise)~/Library/Application Support/com.redis.redisctl/config.tomlWorkaround
None currently - the MCP server requires profiles to work.