TaskTrek MCP Server

TaskTrek MCP Server

A Model Context Protocol server for TaskTrek that enables AI assistants to manage tasks and projects programmatically via JSON file storage.

Category
访问服务器

README

TaskTrek MCP Server

A Model Context Protocol (MCP) server for TaskTrek project management system that enables AI assistants to interact with TaskTrek programmatically.

Related Projects

Architecture Flow

┌─────────────────────┐    ┌──────────────────────┐    ┌─────────────────────┐
│   AI Assistant      │◄──►│   TaskTrek MCP       │◄──►│   JSON Files        │
│   (Claude, Cline)   │    │   Server (stdio)     │    │   (Data Storage)    │
└─────────────────────┘    └──────────────────────┘    └─────────────────────┘
                                      ▲                           ▲
                                      │                           │
                                      ▼                           ▼
                           ┌──────────────────────┐    ┌─────────────────────┐
                           │   MCP Tools          │    │   TaskTrek Web App  │
                           │   • create_task      │    │   (React Frontend)  │
                           │   • update_task      │    │   • Visual Interface│
                           │   • list_tasks       │    │   • Manual Editing  │
                           │   • summarize_tasks  │    │   • Analytics       │
                           │   • create_project   │    │   • Project Mgmt    │
                           │   • list_projects    │    └─────────────────────┘
                           │   • get_task         │
                           └──────────────────────┘

Data Flow:

  1. AI Assistant sends commands via MCP protocol
  2. MCP Server processes requests and updates JSON files
  3. Web App reads from same JSON files for visual interface
  4. Bidirectional Sync - changes in either interface persist

Usage Patterns:

  • AI-First: Use MCP server for automated task management
  • Visual-First: Use web app for manual task management
  • Hybrid: Switch between both as needed - data stays synced

Features

The TaskTrek MCP server provides the following tools:

1. create_task

Create a new task in TaskTrek with the following parameters:

  • title (required): Task title
  • description: Task description
  • projectId: Project ID (defaults to "default")
  • type: Task type (bug, feature, enhancement)
  • priority: Task priority (low, medium, high, critical)
  • componentId: Component ID
  • assigneeId: Assignee ID
  • labels: Array of task labels

2. create_project

Create a new project with:

  • name (required): Project name
  • key (required): Project key (e.g., "PROJ")
  • description: Project description

3. update_task

Update an existing task:

  • taskId (required): Task ID to update
  • title: New task title
  • description: New task description
  • status: New task status (screen, in-progress, code-review, code-complete, qa-verify, resolved)
  • priority: New task priority
  • componentId: New component ID
  • assigneeId: New assignee ID
  • labels: New task labels

4. list_projects

Get list of all available projects.

5. list_tasks

Get list of all tasks with optional filtering:

  • projectId: Filter by project ID
  • status: Filter by status
  • assigneeId: Filter by assignee ID

6. get_task

Get detailed information about a specific task:

  • taskId (required): Task ID to retrieve

7. summarize_tasks

Get a summary of tasks with statistics:

  • projectId: Filter by project ID (optional)

Prerequisites

  1. Node.js (v14 or higher)
  2. npm or yarn
  3. TaskTrek Web App (optional, for visual interface)

Installation

  1. Clone the repository:
git clone https://github.com/CsKoushik9/TaskTrekMCP.git
cd TaskTrekMCP
  1. Install dependencies:
npm install
  1. Verify the server runs correctly:
npm start

VS Code Integration Setup

For detailed VS Code integration with Cline extension, see the vscode-genai-setup.md file which provides:

  • Step-by-step Cline extension installation
  • MCP server configuration for VS Code
  • Alternative Claude Desktop setup
  • Test commands and troubleshooting

Quick VS Code Setup

  1. Install the Cline extension in VS Code
  2. Configure MCP server in Cline settings:
{
  "mcpServers": {
    "tasktrek": {
      "command": "node",
      "args": ["index.js"],
      "cwd": "/path/to/TaskTrekMCP"
    }
  }
}
  1. Start the MCP server: npm start
  2. Test with: "List all projects" in Cline chat

Usage

Running the Server

npm start

Development Mode

npm run dev

Data Storage & Synchronization

The MCP server stores data in JSON files in the ../TaskTrek/data/ directory:

  • tasks.json: All tasks
  • projects.json: All projects
  • components.json: All components
  • assignees.json: All assignees

Sync Behavior:

  • MCP Server: Writes directly to JSON files
  • Web App: Reads from JSON files on startup
  • No Conflicts: Both interfaces can be used independently
  • Data Persistence: Changes made in either interface persist

Running Both Interfaces:

# Terminal 1: Start MCP Server (for AI assistant)
cd TaskTrekMCP
npm start

# Terminal 2: Start Web App (for visual interface) - OPTIONAL
cd TaskTrek
npm start

Note: You don't need to run both simultaneously. Choose based on your workflow:

  • AI-only: Just run MCP server
  • Visual-only: Just run web app
  • Hybrid: Run both and switch as needed

Integration with MCP Clients

This server can be integrated with any MCP-compatible client. The server communicates via stdio and provides structured responses for all operations.

Example Usage

Creating a Task

{
  "tool": "create_task",
  "arguments": {
    "title": "Fix login bug",
    "description": "Users cannot login with special characters in password",
    "type": "bug",
    "priority": "high",
    "projectId": "default"
  }
}

Updating a Task Status

{
  "tool": "update_task",
  "arguments": {
    "taskId": "1234567890",
    "status": "in-progress"
  }
}

Getting Task Summary

{
  "tool": "summarize_tasks",
  "arguments": {
    "projectId": "default"
  }
}

Error Handling

The server provides detailed error messages for:

  • Invalid task/project IDs
  • Missing required parameters
  • Validation errors
  • File system errors

License

MIT License

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选