vault_clone
🚧 설계 단계 — 아직 구현 안 됨
이 페이지는 ainote 의 향후 기능을 미리 문서화한 것입니다. 현재 @ainote/mcp v1.1.x 에는 vault / sync 도구가 포함돼 있지 않습니다. 도구 호출 시 Tool not found 에러를 받게 됩니다.
vault 를 로컬에 git clone. 자세한 가이드: vault/clone.
시그니처
모드 A — ainote vault → 로컬
json
{
"name": "vault_clone",
"arguments": {
"name": "personal",
"destination": "/Users/seunghan/notes/personal"
}
}모드 B — 외부 git → 새 vault
json
{
"name": "vault_clone",
"arguments": {
"name": "obsidian-backup",
"git_remote": "git@github.com:me/obsidian.git",
"destination": "/Users/seunghan/notes/obsidian"
}
}| 파라미터 | 타입 | 설명 |
|---|---|---|
name | string | ✅ vault 이름 |
destination | string | ✅ 로컬 경로 (절대) |
git_remote | string | (모드 B) 외부 git URL |
force | boolean | destination 덮어쓰기 |
응답
json
{
"name": "personal",
"destination": "/Users/seunghan/notes/personal",
"file_count": 123,
"size_bytes": 47000000,
"last_commit": {
"sha": "abc123",
"ts": "2026-05-07T14:32:00Z",
"device": "macmini-2026-04",
"message": "sync from macmini"
}
}에러
| 코드 | 메시지 |
|---|---|
| -32602 | vault not found |
| -32602 | destination not empty |
| -32603 | git auth failed |
Claude
personal vault 를 ~/notes/personal 에 clone
~/Documents/Obsidian/MyVault 를 새 ainote vault 로 등록