Commit 3d5b74b
Remove built-in chat command in favor of MCP server (#18)
## Why
The built-in `msgvault chat` command implemented RAG
(retrieval-augmented generation) over a local Ollama instance. While it
worked, it was underbaked and took on responsibilities that don't belong
in an archival tool: LLM client management, prompt engineering,
streaming output, and retrieval orchestration.
Meanwhile, the MCP server (`msgvault mcp`) already exposes the full
archive — search, aggregates, message detail, metadata — as a standard
protocol that any AI client can use. This is a better architecture:
- **Claude Desktop** connects directly via MCP
- **OpenWebUI** and other local LLM frontends support MCP tool use, so
Ollama/llama.cpp users get the same integration without msgvault owning
the LLM layer
- **Any future MCP-capable agent** gets archive access for free
Maintaining a bespoke chat implementation alongside MCP means duplicated
effort for a worse result. Removing it lets us focus on making the MCP
server excellent.
## What changed
- Deleted `internal/chat/` package (RAG session, Ollama client, prompts,
tests)
- Deleted `cmd/msgvault/cmd/chat.go` CLI command
- Removed `ChatConfig` from config and `[chat]` section defaults
- Removed `github.com/ollama/ollama` dependency (~914 lines removed)
- Updated README and quickstart docs
## Test plan
- [x] `make build` passes
- [x] `make test` passes
- [x] `make lint` passes
- [x] `msgvault --help` no longer shows `chat` command
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent d274cc6 commit 3d5b74b
File tree
11 files changed
+3
-914
lines changed- cmd/msgvault/cmd
- internal
- chat
- config
11 files changed
+3
-914
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | 288 | | |
299 | 289 | | |
300 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | 106 | | |
109 | 107 | | |
110 | 108 | | |
| |||
138 | 136 | | |
139 | 137 | | |
140 | 138 | | |
141 | | - | |
142 | | - | |
143 | 139 | | |
144 | 140 | | |
145 | 141 | | |
| |||
156 | 152 | | |
157 | 153 | | |
158 | 154 | | |
159 | | - | |
160 | | - | |
161 | 155 | | |
162 | 156 | | |
163 | 157 | | |
| |||
0 commit comments