Library for connecting AI agents to Todoist. Includes tools that can be integrated into LLMs, enabling them to access and modify a Todoist account on the user's behalf.
These tools can be used both through an MCP server, or imported directly in other projects to integrate them to your own AI conversational interfaces.
npm install @doist/todoist-ai
Here's an example using Vercel's AI SDK.
import { findTasksByDate, addTasks } from "@doist/todoist-ai";
import { streamText } from "ai";
const result = streamText({
model: yourModel,
system: "You are a helpful Todoist assistant",
tools: {
findTasksByDate,
addTasks,
},
});
You can run the MCP server directly with npx:
npx @doist/todoist-ai
For more details on setting up and using the MCP server, including creating custom servers, see docs/mcp-server.md.
A key feature of this project is that tools can be reused, and are not written specifically for use in an MCP server. They can be hooked up as tools to other conversational AI interfaces (e.g. Vercel's AI SDK).
This project is in its early stages. Expect more and/or better tools soon.
Nevertheless, our goal is to provide a small set of tools that enable complete workflows, rather than just atomic actions, striking a balance between flexibility and efficiency for LLMs.
For our design philosophy, guidelines, and development patterns, see docs/tool-design.md.
For a complete list of available tools, see the src/tools directory.
- MCP server using the official @modelcontextprotocol/sdk
- Todoist Typescript API client @doist/todoist-api-typescript
See docs/mcp-server.md for full instructions on setting up the MCP server.
See docs/dev-setup.md for full instructions on setting up this repository locally for development and contributing.
After cloning and setting up the repository:
npm start
- Build and run the MCP inspector for testingnpm run dev
- Development mode with auto-rebuild and restart
This project uses release-please to automate version management and package publishing.
-
Make your changes using Conventional Commits:
feat:
for new features (minor version bump)fix:
for bug fixes (patch version bump)feat!:
orfix!:
for breaking changes (major version bump)docs:
for documentation changeschore:
for maintenance tasksci:
for CI changes
-
When commits are pushed to
main
:- Release-please automatically creates/updates a release PR
- The PR includes version bump and changelog updates
- Review the PR and merge when ready
-
After merging the release PR:
- A new GitHub release is automatically created
- A new tag is created
- The
publish
workflow is triggered - The package is published to npm