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
917df54d74
fix: read tools should always get correct data
...
via db-worker thread. Also fix getPageData returning
some temp and untranslated attributes
2025-10-16 10:44:32 -04:00
Gabriel Horner
5b919bd7a7
enhance: simplify enabling mcp server
...
Automatically enable http server if it's not started. Also fix typo for
http server and failing integration test
2025-10-16 10:44:32 -04:00
Gabriel Horner
16f977207c
enhance: add UI setting for toggling MCP server on/off
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
a4a1b16852
fix: restart API server consistently
...
UI inconsistently loses server status. This fix allows for always
restarting correctly, regardless of the UI bug
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
Tienson Qin
fe619d3a92
fix: can't undo/redo imported edn data
...
also UI doesn't refresh
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
bad40347c2
Use underline for api names
2025-10-16 18:57:35 +08:00
Tienson Qin
c00924c03d
fix: lint
2025-10-16 15:57:50 +08:00
Tienson Qin
1736691224
fix: get_all_pages api
2025-10-16 15:55:26 +08:00
Tienson Qin
4249c9e908
fix: can't set block property with closed value
2025-10-16 15:35:40 +08:00
Tienson Qin
bbb6d8aeb3
Add e2e tests for get_all_tags|properties|tag_objects
2025-10-16 14:29:08 +08:00
Tienson Qin
67f285be1e
Merge branch 'master' into refactor/plugin-api-properties
2025-10-15 21:14:39 +08:00
Tienson Qin
659063534a
fix(rtc): still update block attrs for properties/classes
2025-10-15 21:07:06 +08:00
Tienson Qin
9b18097a59
word tweak
2025-10-15 20:49:39 +08:00
Tienson Qin
f0e80e77ee
fix(rtc): don't re-create page if property or tag exists already
2025-10-15 20:35:40 +08:00
Tienson Qin
6addb7ac8e
fix: rtc tests
2025-10-15 18:52:59 +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
Tienson Qin
a63a5acc8b
fix: rtc unit tests
2025-10-14 21:25:38 +08:00
Tienson Qin
b8eb7a8564
fix: dangerous to use :property/closed-values because nbb doesn't
...
support entity plus extend-type
2025-10-14 19:13:47 +08:00
Tienson Qin
3fa6a8f46b
enhance: make it easier to detect closed value invalidation
2025-10-14 17:14:51 +08:00
Tienson Qin
8a4fa601d2
fix: build closed values
2025-10-14 16:51:34 +08:00
Tienson Qin
b31c2166c6
fix: lint
2025-10-14 14:40:40 +08:00