@mporenta/mg
v0.1.0
Published
Agent-friendly CLI for memory-graph-mcp
Readme
mg
Agent-friendly CLI for the memory-graph-mcp FastAPI surface.
npm i -g @mporenta/mg
export MEMORY_GRAPH_URL=http://localhost:8000
mg config doctorData is written to stdout; diagnostics are written to stderr. JSON is emitted by default when stdout is not a TTY. Use --format pretty for human-readable output.
Search recipes
All search subcommands require --query and return JSON-friendly results with diagnostics and next_steps hints.
# Discover candidate entities before narrowing context.
mg search entities --query "memory graph" --limit 5
# Recall repo-scoped codebase context with paths and observation IDs.
mg search codebase --query "search diagnostics" --repo memory-graph-mcp --limit 5
# Pass an embedding vector when a caller can produce one for hybrid ranking.
mg search codebase --query "ranking" --repo memory-graph-mcp --query-embedding 0.1,0.2,0.3
# Follow up on exact observations for a known entity.
mg search memory --query "noise_floor" --entity "memory-graph-mcp" --limit 5