Skip to main content
Glama

Todoist MCP

by Doist
import type { TodoistApi, UpdateCommentArgs } from '@doist/todoist-api-typescript' import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js' import { z } from 'zod' export function registerUpdateComment(server: McpServer, api: TodoistApi) { server.tool( 'update-comment', 'Update a comment in Todoist', { commentId: z.string().describe('The ID of the comment to update'), content: z.string().describe('The new content for the comment'), }, async ({ commentId, content }) => { const updateArgs: UpdateCommentArgs = { content } const comment = await api.updateComment(commentId, updateArgs) return { content: [{ type: 'text', text: JSON.stringify(comment, null, 2) }], } }, ) }

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/Doist/todoist-mcp'

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