Skip to content

카테고리

태스크 분류 라벨.

모델

ts
Category {
  id: string (UUID)
  name: string         // "업무", "개인", "운동"
  color?: string       // hex, 예 "#0088ff"
  icon?: string        // emoji 또는 SF Symbol
  position?: number
}

MCP 도구

bash
ainote list_categories '{}'

응답 (text + structured resource):

json
{
  "content": [
    { "type": "text", "text": "[Formatted list]" },
    {
      "type": "resource",
      "resource": {
        "uri": "ainote://categories/list",
        "mimeType": "application/json",
        "text": "{\"categories\":[{\"id\":\"uuid\",\"name\":\"업무\",\"color\":\"#0088ff\"}]}"
      }
    }
  ]
}

category_idUUID (정수 아님). create_task / update_task / list_taskscategory_id 에 넣으면 됨.

자연어 매칭

create_task 가 카테고리 자동 추론은 안 함 (category_id 명시 필요). Claude 가 자연어 발화 → list_categories 로 ID 조회 → create_task 호출 패턴.

사용자: "이거 운동 카테고리에 추가해줘 — 헬스장 7시"
Claude:
  1. list_categories  → "운동" 의 id 찾음
  2. create_task { content: "헬스장", due_date: "...19:00", category_id: "<uuid>" }

카테고리 추가 / 수정

MCP 도구 없음 (현재). 웹 UI 만:

CRUD MCP 도구는 계획됨 (v0.5+).

필터링

bash
ainote list_tasks '{"category_id":"<uuid>"}'

다음

MIT License · ainote.dev