akiflow-toolkit
Unofficial integration for Akiflow, enabling terminal-based task management and AI agent integration. Provides tools for adding, listing, completing, scheduling tasks, managing projects, and calendar operations.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
akiflow-toolkit
한국어 | English
비공식 프로젝트입니다. Akiflow Inc. 와 관계가 없습니다. 리버스 엔지니어링한 내부 API 를 쓰므로 예고 없이 깨질 수 있습니다. DISCLAIMER.md 를 참고하세요.
Akiflow 용 비공식 CLI 와 MCP 서버입니다. 터미널에서 할 일을 관리하고, AI 에이전트(Claude Code, Cursor, Claude Desktop)와 연동합니다.
상태
Alpha — npm 에 akiflow-toolkit 으로 배포되어 있습니다. Bun 1.1+ 런타임이 필요합니다.
Related MCP server: MCP Todoist
기능
CLI (
af): 터미널에서 할 일 관리 — 추가, 조회, 완료, 일정 지정, 프로젝트, 캘린더MCP 서버: Model Context Protocol 로 AI 에이전트와 연동
af --mcp— stdio, 에디터 세션마다 서버 하나af --mcp --http— 모든 세션이 함께 쓰는 Streamable HTTP 서버 하나.af service install로 로그인 시 자동 실행 (자세히)
자동 인증: macOS 에서는 브라우저 데이터(IndexedDB, 쿠키)에서 토큰을 추출하고, 그 외에는 CDP 로 Chrome 로그인 창을 엽니다. DevTools 에서 직접 복사할 필요가 없습니다.
토큰 자동 복구: access token 만료 2분 전에 갱신하고, 오래 떠 있는 MCP 서버가 유휴 상태여도 인증을 유지하며, 401 이 나면 refresh → 디스크 재로드 → 브라우저 재추출 순으로 복구합니다. 갱신은 프로세스 간에 직렬화(
auth.json.lock)되어 CLI 와 MCP 서버가 동시에 갱신하지 않습니다.여러 브라우저 지원: Chrome, Arc, Brave, Edge, Safari (macOS)
아키텍처
주요 결정은 Architecture Decision Record(ADR)로 남겨 두었습니다.
ADR 목록 — ADR 16개 전체
핵심: Bun 런타임, Hexagonal (Ports & Adapters), 결과 중심 MCP 도구, semantic-release, Test Diamond
런타임 요구사항 — Bun 전용
akiflow-toolkit 은 Bun 런타임 전용 CLI 입니다. Node.js 로는 실행할 수 없습니다.
배포 번들이
bun:sqlite등 Bun 네이티브 모듈을 직접 사용합니다 (Chrome cookie DB 파싱 용도).shebang 은
#!/usr/bin/env -S bun --no-env-file --config=/dev/null입니다.af를 실행한 폴더의.env와bunfig.toml(preload 스크립트 포함)을 읽지 않습니다. 그래서 받아 온 저장소 안에서af나 stdio MCP 서버를 띄워도, 그 저장소의 코드나 환경변수가 섞여 들어오지 않습니다.AF_*같은 설정은 셸 환경변수로 넘겨야 합니다.컴파일 바이너리도 같은 이유로
--no-compile-autoload-dotenv --no-compile-autoload-bunfig로 빌드합니다.env -S가 필요합니다. macOS 와 GNU coreutils 8.30 이상에서 지원합니다.
Bun 은 Node.js 호환 API 를 대부분 지원하므로 기능상 제약은 거의 없습니다.
Node.js 지원이 필요하면
better-sqlite3로 교체하는 별도 마이그레이션이 필요합니다 (docs/tasks/ 참고).
설치
사전 준비
Bun 1.4+ 설치:
# macOS / Linux
curl -fsSL https://bun.sh/install | bash
# Windows (PowerShell)
powershell -c "irm bun.sh/install.ps1 | iex"CLI 설치
bun install -g akiflow-toolkit
af --help플랫폼 지원
플랫폼 | 런타임 | CLI | MCP 서버 | 자동 인증 (브라우저) | 상태 |
macOS (arm64/x64) | Bun 1.4+ | ✅ | ✅ | ✅ Chrome/Arc/Brave/Edge/Safari | 전체 지원 |
Linux (x64/arm64) | Bun 1.4+ | ✅ | ✅ | ⚠️ CDP 로그인 창 (쿠키 추출 없음) | 부분 지원 — docs/tasks/linux-support.md 참고 |
Windows (x64) | Bun 1.4+ | ✅ | ✅ | ❌ ( | 부분 지원 — docs/tasks/windows-support.md 참고 |
macOS
자동 인증을 포함해 모든 기능이 동작합니다.
bun install -g akiflow-toolkit
af auth # Chrome/Arc/Brave/Edge/Safari에서 자동 토큰 추출
af lsLinux
CLI 와 MCP 는 정상 동작합니다. Chrome cookie 자동 추출은 미구현(libsecret 미연동)이지만, af auth 가
Chrome/Chromium 을 CDP 모드로 띄워 로그인 창을 열고 토큰을 가져옵니다. 이후 갱신은 refresh token 으로 자동 처리됩니다.
bun install -g akiflow-toolkit
# Chrome/Chromium 로그인 창이 열림 → Akiflow 로그인 → 토큰 저장
af auth
# 브라우저를 띄울 수 없는 환경(SSH 등)에서는 refresh token 을 직접 입력
# af auth --manual < refresh-token.txt # refresh token 을 stdin 으로 전달
af ls제약 사항:
Chrome cookie 기반 자동 인증 미지원 (CDP 로그인 창 또는
af auth --manual)CDP 로그인에는 데스크톱 세션과
google-chrome/chromium이 필요Safari 관련 기능 없음 (Apple 전용 브라우저)
Windows
CLI 와 MCP 는 동작합니다. DPAPI(Windows 쿠키 암호화) 미연동으로 Chrome cookie 자동 추출은 불가능합니다.
PowerShell 에서:
bun install -g akiflow-toolkit
Get-Content refresh-token.txt | af auth --manual # refresh token 을 stdin 으로 전달
af ls제약 사항:
Bun Windows arm64 는 실험 단계 (x64 권장)
PowerShell 용 completion 스크립트 미제공 (bash/zsh/fish 만 지원)
Chrome cookie 기반 자동 인증 미지원
소스에서 실행 (개발용)
git clone https://github.com/kty1965/akiflow-toolkit.git
cd akiflow-toolkit
bun install
bun run dev빠른 시작
# 인증 (브라우저에서 자동 추출)
af auth
# CLI 사용
af ls
af add "New task" --today
af add "Review PR" --description "notes" --link https://github.com/org/repo/pull/1 --json
echo "long notes" | af add "From stdin" --description -
# Claude Code 에 MCP 등록 (stdio)
af setup claude-code
# 여러 세션이 서버 하나를 같이 쓰려면: 아래 참고공유 MCP 서버 (HTTP)
af --mcp (stdio) 는 Claude Code 세션마다 서버를 따로 띄웁니다. 모든 세션이 서버 하나를 —
인증 keep-alive 하나, 토큰 갱신 하나를 — 같이 쓰게 하려면 HTTP 모드로 실행합니다.
# 1. 로그인 시 서버 자동 실행: macOS 는 launchd agent, Linux 는 systemd user unit
# (127.0.0.1:7823/mcp, 포트는 AF_MCP_HTTP_PORT 로 변경)
af service install
# 2. Claude Code 가 이 서버를 보게 설정 (~/.claude.json 에 { type: "http", url, headersHelper } 기록)
af setup claude-code --http새로 여는 Claude Code 세션은 공유 서버에 붙습니다. 이미 열려 있는 세션은 재시작할 때까지 자기 stdio 서버를 계속 씁니다.
명령 | 하는 일 |
| 설치됐는지, 실행 중인지, URL 이 응답하는지 확인 |
|
|
| 서버 토큰을 새로 만들고 서비스 재시작. Claude Code 는 그대로 두면 되고, 토큰을 고정 헤더로 넣은 클라이언트만 새 토큰으로 바꿉니다 |
| 서비스 중지·제거. stdio 로 돌아가려면 |
| Claude Code 가 연결할 때 실행하는 headersHelper (아래 참고). 직접 실행하면 서버 확인이 되는지 볼 수 있습니다 |
로그: ~/Library/Logs/akiflow-mcp.log (macOS), journalctl --user -u akiflow-mcp.service -f (Linux).
launchd 와 systemd 는 셸 프로필(mise/asdf PATH, XDG_CONFIG_HOME)을 읽지 않으므로, 서비스는 af 를
절대 경로와 고정된 AF_CONFIG_DIR 로 실행합니다.
macOS 에서는 설치할 때 akiflow-mcp 이름으로 "백그라운드 항목 추가됨" 알림이 뜨고, 시스템 설정 →
일반 → 로그인 항목에 나타납니다. 이 서버가 맞습니다. launchd 는
~/Library/Application Support/akiflow-toolkit/akiflow-mcp 라는 작은 스크립트로 bun af --mcp --http 를
실행합니다. 그 화면에서 끄면 로그인 시 서버가 뜨지 않습니다.
요청에는 Authorization: Bearer ... 가 필요합니다. 서버 토큰은 첫 실행 때
~/.config/akiflow/mcp-http-token (권한 0600)에 생성됩니다. setup --http 는 이 토큰을 Claude Code 설정에
복사하지 않고, Claude Code 의 headersHelper로 af mcp auth-header 를
등록합니다. Claude Code 는 연결·재연결할 때마다, 그리고 401 을 받으면 이 명령을 실행합니다. 명령은 이렇게 동작합니다.
URL 의 호스트가 정확히
127.0.0.1이 아니면(localhost포함) 거부합니다.서버에 임의 nonce 를 보내고, 토큰을 가진 서버만 만들 수 있는 HMAC 으로 답하게 합니다. 3초 안에 맞는 답이 없으면 아무것도 출력하지 않고 실패합니다.
답이 맞을 때만 토큰에서 파생한 10분짜리 자격 증명(
Bearer v1.<만료시각>.<HMAC>)을 출력합니다. 만료되면 서버가 401 로 답하고, Claude Code 가 명령을 다시 실행해 새로 받습니다.
이전 버전의 setup --http 는 토큰을 headers 에 그대로 넣었습니다. 다시 실행하면 headersHelper 로 바뀝니다.
업그레이드했다면 먼저 af service restart 로 서버를 새 버전으로 띄운 뒤 실행하세요. 이전 서버에는 확인용
엔드포인트가 없어 연결이 실패합니다.
서버는 고정된 loopback 포트에서 받으므로, 여러 사용자 계정이 함께 쓰는 머신에서는 다른 계정이 서비스보다 먼저
7823 포트를 잡을 수 있습니다. Claude Code 는 위 확인을 통과한 서버에만 짧게 유효한 자격 증명을 보내므로 이 경우
연결이 실패할 뿐 토큰이 새지 않습니다. 반면 Cursor·Claude Desktop 처럼 headersHelper 가 없어 토큰을 고정 헤더로
보내는 클라이언트는 여전히 토큰을 넘겨줄 수 있으니, 공유 머신에서는 그런 클라이언트에 stdio
(af setup cursor, af setup claude-desktop)를 쓰세요. 토큰이 새어 나갔을 수 있다면 af service rotate-token 으로
바꿉니다. 설계 근거는 ADR-0022에 있습니다.
Linux 에서 unit 을 직접 관리하려면 함께 들어 있는 systemd user unit 을 설치합니다.
mkdir -p ~/.config/systemd/user
cp contrib/systemd/akiflow-mcp.service ~/.config/systemd/user/
# af 가 ~/.local/bin/af 에 없으면 ExecStart 수정
systemctl --user daemon-reload
systemctl --user enable --now akiflow-mcp
journalctl --user -u akiflow-mcp -f # 로그user 서비스는 로그아웃하면 멈춥니다. 계속 띄우려면 lingering 을 켭니다(loginctl enable-linger $USER).
운영 팁
공유 HTTP 서버를 돌릴 때 자주 쓰는 명령입니다.
하고 싶은 것 | 명령 |
살아 있는지 확인 |
|
시작 로그 확인 ( |
|
인증 상태 확인 |
|
새 버전 반영 (npm 설치) |
|
소스 변경 반영 (로컬 바이너리, Linux x64) |
|
로그아웃 후에도 유지 (Linux) |
|
로컬 바이너리로 돌린다면 재배포는 바이너리를 다시 빌드해야 합니다. 로컬 바이너리 등록을 따랐다면 unit 은
~/.local/bin/af→dist/af-<platform>(compiled binary)를 실행합니다.bun run build는dist/index.js만 바꾸므로 서버에 반영되지 않습니다. 빌드 후af ls --help처럼 새 옵션이 보이는지로 확인하세요.파일 위치: 인증 정보는
~/.config/akiflow/auth.json, HTTP 서버 토큰은~/.config/akiflow/mcp-http-token입니다. 토큰을 바꿀 때는 파일을 지우지 말고af service rotate-token을 쓰세요. headersHelper 로 설정한 Claude Code 는 다시 설정할 필요가 없습니다.로그 레벨: 서비스는
LOG_LEVEL=info로 시작 줄을 로그에 남깁니다. 디버깅할 때는 unit(Environment=LOG_LEVEL=debug후daemon-reload)이나 macOS plist 에서debug로 바꾸고 재시작합니다.af service install을 다시 실행하면info로 돌아갑니다.CLI 인증과 브라우저 로그인은 별개입니다.
af auth로 다시 인증해도 다른 브라우저 세션(예: 브라우저 자동화 도구)이 로그인되지는 않습니다.af 는 한 Akiflow 계정에 머뭅니다. MCP 를 처음 쓰기 전과
af auth logout뒤에는 터미널에서af auth를 한 번 실행하세요. 자동 복구(MCP keep-alive, 401 뒤 재시도)는 스스로 로그인하지 않고, 다른 계정의 브라우저 토큰은 거부하고 경고만 남깁니다.계정 전환은 먼저 묻습니다.
af auth refresh(그리고af auth,af auth --manual)는 저장하기 전에Switch Akiflow account from <이전> to <새 계정>? [y/N]을 묻고,y(또는yes)가 아니면 저장된 계정을 그대로 둡니다. 터미널이 없는 스크립트에서는--switch-account를 붙여야 전환됩니다.
인증 확인
af auth 후 CLI 가 실제 Akiflow API 와 통신하는지 네 단계 깊이로 확인할 수 있습니다.
# 1. 자격 증명이 저장되어 있는가?
af auth status
# → Authenticated: active
# source: indexeddb
# expiresAt: 2026-04-19T13:28:30.768Z
# 2. 저장된 토큰이 실제로 Akiflow API 에 닿는가? (진단 probe)
bun run scripts/mcp-api-probe.ts
# → ✓ Akiflow API reachable AND token accepted.
# status 200 OK, body length 5MB+
# 3. 실제 MCP 클라이언트가 서버를 띄우고 할 일을 왕복 처리하는가?
bun run scripts/mcp-live-demo.ts
# → 9단계 실행: spawn → tools/list → auth_status → READ precheck
# → create_task → verify inbox → complete_task → verify done
# 정상이면 "✓ All Tier 2 E2E checks passed." 로 끝남
# 4. 에디터에서 직접 시도
# af setup claude-code (또는 --http), Claude Code 재시작 후
# "오늘 할 일 보여줘" 라고 물어보기문제가 생기면 docs/akiflow-token-acquisition.md 를 읽어 보세요. 이중 인증 방식(Laravel 세션 쿠키 vs OAuth JWT), 4단계 추출 순서(IndexedDB → Cookie → Safari → Manual), withAuth 복구 순서, 알려진 실패 사례 6가지와 해결책을 다룹니다.
auth_status 가 source: cookie 인데 API 호출이 fetch failed / Header has invalid value 로 실패할 때 가장 흔한 해결책:
osascript -e 'tell application "Google Chrome" to quit' # leveldb LOCK 해제
bun run src/index.ts auth logout
bun run src/index.ts auth # IndexedDB 다시 스캔
bun run src/index.ts auth status # source: indexeddb 기대문서
개발
사전 준비
Bun >= 1.4.0
pre-commit (
brew install pre-commit또는pip install pre-commit)
설정
git clone https://github.com/kty1965/akiflow-toolkit.git
cd akiflow-toolkit
bun install
pre-commit install --install-hooks명령
bun run dev # Hot reload 개발 모드
bun test # 테스트 실행
bun run lint # Biome 린트
bun run build # npm 배포용 dist/ 빌드
bun run build:binary # 크로스 플랫폼 바이너리 빌드기여 흐름: 커밋 메시지와 stacked PR
main 에 머지되면 semantic-release 가 커밋 메시지를 읽어 버전을 올리고 npm 에 배포합니다.
그래서 커밋 메시지와 머지 방식이 곧 릴리즈 결과입니다.
커밋은 Conventional Commits 를 따릅니다(
fix:→ patch,feat:→ minor). pre-commit 의 commitlint 가 검사합니다.한 PR 에 성격이 다른 변경이 섞이면
fix/feat/docs커밋으로 나눕니다.머지는 merge commit 으로 합니다. squash 하지 않습니다. squash 하면 커밋 헤더가 하나로 합쳐져 semantic-release 가 첫 타입만 봅니다. 실제로
fix+feat를 squash 했다가 minor 대신 patch(1.6.1)가 나온 적이 있습니다.
gh pr merge <PR번호> --merge스택의 맨 위 PR 은 머지 직전에 base 를 main 으로 바꿉니다.
gh pr edit <맨 위 PR> --base main
gh pr merge <맨 위 PR> --merge의존하는 변경이 여러 개면 stacked PR 로 나눕니다. 각 PR 은 바로 아래 브랜치를 base 로 삼습니다.
main ← fix/auth-refresh-expired-token (#98)
← feat/auth-proactive-refresh (#99)
← feat/mcp-auth-keep-alive (#100)
← feat/mcp-http-shared-server (#101)
← docs/readme-refresh (#103)아래 PR 부터 차례로 리뷰합니다. 각 PR 의 diff 는 바로 아래 브랜치 대비라 작게 유지됩니다.
아래 브랜치를 고치면 위 브랜치들을 차례로 rebase 하고 push 합니다.
전부 승인되면 맨 위 PR 의 base 를
main으로 바꾸고 merge commit 으로 한 번 머지합니다(위 명령). 이 저장소에서는 #98~#101 도 같은 머지 커밋으로 merged 처리됐습니다. 아래 PR 이 열린 채로 남으면 손으로 닫습니다.커밋이 하나하나 보존되므로 semantic-release 가 전부 반영합니다. 위 스택은 머지 한 번으로 1.7.0 (fix 2개, feat 5개)이 되었습니다.
로컬 바이너리 등록
배포 전 빌드를 Claude Code / Cursor / Claude Desktop 에서 쓰려면 독립 실행 바이너리를 빌드해 PATH 에 심볼릭 링크합니다(~/.local/bin 이 앞에 있으면 bun install -g 로 설치한 것보다 우선합니다). af setup 은 에디터 설정을 원자적으로 병합해 쓰므로 기존 mcpServers 항목은 유지됩니다.
설치
# 1. 플랫폼용 독립 실행 바이너리 빌드 (Bun 런타임 내장)
bun run build:darwin-arm64 # Apple Silicon
# bun run build:darwin-x64 # Intel Mac
# bun run build:linux-x64 # Linux x64
# bun run build:linux-arm64 # Linux arm64
# 2. PATH 디렉터리에 심볼릭 링크 (sudo 불필요)
mkdir -p ~/.local/bin
ln -sf "$PWD/dist/af-darwin-arm64" ~/.local/bin/af
# 3. ~/.local/bin 이 PATH 에 있는지 확인
echo "$PATH" | tr ':' '\n' | grep -q "$HOME/.local/bin" \
|| echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
# 새 셸을 열거나: source ~/.zshrc
# 4. 동작 확인
af --help
af auth status # 기대값: source: indexeddb, active
# 5. AI 에디터에 MCP 서버 등록
af setup claude-code # → ~/.claude.json (stdio)
# af service install && af setup claude-code --http # → 모든 세션이 함께 쓰는 HTTP 서버 하나
# af setup cursor # → ~/.cursor/mcp.json
# af setup claude-desktop # → ~/Library/Application Support/Claude/... (macOS 전용)
# 6. 에디터 재시작 후 도구 호출 시도 (예: "오늘 inbox 보여줘")나중에 소스를 고치면 1단계만 다시 실행하면 됩니다. 심볼릭 링크는 새 바이너리를 계속 가리킵니다. 공유 HTTP 서버를 쓰고 있다면 서버도 재시작하세요(af service restart).
제거
# 1. 등록한 모든 에디터 설정에서 akiflow 항목 제거
jq 'del(.mcpServers.akiflow)' ~/.claude.json > ~/.claude.json.new && mv ~/.claude.json.new ~/.claude.json
[ -f ~/.cursor/mcp.json ] && jq 'del(.mcpServers.akiflow)' ~/.cursor/mcp.json > ~/.cursor/mcp.json.new && mv ~/.cursor/mcp.json.new ~/.cursor/mcp.json
# Claude Desktop (macOS):
# CONFIG=~/Library/Application\ Support/Claude/claude_desktop_config.json
# jq 'del(.mcpServers.akiflow)' "$CONFIG" > "$CONFIG".new && mv "$CONFIG".new "$CONFIG"
# 1b. 공유 HTTP 서버를 썼다면
af service uninstall
rm -f ~/.config/akiflow/mcp-http-token
# 2. PATH 링크 제거
rm -f ~/.local/bin/af
# 3. (선택) 컴파일된 바이너리 삭제
rm -rf dist/
# 4. (선택) 저장된 인증 정보 폐기
bun run src/index.ts auth logout # 또는: rm ~/.config/akiflow/auth.json
# 5. 에디터 재시작면책
DISCLAIMER.md 를 참고하세요.
라이선스
MIT © kty1965
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Official Akiflow MCP for tasks, calendars, scheduling, time slots, and meeting transcripts.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that enables advanced task and project management in Todoist via Claude Desktop and other MCP-compatible clients.371 npm2MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server implementation compatible with Todoist API, allowing AI agents to interact with task management functionality through standardized MCP tools.51MIT
- AlicenseBqualityDmaintenanceMCP server for Akiflow task management with Meeting Assistant support. Enables creating, updating, scheduling tasks, managing calendars, and accessing meeting recordings, summaries, and action items.2228MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server that connects AI assistants to your TickTick tasks, enabling task management through natural language.81MIT