Repository navigation
Description
Context
We are standardizing AI-agent integration on skills + scripts that call the nodespace CLI (CLI → gRPC → daemon), and decommissioning the MCP surfaces. The @nodespaceai/skill package already ships SKILL.md + a multi-agent installer (Claude Code, Codex, Gemini, OpenCode). The blocker: the CLI exposes far fewer operations than agents need, so a skill built on it can't do what the old MCP handler set could.
This issue tracks closing the CLI coverage gap so skills+scripts are a complete replacement for MCP.
Current CLI surface (verified)
packages/cli/src/lib.rs + commands/:
node: get, create, update, delete, childrensearch(semantic)import: file, dirsession: launch/attach/list/kill (PTY agent sessions — not knowledge-graph)diagnostics,uninstall
≈ 5 knowledge-graph operations. The daemon gRPC layer + Rust handler set expose ≈ 15.
Missing CLI commands (agent-relevant)
-
node query— structured/filtered queries (currently only semanticsearch); daemon hasquery_nodes - relationship ops —
create_relationship,get_related_nodes,delete_relationship(daemon has these RPCs) - schema ops —
get_all_schemas,create_schema,update_schema,add_schema_relationship - markdown export —
get_markdown_from_node_id(we have import but not export) - index-based hierarchy — insert-at-index / move-to-index (daemon
reorder/move; ties to API: introduce InsertPosition enum across proto/gRPC + service (replace overloaded insert_after_node_id) #1216 InsertPosition) - batch —
get_nodes_batch,update_nodes_batch(OCC-aware)
Each new command is a thin gRPC client call mirroring an existing daemon RPC — the daemon side already exists. Pure client surfacing, no new business logic.
SKILL.md correctness fix
packages/skill/SKILL.md contains a stale, wrong statement an agent could persist as a "fact":
"Found that NodeService uses SurrealDB with RocksDB backend"
- Remove/replace stale SurrealDB/RocksDB references in SKILL.md (now SQLite/libsql). (Relates to Audit & cleanup: finish daemon + SQLite migrations (purge dead HTTP MCP / SurrealDB / RocksDB from code and docs) #1226.)
- Expand SKILL.md to document the new commands once added
Out of scope
- Deleting the MCP packages/transport (tracked separately in the architectural audit + Audit & cleanup: finish daemon + SQLite migrations (purge dead HTTP MCP / SurrealDB / RocksDB from code and docs) #1226).
- Defining the script layer (a follow-up decides whether multi-step skills bundle scripts that shell the CLI vs. import a gRPC client lib).
Acceptance criteria
- The agent-relevant operations above are reachable from
nodespace <cmd>with--jsonoutput - Each new command has a CLI integration test against a test daemon (pattern:
packages/cli/tests/cli_integration.rs) - SKILL.md updated: stale DB references removed, new commands documented
- A skill built on the CLI can perform the same core operations the old MCP handler set exposed
Activity
Add CLI coverage for query, export, batch, mention, schema ops (closes …
Add CLI coverage for query, export, batch, mention, schema ops (closes …
CLI coverage gap: surface remaining knowledge-graph operations so ski…
CLI coverage gap: surface remaining knowledge-graph operations so ski…