AT

acebaggins/taskwarrior-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

22 stars 6 forks 质量 62 趋势 10MIT

任务战士MCP!

概览

- 任务创建、修改与删除 - 任务查询与过滤 - 任务依赖管理 - 任务注释和备注 - 任务重复处理 - 实时任务更新 - 带自动补全的智能提示 Claude Desktop 加载 MCP 的方式是生成一个新进程,而不是 shell 进程,所以它不会有你的环境信息。如果你用类似 mise 的东西,那什么都不行,错误信息也不太好。 有人建议在路径中硬编码,我想这确实有效,但我从这里解决了问题,用 open -a Claude 启动了 Claude(希望是从一个不会后悔的终端配置文件里)。 把这个添加到你的配置里(claude_desktop_config.json): 使用 MCP 检查器测试服务器: - task.create:创建包含描述、项目、标签、优先级和日期的新任务 - task.update:更新现有任务的属性 - task.delete:按ID删除任务 - task.get:获取特定任务的详细信息。

概述(AI 翻译)

一个任务战士的MCP。

特色

  • 任务创建、修改与删除
  • 任务查询与筛选
  • 任务依赖管理
  • 任务注释和注释
  • 任务重现处理
  • 实时任务更新
  • 带自动补全的智能提示

安装

用途

与NPX合作

配置

克劳德桌面笔记

Claude Desktop 加载 MCP 的方式是通过生成一个新进程,而不是 shell 进程,所以它不会有你的环境信息。如果你用类似 mise 的格式,那就什么都不行,错误信息也不太好。

有人建议在路径中硬编码,我觉得这方法有效,但我从这里修正了,用open -a Claude启动了Claude(希望是从一个你不会后悔的终端配置文件里)。

把这个添加到你的配置里 (claude_desktop_config.json):

测试

使用 MCP 检查器测试服务器:

API

任务行动

  • task.create:创建包含描述、项目、标签、优先级和日期的新任务
  • task.update:更新现有任务的属性
  • task.delete:通过ID删除任务
  • task.get:获取特定任务的详细信息
  • task.list:带可选过滤功能的任务列表

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Taskwarrior MCP

An MCP for Taskwarrior.

Features

  • Task creation, modification, and deletion
  • Task querying and filtering
  • Task dependency management
  • Task annotations and notes
  • Task recurrence handling
  • Real-time task updates
  • Smart prompts with autocompletion

Installation

npm install @tfr/taskwarrior-mcp

Usage

With npx

npx taskwarrior-mcp

Config

Notes for Claude Desktop

The way Claude Desktop loads an MCP is by spawning a new process, not a shell process, so it doesn’t have any of your env info. If you use something like mise then nothing works and the error messages aren’t great.

Some people suggest hardcoding in the paths, which works, I suppose, but I took the fix from here and launch Claude with open -a Claude (hopefully from a terminal profile where you won’t regret it).

Add this to your config (claude_desktop_config.json):

{
  "mcpServers": {
    "taskwarrior": {
      "command": "npx",
      "args": [
        "-y",
        "taskwarrior-mcp"
      ]
    }
  }
}

Testing

To test the server using the MCP Inspector:

npx @modelcontextprotocol/inspector node dist/index.js

API

Task Operations

  • task.create: Create a new task with description, project, tags, priority, and dates
  • task.update: Update an existing task’s properties
  • task.delete: Delete a task by ID
  • task.get: Get detailed information about a specific task
  • task.list: List tasks with optional filtering

Task Management

  • task.start: Start working on a task (starts timer and optionally adds a note)
  • task.stop: Stop working on a task (stops timer and optionally adds a note)
  • task.complete: Mark a task as complete (optionally with a completion note)
  • task.annotate: Add a note or annotation to a task (annotations are timestamped)

Query Operations

  • task.query: Execute custom Taskwarrior filter queries
  • task.filter: Filter tasks by specific criteria
  • task.search: Search tasks by text content

Resources

The Taskwarrior MCP exposes the following resources that can be subscribed to for real-time updates:

Task List Resource

  • URI: task:///list
  • Description: Lists all active (pending) tasks
  • MIME Type: application/json
  • Content: Array of task objects with basic task information
  • Subscription: Yes - Updates when tasks are created, modified, or deleted
  • Example Response:
{
  "contents": [{
    "uri": "task:///list",
    "mimeType": "application/json",
    "text": "[{\"id\": 1, \"description\": \"Implement MCP server\", \"project\": \"development\", \"tags\": [\"backend\", \"mcp\"], \"priority\": \"H\"}]"
  }]
}

Task Detail Resource

  • URI Template: task:///task/{id}
  • Description: Detailed information about a specific task
  • MIME Type: application/json
在 GitHub 查看完整 README

安装

npx -y taskwarrior-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "taskwarrior": { "command": "npx", "args": [ "-y", "taskwarrior-mcp" ] } } }