Logo vun MCP 服务器 for Things3

MCP 服务器 for Things3

Communautéit
drjforrest

A Model Context Protocol for reading todos and writing todos and projects in the macOS app Things3 using a combination of Applescript and x-call URLs.

Editeurdrjforrest
Repositorymcp-things3
SproochPython
Forks
12
Stären
74
Disponibel Tools
0
Transporttypstdio
Kategorien
Linken
  • Tools mat KI-Workflows verbannen

    MCP 服务器 for Things3 stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    74 Stären an 12 Forks aus dem verlinkte Repository.

MseeP.ai Security Assessment Badge

MCP Server for Things3

A robust MCP (Model Context Protocol) server providing comprehensive integration with Things3, allowing you to create, manage, and search tasks and projects through the MCP protocol. Features improved error handling, secure URL encoding, and enhanced AppleScript integration.

Features

  • ✅ Create Projects: Create new projects in Things3 with full metadata support
  • ✅ Create Todos: Create new to-dos with detailed properties including checklists, tags, and dates
  • ✅ View Tasks: List tasks from inbox, today's list, or all projects
  • ✅ Complete Tasks: Mark todos as completed by searching for their title
  • ✅ Search Functionality: Search through all todos by title or content
  • ✅ Robust Error Handling: Comprehensive validation and error recovery
  • ✅ Secure URL Encoding: Proper handling of special characters and unicode
  • ✅ AppleScript Integration: Safe, non-JSON string concatenation approach

Installation

Prerequisites

  • macOS with Things3 installed
  • Python 3.8+
  • Things3 running (for real-time operations)

Install the Server

  1. Clone this repository:

    bash
    git clone <repository-url>
    cd mcp-things3
  2. Install using pip:

    bash
    pip install -e .
  3. The server will be available as mcp-server-things3

Tools Available

View Operations

view-inbox

View all todos in the Things3 inbox.

  • Parameters: None
  • Returns: List of inbox todos with due dates and scheduling info

view-projects

View all projects in Things3.

  • Parameters: None
  • Returns: List of all projects with their titles

view-todos

View all todos in today's list.

  • Parameters: None
  • Returns: List of today's todos with metadata

Creation Operations

create-things3-project

Creates a new project in Things3.

  • Required: title (string)
  • Optional:
    • notes (string)
    • area (string)
    • when (string) - Date/time to start
    • deadline (string) - Due date
    • tags (array of strings)

Example:

json
{
  "title": "Website Redesign",
  "notes": "Complete overhaul of company website",
  "area": "Work",
  "deadline": "2024-03-15",
  "tags": ["urgent", "web-dev"]
}

create-things3-todo

Creates a new to-do in Things3.

  • Required: title (string)
  • Optional:
    • notes (string)
    • when (string) - Date/time to start
    • deadline (string) - Due date
    • checklist (array of strings)
    • tags (array of strings)
    • list (string) - Project or area to assign to
    • heading (string) - Group under this heading

Example:

json
{
  "title": "Review design mockups",
  "notes": "Check the new homepage designs",
  "list": "Website Redesign", 
  "deadline": "2024-02-20",
  "tags": ["review"],
  "checklist": ["Check mobile responsiveness", "Verify brand guidelines", "Test accessibility"]
}

Management Operations

complete-things3-todo

Mark a todo as completed by searching for its title.

  • Required: title (string) - Title or partial title to search for
  • Returns: Success/failure message

Example:

json
{
  "title": "Review design"
}

search-things3-todos

Search for todos by title or content.

  • Required: query (string) - Search term
  • Returns: List of matching todos with status and metadata

Example:

json
{
  "query": "website"
}

Integration with Claude

This MCP server is designed to work seamlessly with Claude AI. Once configured, you can use natural language to manage your Things3 tasks:

  • "Create a project called 'Q1 Planning' with a deadline of March 31st"
  • "Add a todo to review the budget with a checklist of tasks"
  • "Show me all my tasks for today"
  • "Mark the 'Call client' task as completed"
  • "Search for all todos related to the website project"

Configuration

MCP Client Configuration

Add to your MCP client configuration (e.g., Claude Desktop config):

json
{
  "mcpServers": {
    "things3": {
      "command": "mcp-server-things3",
      "args": []
    }
  }
}

Things3 Setup

  1. Ensure Things3 is installed and running
  2. Grant necessary permissions when prompted for AppleScript access
  3. The server will validate Things3 availability before operations

Architecture

Components

  • server.py: Main MCP server implementation with tool definitions and handlers
  • applescript_handler.py: Robust AppleScript integration with safe data parsing
  • URL Encoding: Proper x-callback-url parameter encoding for special characters
  • Error Handling: Comprehensive validation and graceful error recovery

Security Features

  • Input Sanitization: All user inputs are properly escaped for AppleScript
  • URL Encoding: Special characters and unicode properly handled in URLs
  • Validation: Things3 availability checked before operations
  • Error Recovery: Graceful handling of AppleScript and system errors

Development

Running Tests

bash
python test_things3.py

Debugging

The server includes comprehensive logging. Set log level for debugging:

bash
export PYTHONPATH="."
python -c "
import logging
logging.basicConfig(level=logging.DEBUG)
from src.mcp_server_things3.server import main
import asyncio
asyncio.run(main())
"

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Ensure all tests pass
  5. Submit a pull request

Troubleshooting

Common Issues

"Things3 is not available"

  • Ensure Things3 is installed and running
  • Grant AppleScript permissions when prompted
  • Check Things3 is not in a permission-restricted mode

"Failed to execute AppleScript"

  • Verify macOS security settings allow AppleScript
  • Ensure Things3 has necessary accessibility permissions
  • Try restarting Things3

URL encoding issues with special characters

  • The server now properly handles unicode and special characters
  • If issues persist, check the logs for specific URL construction errors

Performance Notes

  • AppleScript operations may have slight delays
  • Large todo lists (1000+ items) may take longer to search
  • Consider using specific searches rather than broad queries for better performance

License

MIT License - see LICENSE file for details.

Changelog

v0.1.0

  • Initial release with basic CRUD operations
  • Comprehensive error handling and validation
  • Secure URL encoding and AppleScript integration
  • Search and completion functionality
  • Robust data parsing without JSON string concatenation

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "drjforrest-mcp-things3": {
      "command": "",
      "args": []
    }
  }
}

MCP 服务器 for Things3 MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal MCP 服务器 for Things3 verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

MCP 服务器 for Things3 als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu MCP 服务器 for Things3 an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "drjforrest-mcp-things3": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-things3"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu MCP 服务器 for Things3. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu MCP 服务器 for Things3.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat MCP 服务器 for Things3?
MCP 服务器 for Things3
Jo. Ech hunn et gelies.
Dat hunn ech mat MCP 服务器 for Things3 fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server MCP 服务器 for Things3 benotzt?

MCP 服务器 for Things3 ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech MCP 服务器 for Things3 MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir MCP 服务器 for Things3 mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat MCP 服务器 for Things3 MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann MCP 服务器 for Things3 verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech MCP 服务器 for Things3 MCP mat TypingMind?

MCP 服务器 for Things3 leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt MCP 服务器 for Things3 MCP an TypingMind zur Verfügung?

MCP 服务器 for Things3 stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir MCP 服务器 for Things3 MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann MCP 服务器 for Things3 eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇