JT

jhirono/todomcp

开发工具

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

23 stars 8 forks 质量 51 趋势 0

该MCP(模型上下文协议)服务允许您通过AI助手与Microsoft To Do的任务交互。

概览

该MCP(模型上下文协议)服务允许您通过AI助手与Microsoft To Do的任务交互。 - Node.js 16 或更高 - npm - Microsoft账户 - Azure 应用注册(见下文设置) 安装该工具有两个部分:1. 安装软件包 2.设置认证(需要克隆仓库) 即使你全局安装包,也需要克隆仓库以完成认证过程: 1. 进入 Azure 门户 2.进入“应用注册”并创建新注册 3.命名你的应用程序(例如,“执行 MCP”)4.对于“支持的账户类型”,请根据需求选择以下之一:- - 用于单一组织内使用 - - 适用于多个组织使用 - - 适用于工作账户和个人账户 5.将重定向 URI 设置为 http://localhost:3000/callback 6.创建应用后,进入“证书与秘密”,创建新的客户端秘密 7.

概述(AI 翻译)

该MCP(模型上下文协议)服务允许您通过AI助手与Microsoft To Do的任务交互。

设置说明

1.前提条件

  • Node.js 16岁及以上
  • NPM
  • 一个Microsoft账户
  • Azure 应用注册(见下文设置)

2.安装

安装该工具有两个部分:

  1. 安装软件包
  2. 设置认证(需要克隆仓库)

步骤1:安装软件包

步骤2:设置认证

即使你全局安装包,也需要克隆仓库以完成认证过程:

3.Azure App Registration

  1. 前往碧蓝传送门
  2. 进入“应用注册”并创建新注册
  3. 为你的申请命名(例如,“To Do MCP”)
  4. 对于“支持账户类型”,请根据您的需求选择以下之一:
  • 仅限该组织目录中的账户(单租户) - 仅限单一组织内使用
  • 任何组织目录中的账户(任意Azure AD目录 - 多租户) - 用于多个组织间使用

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

README

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

Microsoft To Do MCP

This MCP (Model Context Protocol) service allows you to interact with Microsoft To Do tasks using an AI assistant.

Setup Instructions

1. Prerequisites

  • Node.js 16 or higher
  • npm
  • A Microsoft account
  • Azure App Registration (see setup below)

2. Installation

There are two parts to installing this tool:

  1. Installing the package
  2. Setting up authentication (requires cloning the repository)

Step 1: Install the Package

npm install -g @jhirono/todomcp

Step 2: Set Up Authentication

Even if you install the package globally, you’ll need to clone the repository to complete the authentication process:

git clone https://github.com/jhirono/todoMCP.git
cd todoMCP
npm install

3. Azure App Registration

  1. Go to the Azure Portal
  2. Navigate to “App registrations” and create a new registration
  3. Name your application (e.g., “To Do MCP”)
  4. For “Supported account types”, select one of the following based on your needs:
    • Accounts in this organizational directory only (Single tenant) - For use within a single organization
    • Accounts in any organizational directory (Any Azure AD directory - Multitenant) - For use across multiple organizations
    • Accounts in any organizational directory and personal Microsoft accounts - For both work accounts and personal accounts
  5. Set the Redirect URI to http://localhost:3000/callback
  6. After creating the app, go to “Certificates & secrets” and create a new client secret
  7. Go to “API permissions” and add the following permissions:
    • Microsoft Graph > Delegated permissions:
      • Tasks.Read
      • Tasks.ReadWrite
      • User.Read
  8. Click “Grant admin consent” for these permissions

4. Configuration

Create a .env file in the root directory with the following information:

CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret
TENANT_ID=your_tenant_setting
REDIRECT_URI=http://localhost:3000/callback

TENANT_ID Options:

  • organizations - For multi-tenant organizational accounts (default if not specified)
  • consumers - For personal Microsoft accounts only
  • common - For both organizational and personal accounts
  • your-specific-tenant-id - For single-tenant configurations

Examples:

# For multi-tenant organizational accounts (default)
TENANT_ID=organizations

# For personal Microsoft accounts
TENANT_ID=consumers

# For both organizational and personal accounts
TENANT_ID=common

# For a specific organization tenant
TENANT_ID=00000000-0000-0000-0000-000000000000

Usage

Complete Workflow

  1. Authenticate to get tokens (must be done from the cloned repository)

    npm run auth
    

    This will open a browser window for you to authenticate with Microsoft and create a tokens.json file.

  2. Create MCP config file (must be done from the cloned repository)

    npm run create-config
    
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →