.cursor/skills/laightdb-mcp/SKILL.md
Stores and retrieves context in LaightDB via MCP tools (hybrid search, get by id, collections, stats). Use when the user connects the LaightDB MCP server in Cursor, wants to save project/session context for later, or asks to search or load previously stored LaightDB context through MCP.
npx skillsauth add gtrig/LaightDB laightdb-mcpInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Implementation lives in internal/mcp/ (production). The dev-only server (laightdb-dev, internal/mcpdev/) exposes debug_* tools only—use the production LaightDB MCP for store_context / search_context / get_context.
user-laightdb). If unsure, list tools/resources for that server.mcps/<server>/tools/<tool>.json) before the first call, so arguments match the schema exactly.When the LaightDB instance has users, the HTTP API and /mcp use the same auth as REST: Bearer API token (or session cookie for browser). Configure the MCP connection in Cursor so requests include a valid token; in open mode (no users yet), unauthenticated access is allowed.
| Tool | Purpose |
|------|---------|
| store_context | Persist text; returns JSON {"id":"<uuid>"}. |
| search_context | Hybrid BM25 + vector search; returns hits plus token stats. |
| get_context | Fetch one entry by id. |
| delete_context | Remove by id; returns {"ok":true}. |
| list_collections | Lists collection names. |
| get_stats | Database statistics (includes edge count when graph data exists). |
| link_context | Create a directed edge between two context IDs. |
| unlink_context | Remove an edge by edge_id. |
| get_neighbors | BFS neighbors from a node (id, max_depth). |
| get_subtree | Directed subtree JSON (id, max_depth). |
| graph_search | Hybrid search with graph proximity (focus_node_id, max_depth, …). |
| suggest_links | Vector-suggested links (id, threshold, top_k). |
store_contextcollection (namespace), content (raw text).content_type (code, conversation, doc, kv), metadata (string map).Store stable labels in metadata (e.g. project, topic, ticket) so search_context can filter with filters.
search_contextquery.collection, filters (metadata equality), top_k, detail.detail (search and get)Use one of: metadata, summary, full.
metadata: ids, metadata, token counts, timestamps—smallest payload.summary: includes generated summary (default for get_context when detail is omitted).full: full stored content/chunks—use when the user needs verbatim text.get_contextid.detail (see above).laightdb://collections — JSON list of collections (same data as list_collections).Save for later
store_context with a clear collection and useful metadata.id if the user needs a direct link to that entry.Find again
search_context with query (+ collection / filters as needed).detail: "metadata" or "summary" to save tokens; use "full" only when necessary.get_context with the id from a hit.Housekeeping
list_collections or read laightdb://collections to see namespaces.delete_context when the user explicitly wants removal.Do not store secrets or credentials in content or metadata. Prefer references (paths, ticket IDs) over pasted tokens.
tools
Proactively loads relevant LaightDB context at the start of substantive work and persists concise rolling notes before wrapping up, using LaightDB MCP tools without waiting for the user to say "store" or "search". Use whenever this workspace has the LaightDB MCP server enabled and the user is doing multi-step implementation, debugging, or design that should survive across sessions.
tools
Vite/React UI for LaightDB: dashboard, search, and the 3D Explorer (/explorer) for context graphs and storage engine layout. Use when editing ui/src, Vite config, or REST client calls for graph overview / storage diagnostics.
tools
Build MCP servers using the official Go SDK (github.com/modelcontextprotocol/go-sdk/mcp). Use when implementing MCP tools, resources, server setup, transport configuration, or anything in internal/mcp/.
development
Build an LSM-tree storage engine in Go with WAL, MemTable, SSTables, bloom filters, and compaction. Use when implementing or modifying internal/storage/ components, writing the WAL, MemTable, SSTable, compaction, or the storage engine orchestrator.