Skip to main content
Glama
Donezo MCP
by shinnkura
README.md
# @shinnkura/donezo-mcp

**Let Claude Code read and write your tasks.**

[Donezo](https://donezo.shinnkura.com) is a memo-style task manager. This MCP
server exposes your Donezo notebooks, tasks and memos to Claude Code, so you
can say "show me today's tasks", let Claude work through one, have it post
progress as comments, and stop at *review* for you to check — without your
requests and results scattering across terminal sessions.

- 13 tools: list / read / create / update tasks, comments, questions, memos
- No delete tools. Writes are scoped by Supabase Row Level Security
- One-time setup token; long-lived credentials are stored locally and refreshed automatically
- Works with other MCP clients too — see [Other clients](#other-clients-chatgpt--codex-cli--gemini-cli--cursor)

## Requirements

- Node.js (a current LTS release) for `npx`
- A Donezo account with cloud sync. The task manager itself is free and works
  without an account (data stays on your device), but an MCP client reads and
  writes the tasks stored in the cloud, so MCP needs Donezo Premium (cloud
  sync; yearly plan or one-time purchase). Accounts created before 2026-10-01
  keep sync for free.

## Quick start (3 minutes)

1. Open **Donezo → Settings → "Donezo MCP Token"** and generate a setup token
   (valid for 1 hour). The same screen shows the Supabase URL and anon key.
2. Register the server with Claude Code (all three environment variables are
   required — there are no built-in defaults for the URL / key):

   ```bash
   claude mcp add donezo -s user \
     -e DONEZO_TOKEN=<setup-token> \
     -e DONEZO_SUPABASE_URL=<url> \
     -e DONEZO_SUPABASE_ANON_KEY=<anon-key> \
     -- npx -y @shinnkura/donezo-mcp
   ```

3. Run `claude` and start talking to it about your tasks.

No manual install is needed; `npx` fetches the package on first use.

## Other clients (ChatGPT / Codex CLI / Gemini CLI / Cursor)

Nothing in this server is specific to Claude Code — it is a standard stdio MCP
server, and Donezo also hosts a remote one. Pick whichever your client speaks:

| | stdio (this package) | Remote MCP |
|---|---|---|
| Endpoint | `npx -y @shinnkura/donezo-mcp` | `https://donezo.shinnkura.com/mcp` |
| Auth | Setup token + the 3 environment variables | OAuth in the browser (no token to issue) |
| Fits | CLIs and editors that spawn local processes | Clients that only accept a URL (ChatGPT, claude.ai) |

Both expose the same 13 tools. For stdio, get the setup token, URL and anon
key from **Donezo → Settings → "Donezo MCP Token"** exactly as in the quick
start; only the registration step differs per client.

> Claude Code is the client we use every day. The settings below follow each
> client's documented config format (checked 2026-10) but have not been
> exercised end to end on every client — if one drifts, the client's own MCP
> docs win.

### ChatGPT

ChatGPT cannot spawn local processes, so use the remote MCP:

1. Enable **Developer mode** in ChatGPT's settings (availability depends on
   your plan and workspace policy).
2. Create a custom connector / app and enter `https://donezo.shinnkura.com/mcp`
   as the MCP server URL.
3. Approve access on the Donezo consent screen that opens in the browser.

The menu location has moved between ChatGPT releases; see OpenAI's help for
the current path.

### Codex CLI

```bash
codex mcp add donezo \
  --env DONEZO_TOKEN=<setup-token> \
  --env DONEZO_SUPABASE_URL=<url> \
  --env DONEZO_SUPABASE_ANON_KEY=<anon-key> \
  -- npx -y @shinnkura/donezo-mcp
```

Or edit `~/.codex/config.toml` directly:

```toml
[mcp_servers.donezo]
command = "npx"
args = ["-y", "@shinnkura/donezo-mcp"]
env = { DONEZO_TOKEN = "<setup-token>", DONEZO_SUPABASE_URL = "<url>", DONEZO_SUPABASE_ANON_KEY = "<anon-key>" }
```

### Gemini CLI / Cursor

Both read the same `mcpServers` shape. Add it to `~/.gemini/settings.json`
(Gemini CLI; `.gemini/settings.json` for one project) or `~/.cursor/mcp.json`
(Cursor; `.cursor/mcp.json` for one project):

```json
{
  "mcpServers": {
    "donezo": {
      "command": "npx",
      "args": ["-y", "@shinnkura/donezo-mcp"],
      "env": {
        "DONEZO_TOKEN": "<setup-token>",
        "DONEZO_SUPABASE_URL": "<url>",
        "DONEZO_SUPABASE_ANON_KEY": "<anon-key>"
      }
    }
  }
}
```

If the file already has an `mcpServers` object, add the `donezo` entry to it
instead of replacing the file.

### What differs from Claude Code

- **Comments are signed with the client's name.** `add_comment` and
  `ask_question` record which client called them (the MCP `clientInfo.name`,
  mapped to Claude / ChatGPT / Codex / Gemini / Cursor …) and the Donezo app
  shows that name. If your client reports a generic name, set
  `DONEZO_AGENT_NAME`. This needs a package version later than 4.0.0; comments
  written by older versions, and push notifications, still say "Claude".
- **The device name says `claude-code`.** A stdio connection is listed in
  Settings → connected devices as `<hostname> (claude-code)`. Revoking it
  works the same way.
- **Workflow rules travel as MCP `instructions`.** "Read the notes as the
  spec", "stop at `review`" and so on are sent by the server at connect time.
  A client that ignores `instructions` needs the same rules in your prompt.
- **The credentials file is shared.** Every stdio client on one machine reads
  `~/.donezo/credentials.json`. Once one client has exchanged the setup
  token, the others reuse those credentials: they still need the URL and anon
  key, but `DONEZO_TOKEN` can be omitted, and revoking the device disconnects
  all of them at once.

## Example prompts

- "List my Donezo tasks scheduled for today and pick the one you'd start with."
- "Take the task 'Add dark mode to settings' from the *app* notebook: read its notes, implement it on a branch, comment the PR URL, and move it to review."
- "Write a memo in the *research* notebook summarizing what you found about the flaky test."

## Tools

| Tool | What it does | Notes |
|---|---|---|
| `list_notebooks` | List all notebooks with incomplete task counts | |
| `list_tasks` | List tasks with filters: `notebookId`, `status`, `scheduledFrom` / `scheduledTo`, `tag` (name), `query` (substring), `limit` | Excludes completed unless `status` is given. With `notebookId`, results follow the user's manual order in that notebook |
| `get_task` | Task detail: notes (the spec), subtasks, tag names, and the comment thread with `assignee` / `createdAt` | Read comments before resuming a task you worked on earlier |
| `create_notebook` | Create a notebook in the user's personal workspace | Insert-only, always safe |
| `create_task` | Create a task with optional notes, scheduled date, tag names, subtasks | Insert-only, always safe |
| `update_task` | Update title, notes, scheduled date (`null` to clear), tags (full replace) | See the caveat under *Safety* |
| `update_task_status` | Set status: `backlog` / `not-started` / `in-progress` / `review` / `completed` | Convention: stop at `review`; a human marks `completed` |
| `add_comment` | Append a comment (task-note) to a task | Does **not** change status |
| `ask_question` | Leave a question as a comment, set the task to `review`, and end the session | The user answers in Donezo and sets the task back to `in-progress` to resume |
| `list_memos` | List memos: id, title, `notebookId`, `updatedAt`; filters `notebookId` (`"none"` = unlinked), `query`, `limit` | |
| `get_memo` | Get a memo's full Markdown content and metadata | |
| `create_memo` | Create a memo; the first non-empty line becomes the title; optional `notebookId` | |
| `update_memo` | Update a memo's content (title re-derived) and/or notebook link (`null` to unlink) | Saved immediately; not affected by the app's sync |

## Authentication

`DONEZO_TOKEN` is a **setup token** valid for 1 hour. On first launch the
server exchanges it for a long-lived refresh token (no expiry, revocable)
plus a 7-day access token, and stores them in `~/.donezo/credentials.json`
(file mode `0600`). From then on the server refreshes the access token by
itself — you don't need to reissue `DONEZO_TOKEN` unless the refresh token
is revoked.

To revoke access, open Donezo Settings → connected devices and revoke the
entry. The next tool call will fail asking you to reissue a setup token and
reconnect.

Legacy 30-day JWTs issued before this change still work as a fallback for
one release, but new tokens issued from Settings are always 1-hour setup
tokens.

### Environment variables

| Name | Required | Purpose |
|---|---|---|
| `DONEZO_TOKEN` | yes (first run only) | Setup token (1h TTL), exchanged for long-lived credentials on first launch |
| `DONEZO_SUPABASE_URL` | yes | Donezo Supabase URL |
| `DONEZO_SUPABASE_ANON_KEY` | yes | Donezo Supabase anon key |
| `DONEZO_AGENT_NAME` | no | Name shown as the author of comments this server writes (e.g. `Codex`). Defaults to the MCP client's own name (`clientInfo.name` from `initialize`), mapped to a display name such as Claude / Codex / ChatGPT / Gemini / Cursor |

## Safety

- **No delete tools.** Task, notebook and memo deletion is intentionally not
  exposed.
- **RLS-scoped writes.** Every call runs as the authenticated user; Supabase
  Row Level Security limits reads and writes to that user's own data.
- **`update_task` caveat.** If the target task is currently open and being
  edited in the Donezo app, an external update may be overwritten by the
  app's next sync. Prefer `add_comment` for tasks the user is working on.
  Insert-only tools (`create_task`, `create_notebook`) and memo tools are
  always safe.
- **Stop at `review`.** The server's instructions tell Claude not to set
  `completed` on its own.

## Unattended runner

The author also runs a self-hosted cron runner that picks up `not-started`
tasks tagged for the AI, spawns one `claude -p` process per task and always
ends in `review`. It is not published yet; this package is all you need to
use Donezo from an MCP client.

## Links

- Guide (Claude Code and other clients, Japanese): https://donezo.shinnkura.com/claude
- Repository: https://github.com/shinnkura/donezo-mcp
- npm: https://www.npmjs.com/package/@shinnkura/donezo-mcp
- License: MIT