The Problem: Muse Code Forgets Everything Between Sessions
You are in the zone. Muse Code — Meta's coding agent, powered by Muse Spark — has been helping you refactor a complex authentication system for the past hour. You have discussed architectural decisions, established naming conventions, and made significant progress on the implementation.
Then the session ends, the context fills up, or the run gets compacted. Your agent just forgot everything. The architectural decisions, the naming conventions, your progress tracker, the subtle constraints you discovered along the way. Gone. The next session starts from zero, and you are back to explaining the same project to an AI that has no memory of your previous work.
This is context loss, and it is the single biggest productivity killer when working with AI coding assistants — no matter which harness you run them in.
First, an Honest Word: Which "Muse" Are We Talking About?
Meta ships several products under the Muse name, and they are not the same surface:
- Muse Code is Meta's coding agent for the terminal and CI. It has full, documented MCP support — you declare MCP servers in its settings file and it connects to them directly. This is where Todo MCP works today, and it is what this guide covers.
- The Muse personal agent app (muse.ai, iOS, Android, Mac, WhatsApp) connects to outside services through Meta's own reviewed Connectors and through Custom Connectors it writes against a service's API or CLI. Meta does not document any user-facing way to add an MCP server to the Muse app — there is no MCP setting, no server list, no "add MCP server" workflow. Muse also runs on a cloud computer of its own, so it cannot reach a server process running on your laptop in the first place. Todo MCP is a local server, so there is no honest setup guide we can give you for the Muse app today. If Meta opens that door, we will update this page.
Everything below is the real, documented path: Todo MCP with Muse Code.
What You Actually Lose When Context Resets
Context loss is not just about losing chat history. When your coding agent hits the context limit or a session ends, you lose critical working knowledge:
- Task Progress: Which files you have modified, what still needs to be done, and the current state of your implementation
- Architectural Decisions: Why you chose certain patterns, rejected others, and the constraints that shaped those choices
- Priority Context: What is urgent, what can wait, and why certain tasks depend on others
- Discovered Constraints: Edge cases, gotchas, and lessons learned during implementation that will have to be re-discovered
Auto-compaction makes it worse. When an agent silently summarizes and discards earlier conversation to make room, you do not know what was lost. That crucial decision from twenty minutes ago? Possibly compacted into a single line — or dropped entirely.
The Solution: Persistent Memory via MCP
The Model Context Protocol (MCP) provides a standardized way for AI assistants to connect to external tools and data sources. Todo MCP is an MCP server that gives your agent a persistent memory which lives outside the conversation entirely — in a local SQLite file on your own machine.
Todo MCP is not a Muse-only tool. It is for any coding agent, any agentic harness, or any system that supports MCP. Muse Code is simply one of the harnesses that supports MCP properly — and if you run Muse Code, here is exactly how the two fit together.
Todo MCP provides exactly two facilities:
1. A To-Do List That Outlives the Session
Tasks with permanent IDs that never change, dependencies between tasks, prioritization, state tracking, and long narratives attached to each task. Your agent creates tasks as it plans the work, updates their state as it executes, and reads the same list back tomorrow, next week, or after any number of crashed or compacted sessions. The plan lives in the database, not in the conversation.
2. A Context Key-Value Store
Decisions, constraints, conventions, and discoveries, saved under keys your agent chooses and retrieved on demand. Why the refresh-token rotation approach was picked, which naming convention the codebase uses, the gotcha in the payments module — written once, remembered indefinitely.
Instant Session Recovery with context_resume
When a new Muse Code session starts, a single call brings your agent up to speed:
mcp__todo-mcp__context_resume This returns the active tasks with their current status, the saved context including architectural decisions and constraints, and where the work left off. No more spending the first ten minutes of every session re-explaining your project.
Setting Up Todo MCP in Muse Code
Muse Code connects to MCP servers you declare in its settings file. Meta's documentation is explicit: "Connect external tools through the Model Context Protocol (MCP). Declare servers in the mcp_servers block of your settings file." Here is the full setup, start to finish.
Step 1: Get Todo MCP (no account, no login)
Buying Todo MCP needs no account and no login:
- Go to todo-mcp.org/pricing and leave an email address on the lead form.
- Continue straight to pricing and check out with Stripe.
- Your licence key is shown on the confirmation page, and a sign-in link arrives by email.
Step 2: Install and activate
Install Todo MCP on the machine where you run Muse Code (follow the install instructions from your purchase email), then activate your licence:
todo-mcp license activate <license-key> Step 3: Declare the server in Muse Code's settings
Open your Muse Code settings file — ~/.config/muse/settings.json (or $XDG_CONFIG_HOME/muse/settings.json if you set that variable) — and add Todo MCP under mcpServers:
{
"mcpServers": {
"todo-mcp": {
"type": "stdio",
"command": "todo-mcp",
"args": ["--mode", "stdio"]
}
}
} Todo MCP is a local stdio server: Muse Code starts it as a child process and talks to it over stdin and stdout, which is exactly the stdio transport Meta documents. Two details from Meta's docs worth knowing:
- Working on a team? Put the same
mcpServersblock in a.mcp.jsonfile at your repository root instead, and everyone who opens the project in Muse Code gets the server. (Project files must use the canonicalmcpServersspelling.) - Older spelling: The
mcp_serversroot key from Meta's user manual is still accepted insettings.json— but do not mix both spellings in one file; Meta documents that an ambiguous file disables MCP for the session.
One caution from Meta's documentation: MCP tools are not sandboxed, so connect only servers you trust. Todo MCP runs locally and keeps your data in a local SQLite file on your machine — but the advice is sound for every server you add.
Step 4: Verify the connection
Start a Muse Code session and run:
/mcp Meta documents /mcp as the live inventory of connected servers and their tools. You should see todo-mcp listed with its task and context tools. From that moment, ask Muse Code to resume:
mcp__todo-mcp__context_resume Your agent now has a memory. Everything it writes to the to-do list and the context store from here on survives every session boundary.
A Real Workflow Example
Session 1 (Monday morning):
# Create tasks for the week
mcp__todo-mcp__todo_create content:"Refactor user service" estimate_minutes:240
mcp__todo-mcp__todo_create content:"Add integration tests" estimate_minutes:120
# Save an important decision
mcp__todo-mcp__context_set key:"refactor_approach" value:"Strangler fig pattern, preserve existing API"
# Start working
mcp__todo-mcp__todo_start position_id:1 Session 2 (Tuesday, after the context reset):
# Instant recovery — the agent knows exactly where you left off
mcp__todo-mcp__context_resume Muse Code continues the refactoring with full knowledge of the strangler-fig decision, the current task status, and what still needs to be done. The plan never lived in the conversation, so the conversation ending could not take it down.
Pricing, Refunds, and the Fine Print
- Monthly or annual plans. The price is shown after a few short setup questions.
- No account and no login to buy: lead form, pricing, Stripe checkout, licence key on the confirmation page, sign-in link by email.
- Refunds: monthly plans are not refunded (cancel any time; access runs to the end of the paid month). Annual plans: cancel within 30 days and the remaining months are refunded — the first month is kept.
- Your data stays yours: tasks and context live in a local SQLite file on your machine.
Frequently Asked Questions
Does Todo MCP work with the Muse app on my phone? Not today — see the honest answer at the top of this page. The Muse personal agent app has no documented way to add an MCP server, and it runs in Meta's cloud rather than on your machine. Todo MCP works with Muse Code, Meta's coding agent, and with any other MCP-capable agent or harness.
I use more than one agent. Do I need a separate memory for each? No. Todo MCP's memory lives in the server and its local database, not inside any one agent. Any MCP-capable harness you point at the same Todo MCP installation — Muse Code today, another agent tomorrow — reads and writes the same tasks and context. That is the point of building on MCP instead of on one vendor's memory feature.
Where does my data live? In a local SQLite file on your own machine. Todo MCP is a local stdio server; Muse Code runs it as a child process on your computer.
Stop Losing Progress to Context Limits
Context loss is a solved problem. With persistent task memory, you get:
- Zero re-explanation time: Every session starts with full context
- Preserved decisions: Architectural choices survive indefinitely
- Accurate progress tracking: Know exactly what is done and what remains
- Crash-resilient recovery: Even a dead session lands on a clean recovery point
If you run Muse Code — or any coding agent, any agentic harness, any system that supports MCP — and you are tired of watching it forget critical context mid-project, persistent memory is the answer. Set it up once, and never lose the plan again.