
agiletortoise/drafts-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
agiletortoise/drafts-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/agiletortoise/drafts-mcp-server.
Обзор
agiletortoise/drafts-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/agiletortoise/drafts-mcp-server.
Обзор (машинный перевод)
Сервер Model Context Protocol (MCP), который позволяет помощникам ИИ взаимодействовать с приложением Drafts на macOS через AppleScript.
Для дополнительного обсуждения использования см. Форум Проектов
Особенности
Управление проектами: Создавать, читать, обновлять и искать черновики
- ️ Тэги: Добавить и управлять тегами на черновиках Рабочие пространства: Список и черновики запросов из конкретных рабочих пространств Действия: запускать проекты действий программно
- Поиск: Полнотекстовый поиск по всем черновикам ** Флаги и архив**: Флаг, архив или драфт
Инструмент CLI
В дополнение к MCP-серверу этот пакет включает в себя автономный CLI для взаимодействия с Drafts непосредственно с терминала.
###Установка CLI
После установки команда drafts доступна по всему миру.
Использование CLI
Выход по умолчанию считываемый человеком. Добавить --json для машиночитаемого вывода JSON.
Требования
- macOS (AppleScript только для macOS)
- Установка приложения v50.0.3 или выше Node.js 18 или выше
##Установка
Быстрый старт (после публикации в npm)
Вам нужно будет установить Узел на вашем Mac, чтобы сделать команду npx доступной.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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"]
}
}
}