feat: add docker setup

This commit is contained in:
2026-03-01 23:03:54 +01:00
parent 3314443fb7
commit e9a087fc69
6 changed files with 80 additions and 7 deletions

View File

@@ -62,10 +62,18 @@ todo-mcp tags
todo-mcp purge
```
## Docker
```sh
docker build -t local/todo-mcp .
docker run --rm -v todo-mcp-data:/data -e TODO_DB=/data/todos.db local/todo-mcp --help
```
Data is persisted in the `todo-mcp-data` volume. See [Usage](#usage) for more commands.
## Claude Setup
todo-mcp ships with an MCP server that lets Claude manage your todos. Add this
to your Claude MCP config:
### Native
```json
{
@@ -78,5 +86,25 @@ to your Claude MCP config:
}
```
### Docker
Build the image first (see [Docker](#docker)), then add to your Claude MCP config:
```json
{
"mcpServers": {
"todo": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-v", "todo-mcp-data:/data",
"-e", "TODO_DB=/data/todos.db",
"local/todo-mcp", "mcp-serve"
]
}
}
}
```
This gives Claude access to all todo operations — adding, listing, completing,
editing, removing, and purging.