Logotipo de MCP 服务器 for Things3

MCP 服务器 for Things3

Comunidad
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.

Editordrjforrest
Repositoriomcp-things3
IdiomaPython
Forks
12
Estrellas
74
Herramientas disponibles
0
Tipo de transportestdio
Categorías
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    MCP 服务器 for Things3 ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    74 estrellas y 12 forks en el repositorio enlazado.

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

Instalación

TypingMind
Requisitos:

Node.js 18+

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

Usa el MCP de MCP 服务器 for Things3 con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado MCP 服务器 for Things3, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade MCP 服务器 for Things3 como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de MCP 服务器 for Things3.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "drjforrest-mcp-things3": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-things3"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de MCP 服务器 for Things3 y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de MCP 服务器 for Things3.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar MCP 服务器 for Things3 para ayudarme con esta tarea?
MCP 服务器 for Things3
Claro. Lo he leído.
Esto he encontrado usando MCP 服务器 for Things3.

Preguntas frecuentes

¿Para qué sirve el servidor MCP MCP 服务器 for Things3?

MCP 服务器 for Things3 es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP MCP 服务器 for Things3 con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar MCP 服务器 for Things3 con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de MCP 服务器 for Things3 con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con MCP 服务器 for Things3 conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP MCP 服务器 for Things3 a TypingMind?

MCP 服务器 for Things3 funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP MCP 服务器 for Things3 en TypingMind?

MCP 服务器 for Things3 ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP MCP 服务器 for Things3?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si MCP 服务器 for Things3 requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇