These are the HTTP doors for the memory side of the system.Documentation Index
Fetch the complete documentation index at: https://docs.memorycrystal.ai/llms.txt
Use this file to discover all available pages before exploring further.
What this means in practice
Important endpoint families include:- capture
- recall
- search-messages
- recent-messages
- wake
- checkpoint
- trace
- stats
crystal_recallcrystal_search_messagescrystal_recentcrystal_debug_recall
How it actually works
Key repo surfaces:convex/crystal/mcp.tspackages/mcp-server/README.mdmcp-server/README.md
Endpoint Reference
Session Initialization
POST /api/mcp/wake
Fetch the last session summary and recent messages to initialize a new session.
Request:
Memory Recall
POST /api/mcp/recall
Vector search over memories by semantic query.
Request:
channel— channel/scope context, including peer-scoped or shared-main valuesagentId— agent identifier used when resolving knowledge-base visibility for mixed private/shared deployments
Peer-first fallback (new in 0.7.15). If
channel is omitted on a peer-facing call, recall fails-closed on any knowledge base with a concrete peer scope. Previously the guard silently upgraded unscoped callers to management-level visibility. Always pass the peer channel (e.g. peer-coach:511172388) from a peer session.- the live MCP recall path computes one query embedding and reuses it across semantic memory recall and message-search evidence
- identical repeated HTTP recall requests can reuse the short-lived query embedding cache
- KB results are merged after normal memory recall, with agent/scope-aware visibility rules
Message Search
POST /api/mcp/search-messages
Exact/keyword search over raw message transcripts.
Request:
POST /api/mcp/recent-messages
Fetch N most recent messages without vector search cost.
Request:
Memory Management
POST /api/mcp/capture
Store a new memory (typically called after AI response completes).
Request:
POST /api/mcp/checkpoint
Mark a session milestone.
Request:
POST /api/mcp/trace
Retrieve the original conversation context for a memory.
Request:
System
GET /api/mcp/stats
Memory store health and usage.
Response:
Usage Pattern: Full Turn
Typical agentic flow:- Session start:
POST /api/mcp/wake→ prime context - Before work:
POST /api/mcp/recallwith relevant query → semantic context - After response:
POST /api/mcp/capturewith extracted memory - Optional:
POST /api/mcp/checkpointif turning point reached
- Add
debugRecallOutput=truequery param to recall endpoints to get verbose output including all search results, filtering, and prompt injections - Use
POST /api/mcp/traceto understand memory provenance
Common mistakes
- assuming the endpoint list is the whole behavior without reading the surrounding logic in
mcp.ts - mixing HTTP endpoints and MCP tool names without explaining the relationship
- ignoring auth/rate-limit behavior when describing the API surface
Source of truth
Primary files behind this page:convex/crystal/mcp.tspackages/mcp-server/README.mdmcp-server/README.md