Skip to main content
Glama
MCP Task Manager Server

MCP Task Manager Server

by bsmi021

MCP タスクマネージャーサーバー

SQLite データベースを使用してクライアント主導のプロジェクトおよびタスク管理用のバックエンド ツールを提供するローカル モデル コンテキスト プロトコル (MCP) サーバー。

概要

このサーバーは、個別のプロジェクト内の構造化されたタスクデータを管理する必要があるローカルMCPクライアント(AIエージェントやスクリプトなど)の永続的なバックエンドとして機能します。データストレージを処理し、インタラクションのための標準化されたツールセットを提供します。一方、戦略的なワークフローロジックはクライアント内に存在します。

主な機能:

  • **プロジェクトベース:**タスクは個別のプロジェクト内で整理されます。

  • **SQLite 永続性:**シンプルで自己完結的なデータ ストレージとして、ローカル SQLite ファイル (デフォルトでは./data/taskmanager.db ) を使用します。

  • **クライアント主導:**クライアントにツールを提供しますが、ワークフローを指示しません。

  • **MCP 準拠:**ツールの定義と通信のためのモデル コンテキスト プロトコルに準拠します。

  • **タスク管理:**プロジェクトの作成、タスクの追加、タスクの一覧表示/表示、ステータスの更新、タスクのサブタスクへの拡張、次に実行可能なタスクの特定をサポートします。

  • **インポート/エクスポート:**プロジェクト データを JSON にエクスポートし、JSON からインポートして新しいプロジェクトを作成できます。

Related MCP server: MATRIX

実装されたMCPツール

MCP クライアントでは次のツールが利用可能です。

  • createProject :

    • **説明:**新しい空のプロジェクトを作成します。

    • パラメータ: projectName (文字列、オプション、最大 255)

    • 戻り値: { project_id: string }

  • addTask :

    • **説明:**プロジェクトに新しいタスクを追加します。

    • パラメータ: project_id (文字列、必須、UUID)、 description (文字列、必須、1-1024)、 dependencies (文字列[]、オプション、最大 50)、 priority (列挙型 'high'|'medium'|'low'、オプション、デフォルト 'medium')、 status (列挙型 'todo'|'in-progress'|'review'|'done'、オプション、デフォルト 'todo')

    • **戻り値:**作成されたタスクの完全なTaskDataオブジェクト。

  • listTasks :

    • **説明:**オプションのフィルタリングとサブタスクの組み込みを使用して、プロジェクトのタスクを一覧表示します。

    • パラメータ: project_id (文字列、必須、UUID)、 status (列挙型 'todo'|'in-progress'|'review'|'done'、オプション)、 include_subtasks (ブール値、オプション、デフォルトは false)

    • 戻り値: TaskDataまたはStructuredTaskDataオブジェクトの配列。

  • showTask :

    • **説明:**依存関係や直接のサブタスクなど、特定のタスクの完全な詳細を取得します。

    • パラメータ: project_id (文字列、必須、UUID)、 task_id (文字列、必須)

    • 戻り値: FullTaskDataオブジェクト。

  • setTaskStatus :

    • 説明: 1 つ以上のタスクのステータスを更新します。

    • パラメータ: project_id (文字列、必須、UUID)、 task_ids (文字列[]、必須、1-100)、 status (列挙型 'todo'|'in-progress'|'review'|'done'、必須)

    • 戻り値: { success: true, updated_count: number }

  • expandTask :

    • **説明:**親タスクをサブタスクに分割し、必要に応じて既存のタスクを置き換えます。

    • パラメータ: project_id (文字列、必須、UUID)、 task_id (文字列、必須)、 subtask_descriptions (文字列[]、必須、1〜20、それぞれ1〜512)、 force (ブール値、オプション、デフォルトは false)

    • **戻り値:**新しいサブタスクを含む更新された親FullTaskDataオブジェクト。

  • getNextTask :

    • **説明:**ステータス (「todo」)、依存関係 (「done」)、優先度、作成日に基づいて、次に実行可能なタスクを識別します。

    • パラメータ: project_id (文字列、必須、UUID)

    • **戻り値:**次のタスクのFullTaskDataオブジェクト。準備ができていない場合はnull 。

  • exportProject :

    • **説明:**完全なプロジェクト データを JSON 文字列としてエクスポートします。

    • パラメータ: project_id (文字列、必須、UUID)、 format (列挙型 'json'、オプション、デフォルト 'json')

    • **戻り値:**プロジェクトを表す JSON 文字列。

  • importProject :

    • **説明:**エクスポートされた JSON 文字列から新しいプロジェクトを作成します。

    • パラメータ: project_data (文字列、必須、JSON)、 new_project_name (文字列、オプション、最大 255)

    • **戻り値:**新しく作成されたプロジェクトの{ project_id: string } 。

  • updateTask :

    • **説明:**既存のタスクの特定の詳細 (説明、優先度、依存関係) を更新します。

    • パラメータ: project_id (文字列、必須、UUID)、 task_id (文字列、必須、UUID)、 description (文字列、オプション、1〜1024)、 priority (列挙型 'high'|'medium'|'low'、オプション)、 dependencies (文字列[]、オプション、最大50、既存のものを置き換えます)

    • **戻り値:**更新されたFullTaskDataオブジェクト。

  • deleteTask :

    • 説明: 1 つ以上のタスク (およびカスケード経由のサブタスク/依存関係リンク) を削除します。

    • パラメータ: project_id (文字列、必須、UUID)、 task_ids (文字列[]、必須、1-100)

    • 戻り値: { success: true, deleted_count: number }

  • deleteProject :

    • **説明:**プロジェクトとそれに関連するすべてのデータを完全に削除します。注意して使用してください。

    • パラメータ: project_id (文字列、必須、UUID)

    • 戻り値: { success: true }

(注: 詳細な Zod スキーマとパラメータの説明については、対応するsrc/tools/*Params.tsファイルを参照してください。)

はじめる

  1. 前提条件: Node.js (LTS 推奨)、npm。

  2. 依存関係をインストールします:

    npm install
  3. 開発モードで実行: (自動リロードにts-nodeとnodemon使用)

    npm run dev

    サーバーはstdio経由で接続します。ログ(JSON形式)はstderrに出力されます。SQLiteデータベースは./data/taskmanager.dbに作成/更新されます。

  4. 生産向けビルド:

    npm run build
  5. プロダクションビルドを実行します。

    npm start

構成

  • データベースパス: SQLiteデータベースファイルの場所は、 DATABASE_PATH環境変数を設定することで上書きできます。デフォルトは./data/taskmanager.dbです。

  • **ログレベル:**ログレベルはLOG_LEVEL環境変数を使用して設定できます(例: debug 、 info 、 warn 、 error )。デフォルトはinfoです。

プロジェクト構造

  • /src : ソースコード。

    • /config : 構成管理。

    • /db : データベース マネージャーとスキーマ ( schema.sql )。

    • /repositories : データ アクセス層 (SQLite の相互作用)。

    • /services : コアビジネスロジック。

    • /tools : MCP ツールの定義 (*Params.ts) と実装 (*Tool.ts)。

    • /types : 共有 TypeScript インターフェース (現在は最小限で、主にリポジトリ/サービス内)。

    • /utils : ログ記録、カスタムエラーなど。

    • createServer.ts : サーバー インスタンスの作成。

    • server.ts : メインアプリケーションのエントリポイント。

  • /dist : コンパイルされた JavaScript 出力。

  • /docs : プロジェクトドキュメント (PRD、機能仕様、RFC)。

  • /data : SQLite データベース ファイルのデフォルトの場所 (自動的に作成されます)。

  • tasks.md : 開発用の手動タスク追跡ファイル。

  • 設定ファイル ( package.json 、 tsconfig.json 、 .eslintrc.jsonなど)

リンティングとフォーマット

  • リント: npm run lint

  • フォーマット: npm run format

(コードは、コミット時に Husky/lint-staged を介して自動的に lint/フォーマットされます)。

Available Tools

12 tools
addTaskA

Adds a new task to a specified project within the Task Management Server. Requires the project ID and a description for the task. Optionally accepts a list of dependency task IDs, a priority level, and an initial status. Returns the full details of the newly created task upon success.

Inputs: description (required), project_id (required), dependencies, priority, +1 more.

createProjectA

Creates a new, empty project entry in the Task Management Server database. This tool is used by clients (e.g., AI agents) to initiate a new workspace for tasks. It returns the unique identifier (UUID) assigned to the newly created project. An optional name can be provided; otherwise, a default name including a timestamp will be generated.

Inputs: projectName.

deleteProjectA

Permanently deletes a project and ALL associated tasks and dependencies. Requires the project ID. This is a highly destructive operation and cannot be undone. Returns a success confirmation upon completion.

Inputs: project_id (required).

deleteTaskA

Deletes one or more tasks within a specified project. Requires the project ID and an array of task IDs to delete. Note: Deleting a task also deletes its subtasks and dependency links due to database cascade rules. Returns the count of successfully deleted tasks.

Inputs: project_id (required), task_ids (required).

expandTaskB

Breaks down a specified parent task into multiple subtasks based on provided descriptions. Requires the project ID, the parent task ID, and an array of descriptions for the new subtasks. Optionally allows forcing the replacement of existing subtasks using the 'force' flag. Returns the updated parent task details, including the newly created subtasks.

Inputs: project_id (required), subtask_descriptions (required), task_id (required), force.

exportProjectA

Exports the complete data set for a specified project as a JSON string. This includes project metadata, all tasks (hierarchically structured), and their dependencies. Requires the project ID. The format is fixed to JSON for V1. Returns the JSON string representing the project data.

Inputs: project_id (required), format.

getNextTaskA

Identifies and returns the next actionable task within a specified project. A task is considered actionable if its status is 'todo' and all its dependencies (if any) have a status of 'done'. If multiple tasks are ready, the one with the highest priority ('high' > 'medium' > 'low') is chosen. If priorities are equal, the task created earliest is chosen. Returns the full details of the next task, or null if no task is currently ready.

Inputs: project_id (required).

importProjectA

Creates a new project by importing data from a JSON string. The JSON data must conform to the structure previously generated by the 'exportProject' tool. Performs validation on the input data (parsing, basic structure, size limit). Returns the unique project_id of the newly created project upon success.

Inputs: project_data (required), new_project_name.

listTasksB

Retrieves a list of tasks for a specified project. Allows optional filtering by task status ('todo', 'in-progress', 'review', 'done'). Provides an option to include nested subtasks directly within their parent task objects in the response. Returns an array of task objects.

Inputs: project_id (required), include_subtasks, status.

setTaskStatusA

Updates the status ('todo', 'in-progress', 'review', 'done') for one or more tasks within a specified project. Requires the project ID, an array of task IDs (1-100), and the target status. Verifies all tasks exist in the project before updating. Returns the count of updated tasks.

Inputs: project_id (required), status (required), task_ids (required).

showTaskA

Retrieves the full details of a single, specific task, including its dependencies and direct subtasks. Requires the project ID and the task ID. Returns a task object containing all details if found.

Inputs: project_id (required), task_id (required).

updateTaskA

Updates specific details of an existing task within a project. Requires the project ID and task ID. Allows updating description, priority, and/or dependencies. At least one optional field (description, priority, dependencies) must be provided. Returns the full details of the updated task upon success.

Inputs: project_id (required), task_id (required), dependencies, description, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 12 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose with no ambiguity. For example, 'addTask' creates a new task, 'updateTask' modifies an existing one, 'showTask' retrieves a single task, and 'listTasks' retrieves multiple tasks, all with well-defined boundaries. Tools like 'getNextTask' and 'expandTask' offer unique functionality that doesn't overlap with others.

    Naming Consistency4/5

    The naming follows a consistent verb_noun pattern throughout, such as 'addTask', 'createProject', 'deleteProject', 'exportProject', and 'importProject'. There is one minor deviation with 'showTask' (where 'getTask' might be more consistent with 'getNextTask'), but overall the pattern is highly predictable and readable.

    Tool Count5/5

    With 12 tools, the count is well-scoped for a task management server, covering core operations like CRUD for tasks and projects, status management, and advanced features like import/export and task breakdown. Each tool earns its place without feeling excessive or insufficient for the domain.

    Completeness5/5

    The tool set provides complete CRUD/lifecycle coverage for task management, including project creation, deletion, import/export, and task operations from addition to deletion, status updates, and retrieval. There are no obvious gaps; agents can manage tasks end-to-end without dead ends, such as handling dependencies, priorities, and hierarchical structures.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      A local, project-scoped requirement management MCP server that enables AI agents to manage tasks and requirements via SQLite.
      10 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A personal task management MCP server that allows LLM clients to create, read, update, and delete tasks with projects, labels, and comments, using a local SQLite database that can also be accessed via a web UI.
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A project management MCP server that exposes create_task, list_tasks, and update_task tools backed by SQLite for task tracking.
      -