Skip to content

CLI coverage gap: surface remaining knowledge-graph operations so skills+scripts can replace MCP #1227

Closed

Description

@malibio

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, children
  • search (semantic)
  • import: file, dir
  • session: 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 semantic search); daemon has query_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"

Out of scope

Acceptance criteria

  • The agent-relevant operations above are reachable from nodespace <cmd> with --json output
  • 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

  1. added 2 commits that reference this issue on May 29, 2026
    366393b
    33f064e
  2. added a commit that references this issue on May 29, 2026
    38ec63f
  3. added a commit that references this issue on Jun 22, 2026
    7d23a6e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions