feat: add docker setup
This commit is contained in:
32
README.md
32
README.md
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user