enhance(cli): graph args+options can be local files or dirs

This affects all cli commands that take graph args.
Also tweaked mcp-server host+port defaults to match the app
This commit is contained in:
Gabriel Horner
2025-10-17 13:18:01 -04:00
parent 0f7532e3c3
commit 9aaf5db25c
11 changed files with 31 additions and 14 deletions

7
deps/cli/README.md vendored
View File

@@ -125,6 +125,13 @@ Exported 16 properties, 16 classes and 36 pages
# Append text to current page
$ logseq append add this text -a my-token
Success!
# Start mcp-server against a local desktop graph
$ logseq mcp-server -g yep
MCP Streamable HTTP Server started on 127.0.0.1:12315
# Start mcp-server against a local graph file
$ logseq mcp-server -g ~/Downloads/logseq_db_yep_1751032977.sqlite
MCP Streamable HTTP Server started on 127.0.0.1:12315
```
## API