Mem- Oracle

CLI Reference

Comprehensive CLI for managing documentation indexing.

Commands Overview

Usage
mem-oracle <command>

If you're running from source, replace mem-oracle with bun run src/index.ts.

CommandDescription
workerStart the worker HTTP service
serveAlias for worker
mcpStart the MCP server (stdio)
indexIndex a documentation URL
searchSearch indexed documentation
statusShow indexing status

worker

Start the worker HTTP service that handles indexing and retrieval.

Terminal
mem-oracle worker

Example

Terminal
# Start on default port
mem-oracle worker

mcp

Start the MCP (Model Context Protocol) server for explicit tool calls.

Terminal
mem-oracle mcp

This starts an MCP server using stdio for communication. Use this with Claude Code's MCP configuration.


index

Index a documentation website.

Terminal
mem-oracle index <url>

Arguments

ArgumentRequiredDescription
urlYesThe documentation URL to index

Examples

Terminal
# Index Next.js docs
mem-oracle index https://nextjs.org/docs/getting-started

Search through indexed documentation.

Terminal
mem-oracle search <query>

Arguments

ArgumentRequiredDescription
queryYesThe search query

Examples

Terminal
# Basic search
mem-oracle search "how to use server components"

status

Show the status of indexed documentation.

Terminal
mem-oracle status

Output

Output
Next.js Docs (https://nextjs.org)
  ID: abc123
  Status: ready
  Pages: 245/245 indexed
  Pending: 0, Errors: 0, Skipped: 0
  Chunks: 4120

Development Commands

Terminal
# Run with hot reload
bun run dev

# Type check
bun run typecheck

# Run tests
bun test

On this page