코딩공부/MCP

[MCP] Task Master AI

표자 2025. 6. 9. 09:05
  • 설명
  • 설치
    • npm i -g task-master-ai
    • task-master init
      • tm으로 별칭 설정: y
      • 추가세팅:y
      • 모델선택에서 엔터 누른 후 AI선택
        • AI를 3개 고름
    • .env.example 파일을 .env로 변경
      • 사용하는 API 입력
    • .cursor → mcp.json 파일
      • “env” 안에 사용하는 API 입력
  • AI를 통해 만들고자 하는 AI의 프로젝트 md 파일 생성
    • scripts라는 폴더를 만들고, md파일 이동
      • example_prd.txt
      <context>
      # Overview  
      [Provide a high-level overview of your product here. Explain what problem it solves, who it's for, and why it's valuable.]
      
      # Core Features  
      [List and describe the main features of your product. For each feature, include:
      - What it does
      - Why it's important
      - How it works at a high level]
      
      # User Experience  
      [Describe the user journey and experience. Include:
      - User personas
      - Key user flows
      - UI/UX considerations]
      </context>
      <PRD>
      # Technical Architecture  
      [Outline the technical implementation details:
      - System components
      - Data models
      - APIs and integrations
      - Infrastructure requirements]
      
      # Development Roadmap  
      [Break down the development process into phases:
      - MVP requirements
      - Future enhancements
      - Do not think about timelines whatsoever -- all that matters is scope and detailing exactly what needs to be build in each phase so it can later be cut up into tasks]
      
      # Logical Dependency Chain
      [Define the logical order of development:
      - Which features need to be built first (foundation)
      - Getting as quickly as possible to something usable/visible front end that works
      - Properly pacing and scoping each feature so it is atomic but can also be built upon and improved as development approaches]
      
      # Risks and Mitigations  
      [Identify potential risks and how they'll be addressed:
      - Technical challenges
      - Figuring out the MVP that we can build upon
      - Resource constraints]
      
      # Appendix  
      [Include any additional information:
      - Research findings
      - Technical specifications]
      </PRD>
      
    • 코파일럿을 통해 md파일 생성
      • example_prd.txt 구조를 기반으로 해서 todolist.md 를 업데이트 해줘. prd.txt 파일로 새로 생성 해줘.
        • curost의 경우 cursor settings → MCP 를 통해 task-master-ai 추가
    • 파싱 요청
      • prd.txt 을 task-master를사용해서 파싱해서 작업 목록을 생성해줘  
      • 이를통해 tasks 폴더 생성됨
  • 작업목록 확인
    • task-master list
  • 작업목록 분석 요청
    • task-master analyze-complexity
  • 복잡도 분석 보고서
    • task-master complexity-report
  • 복잡도가 높은 작업을 서브태크스로 분리
    • task-complexity-report를 참고해서 복잡도가 높은 작업을 subtask로 확장해줘 
    • 작업할때마다 사용자에게 확인 요청 받는 대신 자동으로 진행
    • [확인] 버튼이 나올때 오른쪽의 아래 버튼을 눌러 항상 작업 허용한다.
  • 우선순위대로 작업하기
    • 현재 전체적인 작업 목록에서 MVP 개발에 필요한 부분부터 개발하고 싶어 MVP 개발에 불필요한 작업들은 나중에 처리할 작업으로 변경해줘.
  • 작업요청
    • 그럼 이제 프로젝트 개발을 진행해보자 어떤 작업부터 진행하면 될까?
  • 진행된 부분 체크
    • tm list —with-subtasks
  • 계속 진행할때
    • 다음 작업들도 순차적으로 가능한만큼 진행해줘. 가능한 작업단위 만큼까지 계속 진행해줘.
728x90