todox MCP Server
Enables agents to create and manage persistent task logs, decisions, dead ends, questions, and handoffs, with file staleness detection and activity reporting.
README
<img src="docs/logo.svg" width="60" alt="">
todox
Working memory for developers and their agents. Not a checklist — a log your next session can actually resume from.
An issue tracker is written human-to-human. todox is written agent-to-agent, with a human reading over its shoulder. Every task carries the decisions behind it, the approaches that failed, the questions still open, and the note the last session left behind.
A fresh agent calls get_context, reads all of that, and starts where the last
one stopped — without walking into a wall somebody already hit.
What goes in a log
| kind | what it means |
|---|---|
decision |
what you chose, and why the alternatives lost |
dead_end |
an approach that did not work — the highest-value entry, because it stops the repeat |
question |
something only a human can answer |
handoff |
end-of-session state, written for a stranger |
note |
everything else |
Two things fall out of treating the log as the product:
- Stale context is flagged. Linked files are hashed by the agent, which is
the side that can see them; the server stores the hashes and compares. If the
code moves on,
get_contextsays the note may be lying. Context that lies is worse than none. - Reports come from the log, not from commits. Every status change is an event, so what did I finish today, how long did it take, which model did it is a query rather than archaeology.
Try it
todox-omega.vercel.app — anyone can register. Small personal deployment, no uptime promise. Self-host if the log matters to you.
Run your own
pnpm install
cp .env.example .env.local # any Postgres; a free Neon branch works
pnpm db:migrate # idempotent
pnpm seed # optional demo account: demo / todox-demo
pnpm dev
Connect an agent
The MCP server never touches the database. It authenticates with a per-user token and calls the HTTP API, so an agent on a laptop and data on a host stay in step — one code path, no local/remote drift. The trade-off: the server has to be up for the agent to work.
Create a token on the Account page and it hands you the command:
claude mcp add todox \
--env TODOX_TOKEN=todox_… \
--env TODOX_URL=https://todox-omega.vercel.app \
-- pnpm -C /path/to/todox exec tsx mcp/server.ts
Tools
| tool | what it does |
|---|---|
get_context |
Call this first. Standing rules, project decisions and gotchas, every open task with its decisions, dead ends, questions, files and last handoff — plus stale-file warnings. Resolves a project from a slug, a name, or any path inside it. |
create_task |
Capture work. Pass cwd and it finds the project, registering one for that repo if it has never seen it — so the agent never stops to ask. |
update_task |
Status, title, body, priority. Moving to doing/done is where durations come from. |
log_entry |
Append one of the five kinds. |
activity_report |
Today / this week / any window: durations, models, importance, decisions, dead ends, open questions. format:"markdown" is written to be pasted into a status update. |
link_files |
Attach paths. The MCP server hashes them locally, so staleness works even though the web host has no checkout. |
add_context |
Knowledge that outlives a task; omit the project to make it account-wide. |
search |
Across all your projects — have I solved this before? |
Every write tool takes a model, and the server instructions tell the agent to
always pass it. That is what makes the per-model breakdown real rather than
guessed.
Deploying
Vercel plus a hosted Postgres.
| variable | why |
|---|---|
DATABASE_URL |
Postgres. Use the pooled connection string. |
TODOX_PUBLIC_URL |
Verification and reset links are built from it — get it wrong and people land on the wrong host. |
RESEND_API_KEY · MAIL_FROM |
Optional. Without them, mail is printed to the server log rather than sent. |
Run pnpm db:migrate when the schema changes. It deliberately does not run on
cold start: DDL racing across serverless instances is a bad way to discover lock
contention.
Coming from the old SQLite version? pnpm db:import-sqlite [path] copies a
~/.todox/todox.db across.
Security
Passwords are scrypt; sessions, agent tokens and email links are stored as hashes only. Ownership is enforced in one module, and a row belonging to someone else answers 404 rather than 403 so ids cannot be probed. Rate limits live in the database, so they hold across instances.
Details, and an honest list of what is not covered, in SECURITY.md.
Known gaps
- Search is
ILIKE, not full-text. - Staleness is per-file hash; per-symbol would be the honest version.
- No 2FA, no per-session revocation, no audit log.
- Share links are unlisted, not access-controlled.
- No keyboard navigation beyond
/for search.
Contributing
The rules the codebase actually follows, and how to run the checks: CONTRIBUTING.md.
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。