Commit Graph

3732 Commits

Author SHA1 Message Date
Tienson Qin
5b35a9ee49 fix: tags 2025-10-28 15:41:05 +08:00
Gabriel Horner
1ebfd30b50 fix: page refs display uuids instead of text for getPage 2025-10-27 16:30:04 -04:00
Gabriel Horner
dc76a94e01 fix: edit block operation shouldn't require page id
Address feedback. This was an implementation detail that added a
needless constraint
2025-10-27 15:41:12 -04:00
Tienson Qin
7d39b510dd fix: query result now showing when :db/id is not specified
fix https://github.com/logseq/db-test/issues/510
2025-10-27 18:22:57 +08:00
Tienson Qin
0422d75f68 Merge branch 'master' into feat/mcp-server 2025-10-27 09:06:14 +08:00
Tienson Qin
f3f6c0ce6a fix: (tags ...) query doesn't return child tag objects 2025-10-25 05:08:03 +08:00
Tienson Qin
bbc415c1be collect invalid db errors to sentry 2025-10-24 23:26:52 +08:00
Tienson Qin
30a1156b6c fix: skip db validation when downloading remote graph 2025-10-24 22:36:32 +08:00
Gabriel Horner
20ed5bccfb Merge branch 'master' into feat/mcp-server 2025-10-22 12:20:54 -04:00
Gabriel Horner
2500fe888a fix: dev import can't import
All CLI imports were failing with "Maximum call stack size exceeded".
2025-10-22 10:37:25 -04:00
Tienson Qin
9f5b9c33a1 fix: tag title order with extends
fix https://github.com/logseq/db-test/issues/506
fix https://github.com/logseq/db-test/issues/519
2025-10-22 20:53:24 +08:00
Gabriel Horner
c248ea16aa fix: incorrect validation message
Also bring back docstring that shouldn't have been removed
2025-10-21 12:43:14 -04:00
Gabriel Horner
652a9061ea fix: outdated outliner lint 2025-10-21 10:30:52 -04:00
Gabriel Horner
6412179189 fix: add block on new page doesn't add tags 2025-10-20 16:23:46 -04:00
Gabriel Horner
58c520d17f fix: existing properties failing to be created with a new tag 2025-10-20 15:31:43 -04:00
Gabriel Horner
953e9c18b2 fix: create blocks on new page
Also tweak list* tools description so they expand for more cases e.g.
property types for listProperties
2025-10-20 13:33:08 -04:00
Tienson Qin
75e49b22db Merge branch 'master' into refactor/plugin-api-properties 2025-10-20 18:27:21 +08:00
Gabriel Horner
9aaf5db25c 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
2025-10-17 13:18:03 -04:00
Gabriel Horner
0f7532e3c3 enhance: list* tools default to minimal info
Provide expand option to provide additional detail
2025-10-16 16:53:16 -04:00
Gabriel Horner
0122425e68 fix: upsert-nodes build in db-worker and transacts w/ new op
Ensure full db is available for building import edn.
Transacting w/ new op allows llm changes to be undone
2025-10-16 13:37:29 -04:00
Gabriel Horner
cc054a2850 enhance: dry run option for upsert-nodes
Also give an explicit error when incorrectly using mcp with file graphs.
Better than random errors that vary per tool
2025-10-16 10:44:32 -04:00
Gabriel Horner
e5258c0708 chore: remove unused write tools
Also revert related changes on api fns
2025-10-16 10:44:32 -04:00
Gabriel Horner
a586fc47fb enhance: batch update nodes tool
This improves and replaces all previous tools. Features include:
* Add pages, blocks to pages, tags and properties
* Tags can set parents and tag properties
* Properties can have type, cardinality and classes set for :node
* Add tags to blocks
* Edit blocks
* api and local tools work
* Thorough tool validation
* When doing these operations, most operations can reference new or existing
  entities if they are referenced by uuid
2025-10-16 10:44:32 -04:00
Gabriel Horner
bfcc3590ac fix: getPage should also return data about page
This was causing write tools to fail as llm's usually reach for
getPage over listPages to get a page id. Moved remove-hidden-properties
since it's also used by mcp api responses
2025-10-16 10:44:32 -04:00
Gabriel Horner
d83641b08c fix: fixes related to getPage tool
Fix getPage returning successful when no page found. Also make pageName
arg consistent with other tools. Also fix api server error where
a nil response fails the 500 check
2025-10-16 10:44:32 -04:00
Gabriel Horner
743c3807c1 enhance: API tools to add to page, search blocks and
update a block's content. Also fix search not returning usable
uuids in response
2025-10-16 10:44:32 -04:00
Gabriel Horner
a16c89b986 enhance: Add optional mcp server to API server
Also switch CLI MCP server to fastify to reuse frontend code.
Also fix DELETE /mcp which was wrong
2025-10-16 10:44:32 -04:00
Gabriel Horner
6c9db3a679 enhance: Add HTTP Streamable mode to MCP server
and default to it
2025-10-16 10:44:32 -04:00
Gabriel Horner
70a6f617aa enhance: add listTags and listProperties to API mcp server
by introducing logseq.cli.* for internal API usage.
Also refactor existing api tools to share same implementation as
local tools. This fixes a couple bugs w/ the api tools as get-page
was returning :block.temp/* keys and list-pages were returning uuids under
the id key unlike all other responses
2025-10-16 10:44:32 -04:00
Gabriel Horner
179f08cf90 enhance: list tags and properties for local mcp 2025-10-16 10:44:31 -04:00
Gabriel Horner
f2f799b49b enhance: mcp server works with local graph
when given -g option
2025-10-16 10:44:31 -04:00
Gabriel Horner
96704e9998 enhance: basic mcp server w/ 2 commands
works w/ api and starting server from
cmdline for now
2025-10-16 10:44:31 -04:00
Gabriel Horner
db57d6834b fix: error from build-import hidden from user
Also fix unexpected errors continue to call transact! on empty
2025-10-16 10:41:43 -04:00
Gabriel Horner
683b2c54c8 fix: importing from form shouldnt alter hnsw embeddings 2025-10-16 09:43:32 -04:00
Gabriel Horner
865c8c690e refactor: convert import edn file to also use new :op 2025-10-16 09:43:32 -04:00
Gabriel Horner
487cbb2bc9 enhance: finish making import data form undo/redoable
Add current block support and error handling.
Also update most uses of build-import to call d/transact!  once
afterwards. Previously I think we needed separate transacts because of
new properties but that is no longer the case
2025-10-16 09:43:32 -04:00
Gabriel Horner
b649887b15 enhance: add batch-import-edn op to make import-edn undo-able WIP 2025-10-16 09:43:32 -04:00
Gabriel Horner
bbb838805c fix: outliner lint
public vars that are only used outside their own dir should have a ^:api
2025-10-16 09:14:46 -04:00
Tienson Qin
4249c9e908 fix: can't set block property with closed value 2025-10-16 15:35:40 +08:00
Tienson Qin
9b18097a59 word tweak 2025-10-15 20:49:39 +08:00
Tienson Qin
26e30d930a chore: uncomment db validate 2025-10-15 18:41:10 +08:00
Tienson Qin
4be34fb50e fix: rtc tests 2025-10-15 18:27:53 +08:00
Tienson Qin
2b4858ff08 chore: remove console trace 2025-10-15 18:06:08 +08:00
Tienson Qin
c48cb718ba fix: lint 2025-10-15 17:29:13 +08:00
Tienson Qin
3244b6d599 chore: remove fn remove-nils 2025-10-15 17:26:29 +08:00
Tienson Qin
8d0c2f9887 fix: tests 2025-10-15 17:25:46 +08:00
Tienson Qin
6b12299520 fix: lint 2025-10-15 16:32:46 +08:00
Tienson Qin
999618a406 refactor: compute pipeline tx-data before d/transact! 2025-10-15 15:31:42 +08:00
Tienson Qin
df0bc2ca48 refactor: move commands to outliner dep 2025-10-14 21:51:19 +08:00
Tienson Qin
f43a32978d fix: graph parser tests 2025-10-14 21:40:19 +08:00