Todoist

Lightweight, dependency-free, in-memory fake of the Todoist REST API v2 for testing code that uses the real @doist/todoist-api-typescript client or the language-agnostic /rest/v2 surface.

Default port: 4793

Quick start

import { TodoistServer } from "./services/todoist/src/server.js";

const server = new TodoistServer(4793);
await server.start();
// ... run your app/tests ...
await server.stop();
const res = await fetch("http://127.0.0.1:4793/rest/v2/tasks", {
  method: "POST",
  headers: { Authorization: "Bearer todoist_xxx", "Content-Type": "application/json" },
  body: JSON.stringify({ content: "Buy milk" }),
});
// => 200 { id, content: "Buy milk", project_id, is_completed: false, ... }

Access via MCP / preview URL

Point your MCP server / agent tooling at the preview URL printed by the parlel pool (defaults to http://127.0.0.1:4793). Set TODOIST_BASE_URL to that URL and supply any non-empty TODOIST_API_TOKEN; the fake accepts any Bearer token.

Implemented operations

All /rest/v2/* routes require an Authorization: Bearer <token> header.

Tasks

Projects

Service & inspection

Surface coverage

This emulator faithfully replicates the API surface most application code and agents exercise. Anything below the supported lines is either an intentional design choice for a fast, zero-cost local emulator (✓ By design) or a candidate for a future release (⟳ Roadmap) — never a silent inaccuracy.

Legend: ✅ fully supported · ◐ accepted (stored, not strictly enforced) · ✓ by design · ⟳ on the roadmap.

FeatureStatus
Task create / get / update / close / reopen / delete / list✅ Supported
Project list / create / get✅ Supported
project_id filtering on task list✅ Supported
Sections, labels (resource), comments, reminders◐ Labels stored on tasks only
Natural-language due_string parsing◐ Stored verbatim, not parsed
Sync API (/sync/v9)⟳ Roadmap — REST v2 only
Token validity / scope enforcement✓ By design — Any non-empty credential is accepted — no real secrets needed

Error shapes

Errors return a JSON { error } body.

StatusWhen
400missing required field (task content, project name)
401no Authorization: Bearer header
404unknown task / project
405method not allowed

Manifest

See services/todoist/manifest.json:

<!-- parlel:testenv:start -->

Configuration — test.env

Copy these into your test.env (used by the bridge sidecar flow). Tokens are Parlel's seeded test credentials — any non-empty value is accepted by the emulator, so you rarely need to change them. Swap in real credentials only when pointing at the live service in prod.env.

TODOIST_API_TOKEN=todoist_parlel
TODOIST_BASE_URL=http://parlel-bridge:4793
<!-- parlel:testenv:end -->