---
actual_hours: null
assignees: []
created_at: '2025-08-20T09:26:32.945682'
dependencies: []
description: "Migrate remaining CLI commands to use the new shared utilities.\n\n\
  ## Commands to Refactor\n- tickets.py - Ticket management commands\n- mcp.py - MCP\
  \ Gateway commands  \n- monitor.py - Monitoring commands\n- info.py - Information\
  \ display\n- run.py - Session running\n- aggregate.py - Data aggregation\n- cleanup.py\
  \ - Cleanup operations\n\n## Implementation Strategy\n1. Follow the same pattern\
  \ as config.py refactoring\n2. Use appropriate base classes (BaseCommand, ServiceCommand)\n\
  3. Apply shared argument parsing patterns\n4. Standardize error handling and output\
  \ formatting\n5. Test each command individually\n\n## Expected Outcomes\n- Consistent\
  \ CLI experience across all commands\n- Reduced code duplication in CLI layer\n\
  - Better error handling and user feedback\n- Uniform output formatting options\n\
  \n## Files to Modify\n- src/claude_mpm/cli/commands/*.py (remaining files)\n- src/claude_mpm/cli/parsers/*.py\
  \ (corresponding parsers)\n\n## Testing Requirements\n- All existing CLI functionality\
  \ must be preserved\n- Test all command variations and edge cases\n- Verify error\
  \ handling improvements\n- Check output formatting in all modes\n\n## Dependencies\n\
  - Complete config.py, agents.py, and memory.py refactoring first\n- Use those as\
  \ reference implementations"
due_date: null
estimated_hours: null
id: TSK-0131
labels: []
metadata:
  blocked_by: []
  blocks: []
  epic: EP-0002
  estimate: 2h
  github_id: I_kwDOPScCe87HDEtF
  github_url: https://github.com/bobmatnyc/claude-mpm/issues/49
  parent: null
  platform: github
  subtasks: []
parent: null
priority: medium
status: completed
tags: []
title: Refactor remaining CLI commands (tickets, mcp, monitor, etc.)
updated_at: '2025-08-20T16:34:42.760165'
---

# Refactor remaining CLI commands (tickets, mcp, monitor, etc.)

## Description
Migrate remaining CLI commands to use the new shared utilities.

## Commands to Refactor
- tickets.py - Ticket management commands
- mcp.py - MCP Gateway commands  
- monitor.py - Monitoring commands
- info.py - Information display
- run.py - Session running
- aggregate.py - Data aggregation
- cleanup.py - Cleanup operations

## Implementation Strategy
1. Follow the same pattern as config.py refactoring
2. Use appropriate base classes (BaseCommand, ServiceCommand)
3. Apply shared argument parsing patterns
4. Standardize error handling and output formatting
5. Test each command individually

## Expected Outcomes
- Consistent CLI experience across all commands
- Reduced code duplication in CLI layer
- Better error handling and user feedback
- Uniform output formatting options

## Files to Modify
- src/claude_mpm/cli/commands/*.py (remaining files)
- src/claude_mpm/cli/parsers/*.py (corresponding parsers)

## Testing Requirements
- All existing CLI functionality must be preserved
- Test all command variations and edge cases
- Verify error handling improvements
- Check output formatting in all modes

## Dependencies
- Complete config.py, agents.py, and memory.py refactoring first
- Use those as reference implementations

## Details
- **Status**: completed
- **Priority**: medium
- **Assignees**: None
- **Tags**: None
- **Created**: 2025-08-20 09:26:32
- **Updated**: 2025-08-20 16:34:42

## Tasks
- [ ] Add task items here

## Notes
_Add any additional notes or context here._
