
agiletortoise/drafts-mcp-server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
agiletortoise/drafts-mcp-server는 MCP 서버 후보자는 https://github.com/agiletortoise/drafts-mcp-server.]에서 수입했습니다
개요
agiletortoise/drafts-mcp-server는 MCP 서버 후보자는 https://github.com/agiletortoise/drafts-mcp-server.]에서 수입했습니다
개요(AI 번역)
A Model Context Protocol (MCP) 서버는 AppleScript를 통해 macOS에서 Drafts 앱과 상호 작용할 수 있는 AI 조수를 가능하게 합니다.
추가 토론을 위해, Drafts 포럼을 참조하십시오
특징
- ❤️Draft Management**: 생성, 읽기, 업데이트 및 검색 초안
- T️Tags: 태그 추가 및 관리
- Workspaces: 특정 작업 공간에서 목록 및 쿼리 초안
- nam Actions: Drafts 액션 프로그래밍을 실행
- 검색**: 모든 초안에서 전체 텍스트 검색
- ** XFlags & Archive**: 플래그, 아카이브, 또는 쓰레기 초안
CLI 도구
MCP 서버 외에도, 이 패키지에는 독립형 drafts CLI가 포함되어 있습니다.
CLI 설치
설치 후, drafts 명령은 전 세계적으로 사용할 수 있습니다.
CLI 사용
출력은 기본적으로 인간의 읽기 가능. --json]를 기계식 JSON 출력에 추가합니다.
요구 사항
- macOS (AppleScript는 macOS 전용)
- 초안 앱 v50.0.3 이상 설치
- Node.js 18 이상
설치
빠른 시작 (npm에 게시 후)
Mac에 설치된 Node가 설치되어 있어야 합니다. npx] 명령을 사용할 수 있습니다.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Drafts MCP Server
A Model Context Protocol (MCP) server that enables AI assistants to interact with the Drafts app on macOS through AppleScript.
For additional discussion of uses, see the Drafts forum
Features
- 📝 Draft Management: Create, read, update, and search drafts
- 🏷️ Tags: Add and manage tags on drafts
- 📂 Workspaces: List and query drafts from specific workspaces
- ⚡ Actions: Run Drafts actions programmatically
- 🔍 Search: Full-text search across all drafts
- 🚩 Flags & Archive: Flag, archive, or trash drafts
CLI Tool
In addition to the MCP server, this package includes a standalone drafts CLI for interacting with Drafts directly from the terminal.
CLI Installation
This assumes you have node installed on your device. If you do not, install Homebrew, and brew install node before following these instructions.
# Install globally from npm
npm install -g @agiletortoise/drafts-mcp-server
# Or link locally for development
git clone https://github.com/agiletortoise/drafts-mcp-server.git
cd drafts-mcp-server
npm install
npm run build
npm link
After installation, the drafts command is available globally.
CLI Usage
Output is human-readable by default. Add --json for machine-readable JSON output.
# Workspaces
drafts workspace list
drafts workspace current
drafts workspace open "Work"
drafts workspace drafts "Work" --folder inbox
# Tags
drafts tag list
drafts tag get "work"
# List and search drafts
drafts list
drafts list --folder inbox --tag work --flagged
drafts list --created-after 2025-01-01 --modified-before 2025-06-30
drafts search "meeting notes"
# Single draft operations
drafts current
drafts get
drafts create "Hello world" --tag notes --tag ideas --flagged
drafts create "Urgent" --flag-type red # --flag-type implies --flagged
drafts update "Updated content"
drafts open
# Organize drafts
drafts flag
drafts flag --unflag
drafts flag --flag-type blue
drafts archive
drafts inbox
drafts trash
drafts add-tags important urgent
# Actions
drafts action list
drafts action run "Send to Email"
# JSON output for scripting
drafts --json list --folder inbox
drafts --json search "budget"
Requirements
- macOS (AppleScript is macOS-only)
- Drafts app v50.0.3 or greater installed
- Node.js 18 or higher
Installation
Quick Start (After Publishing to npm)
You will need to have Node installed on your Mac so make the npx command available. If you do not already have Node installed, you can do so with Homebrew using:
brew install node
Once published, use with npx - no installation needed:
npx @agiletortoise/drafts-mcp-server
설치
npx @agiletortoise/drafts-mcp-server설정
{
"mcpServers": {
"drafts": {
"command": "npx",
"args": ["@agiletortoise/drafts-mcp-server"]
}
}
}