refactor: require explicit sqlite paths
This commit is contained in:
5 files changed
+20
-18
No files matched your search
@@ -57,16 +57,16 @@ app = App(store=SQLiteStore(Path(".agentmsgs.db")))
|
||||
|
||||
### MCP server
|
||||
|
||||
Start the MCP server over stdio:
|
||||
Start the MCP server over stdio with an explicit SQLite path:
|
||||
|
||||
```bash
|
||||
uv run agentmsgs-mcp --transport stdio
|
||||
uv run agentmsgs-mcp --transport stdio --db-path ./agentmsgs.db
|
||||
```
|
||||
|
||||
Or use HTTP:
|
||||
|
||||
```bash
|
||||
uv run agentmsgs-mcp --transport http
|
||||
uv run agentmsgs-mcp --transport http --db-path ./agentmsgs.db
|
||||
```
|
||||
|
||||
Choose a shared database file when separate clients or processes should communicate:
|
||||
@@ -81,7 +81,7 @@ For a temporary, process-local server, use the in-memory store:
|
||||
uv run agentmsgs-mcp --in-memory --transport stdio
|
||||
```
|
||||
|
||||
The in-memory mode is synchronized for concurrent calls within that server, but its data disappears on restart and is not shared with another server process. The default database is `.agentmsgs.db` in the workspace root.
|
||||
The in-memory mode is synchronized for concurrent calls within that server, but its data disappears on restart and is not shared with another server process. SQLite mode requires an explicit `--db-path`.
|
||||
|
||||
See all server options with:
|
||||
|
||||
|
||||
Reference in new issue
Block a user