Skip to main content
Glama

TODO MCP Server

by oseni99
  • Linux
  • Apple

TODO MCP CLI 和服务器

该存储库包含待办事项列表应用程序的最小模型上下文协议 (MCP) 实现,包括:

  • FastAPI 服务器server/ ):公开一个用于工具发现的/tools端点和一个用于 JSON-RPC 调用的/rpc端点来对任务执行操作。
  • CLI 客户端client/cli.py ):一个 Python 命令行界面,可与 LLM(通过 OpenAI)和 MCP 服务器交互,以使用函数调用来创建、列出和完成任务。

特征

  • 添加带有标题、内容和可选截止日期的任务
  • 列出所有任务
  • 将任务标记为已完成
  • 服务器端任务ID生成
  • 工具调用符合 JSON-RPC 2.0 标准

先决条件

  • Python 3.10+
  • 用于虚拟环境的pipenvvenv
  • OpenAI API 密钥

安装

  1. 克隆仓库:
    git clone https://github.com/oseni99/todo-mcp cd todo-mcp
  2. 创建并激活虚拟环境:
    python3 -m venv .venv source .venv/bin/activate
  3. 安装依赖项:
    pip install -r requirements.txt
  4. 在项目根目录中创建一个.env
    OPENAI_API_KEY=sk-... MCP_SERVER=http://127.0.0.1:8000

目录结构

todoMCP/ ├── client/ # CLI client code │ └── cli.py # Main entrypoint for the MCP-CLI ├── server/ # FastAPI server code │ ├── handlers.py # Business logic for add, list, complete │ ├── tools.py # JSON-Schema tool manifest │ └── main.py # FastAPI app with /tools and /rpc ├── .env # Environment variables (not committed) ├── requirements.txt # Python dependencies └── README.md # This file

运行服务器

fastapi dev server/main.py

运行 CLI

从项目根目录:

python -m client.cli

在提示符下输入自然语言命令,例如:

> Create a task titled "Write blog post" with content "Outline first draft" due 2025-05-20 > List my tasks > Mark the first task as done > Thanks! > exit

CLI 将打印工具调用和 LLM 响应。


-
security - not tested
F
license - not found
-
quality - not tested

最小模型上下文协议服务器实现,提供管理待办事项列表的工具,允许用户创建任务、列出任务并通过 JSON-RPC 调用将其标记为已完成。

  1. 特征
    1. 先决条件
      1. 安装
        1. 目录结构
          1. 运行服务器
            1. 运行 CLI

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol (MCP) server that provides tools for managing todo items, including creation, updating, completion, deletion, searching, and summarizing tasks.
                Last updated -
                10
                4
                TypeScript
                MIT License
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server that enables seamless execution of commands, Python code, web content fetching, and reusable task management with secure credentials handling.
                Last updated -
                2
                Python
                MIT License
                • Apple
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server providing comprehensive task management capabilities with support for project organization, task tracking, and automatic PRD parsing into actionable items.
                Last updated -
                4
                Python
                MIT License
                • Linux
                • Apple
              • -
                security
                F
                license
                -
                quality
                A utility module for creating Model Context Protocol servers declaratively, allowing developers to easily define tools, prompts, and resources with a simplified syntax.
                Last updated -
                64
                JavaScript

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/oseni99/todo-mcp'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server