-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Summary
Close the remaining gaps between Cloud CLI commands and MCP tools. Cloud coverage is already strong (~95%), but a few operations are CLI-only.
Gaps
Cloud User management (P1)
| Operation | CLI | MCP |
|---|---|---|
| List users | list | list_account_users |
| Get user | get | get_account_user |
| Update user | update | -- |
| Delete user | delete | -- |
update_cloud_user(non_destructive)delete_cloud_user(destructive)
Task polling (P1)
| Operation | CLI | MCP |
|---|---|---|
| Get task | get | get_task |
| List tasks | -- | list_tasks |
| Wait for task | wait | -- |
| Poll task | poll | -- |
The CLI has wait (block until done) and poll (check periodically). For MCP, a single tool makes sense:
wait_for_cloud_task-- poll a task ID until completion or timeout, returning final status. Includetimeout_secondsparameter with sensible default (300s). This is valuable for agents orchestrating multi-step workflows (create subscription -> wait -> create database).
Cost Report export (P1)
| Operation | CLI | MCP |
|---|---|---|
| Generate | generate | generate_cost_report |
| Download | download | download_cost_report |
| Export | export | -- |
export_cost_report(non_destructive) -- export cost report in specified format
Cloud Provider Account (P2)
Note: provider accounts (BYOC) already have MCP tools via cloud_accounts in account.rs (list_cloud_accounts, get_cloud_account, create_cloud_account, update_cloud_account, delete_cloud_account). Verify these map correctly to the CLI's provider-account commands. If there's a distinction between "cloud accounts" and "provider accounts", add the missing variants.
Active-Active database flush (P2)
The CLI has flush-crdb as a separate command from flush. Verify whether flush_database covers both cases or if a separate flush_crdb_database tool is needed.
Acceptance criteria
- User update/delete tools added
- Task wait/poll tool added
- Cost report export tool added
- Provider account coverage verified
- CRDB flush coverage verified
- Wiremock tests for new tools
Context
Part of #681 (MCP epic). Cloud is the closest to full parity -- this closes the remaining ~5%.