
agiletortoise/drafts-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
agiletortoise/drafts-mcp-server は [https://github.com/agiletortoise/drafts-mcp-server. からインポートされた MCP サーバー の候補です
概要
agiletortoise/drafts-mcp-server は [https://github.com/agiletortoise/drafts-mcp-server. からインポートされた MCP サーバー の候補です
概要(AI 翻訳)
AIアシスタントがmacOS上のDraftsアプリとAppleScriptを介してやり取りすることを可能にするモデルコンテキストプロトコル(MCP)サーバー。
追加の議論のために、Dラフトフォーラムを参照してください
##特徴
- リリース** 作成、読み込み、更新、および検索ドラフト
- ️️ タグ: ドラフトにタグを追加して管理
- ワークスペース:特定のワークスペースからのリストとクエリドラフト
- ⚡Actions: Draftsアクションをプログラム的に実行する
- 絶対 Search: 全ドラフト全体で全文検索
- 退場とアーカイブ**:旗、アーカイブ、またはゴミ草案
CLI ツール
MCP サーバーに加えて、このパッケージにはスタンドアローン [drafts] CLI があり、ターミナルから直接 Drafts と対話できます。
##CLI インストール
インストール後、[drafts] コマンドはグローバルで利用できます。
##CLI の使用法
出力はデフォルトで人間読みやすいです。 機械読みやすいJSON出力用の--jsonを追加します。
要件
- macOS (AppleScript は macOS のみ)
- Draftsアプリ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"]
}
}
}