Todo List MCP TypeScript

April 19, 2025 · View on GitHub

A simple and efficient todo list application built with TypeScript and MCP (Model Context Protocol).

一個使用 TypeScript 和 MCP (Model Context Protocol) 建構的簡單高效待辦事項清單應用。

Features 功能

  • Add new todos 新增待辦事項
  • Mark todos as complete 標記待辦事項為完成
  • Delete completed todos 刪除已完成的待辦事項
  • List all todos 列出所有待辦事項

Usage 使用方法

The todo list supports the following operations 待辦事項清單支援以下操作:

  1. Add a todo 新增待辦事項

    • Simply type your todo item
    • 直接輸入待辦事項內容
  2. Mark as complete 標記為完成

    • Indicate when a todo is done
    • 標示待辦事項已完成
  3. Delete todos 刪除待辦事項

    • Remove completed todos
    • 移除已完成的待辦事項
  4. View todos 查看待辦事項

    • See all your current todos
    • 查看所有當前的待辦事項

Technical Details 技術細節

  • Built with TypeScript
  • Uses MCP (Model Context Protocol)
  • Runs as a local server
  • Maintains todo state in memory

Getting Started 開始使用

  1. Make sure you have Node.js installed
  2. Run the server using:
    npx tsx index.ts
    
  3. The todo list service will be available for use

MCP Configuration MCP 設定

To use this todo list with MCP, add the following configuration to your ~/.cursor/mcp.json file:

要使用此待辦事項清單與 MCP,請在您的 ~/.cursor/mcp.json 檔案中加入以下設定:

{
  "mcpServers": {
    "todo-list-mcp-server-ts": {
      "command": "npx",
      "args": [
        "tsx",
        "/path/to/your/todo-list-mcp-ts/index.ts"
      ]
    }
  }
}

Make sure to replace /path/to/your/todo-list-mcp-ts/index.ts with the actual path to your index.ts file.

請確保將 /path/to/your/todo-list-mcp-ts/index.ts 替換為您實際的 index.ts 檔案路徑。