A CLI tool for managing Claude Code configuration, plugins, and marketplaces with backup/restore capabilities
clew is a STDIO-only Go MCP server with 8 tools for managing Claude Code configuration backups and state. Tool definitions are present with descriptions and input schemas, but quality is inconsistent. Naming follows verb_noun conventions well (backup create, backup list, etc.). Most tools have reasonable 1-3 sentence descriptions (66-157 chars), but lack depth on WHEN to use them and what they return. Parameter schemas are typed but lack descriptions, e.g., 'note' in backup create has no description of expected format or length. No output schemas are documented. Error handling is not visible in the provided source. Tool composition is reasonable (backup operations are split into separate tools), but parameter descriptions violate the rubric baseline of 100% of A+ tools having parameter annotations. The backup commands (restore, delete, prune) have risk annotations visible but no confirmation/dry-run support in the schema despite handling destructive operations.
Create captures the current Claude Code configuration state and stores it as a backup.
Delete removes a backup by its ID.
List displays all available backups with their creation time, notes, and size.
Prune deletes old backups, keeping only the most recent N backups. By default, keeps the 30 most recent backups.
Restore applies a previous backup's configuration to the system. Use 'latest' as the ID to restore the most recent backup. This command shows the changes that will be made and prompts for confirmation before applying them.
Generate shell completion script for clew (bash, zsh, or fish).
Diff compares the Clewfile against current state and shows what sync would do.
Parameter descriptions are missing or absent for all parameters across all tools. The rubric requires 100% of A+ tools to have parameter descriptions. E.g., 'note' parameter in backup create lacks any description of expected format, length, or constraints.
No output schemas are documented for any tool. The rubric requires 100% of A+ tools to have documented return types. LLMs cannot plan downstream operations without knowing what fields are returned.
Destructive operations (backup delete, backup prune) lack dry-run, confirmation, or confirmation-request pattern support. The rubric requires irreversible operations to support confirmation or dry-run steps to prevent catastrophic errors.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 44 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 0 | - | v1 |
Export reads the current Claude Code configuration and outputs it as a Clewfile.
Tool descriptions lack guidance on WHEN to use each tool and dependencies. E.g., backup restore description does not explain when to use it vs backup list vs diff. The rubric requires descriptions to answer: What does it do? When should the LLM call it instead of a similar tool?
No error handling guidance visible in source code. Error responses should tell the LLM what to do next (e.g., 'Backup not found. Try backup list() first.'). The rubric requires error responses to be actionable recovery guides.
Parameter constraints are underspecified. E.g., 'shell' parameter in completion accepts 'bash, zsh, or fish' but is not expressed as an enum in the schema. The rubric requires enum constraints instead of free-form strings to prevent hallucinated values.
Backup ID format and lifespan are undocumented. backup restore accepts 'latest' as a special ID but the schema does not document this. The rubric requires parameter descriptions to state expected format and allowed values.