retrieve_memories and create_memory — over the Model Context Protocol. Connect it to any MCP-capable agent or IDE and your AI assistant will automatically query past lessons before hard tasks and record new ones after each run.
MCP endpoint: https://api.starlight-search.com/mcpAuth:
Authorization: Bearer <your-api-key>Transport: Streamable HTTP Get your API key from the Reflect console.
Claude Code
Add the server to your project or global config:.claude/settings.json (project) or ~/.claude/settings.json (global):
Cursor
Open Settings → MCP (or~/.cursor/mcp.json) and add:
Windsurf
Open Settings → Cascade → MCP Servers and add a new server:Cline / Continue / other MCP clients
Any client that supports streamable HTTP transport uses the same config pattern:Per-project scoping with X-Project-Id
By default the server uses the project ID configured on your API key. To scope memories to a specific project per-request, pass theX-Project-Id header:
Available tools
retrieve_memories
Search the memory store for lessons from prior tasks. Call this before starting non-trivial work.
| Parameter | Type | Default | Description |
|---|---|---|---|
query | string | required | Natural-language description of the task you are about to do |
limit | int | 5 | Max memories to return (up to 20) |
lambda_ | float | 0.5 | Blend between semantic similarity (1.0) and Q-value / learned utility (0.0) |
id, task, reflection, q_value, similarity, score, and success. Save the memory_ids — you’ll pass them to create_memory.
create_memory
Persist a completed run as a memory so the agent can learn from it. Call this after the user confirms success or gives corrective feedback.
| Parameter | Type | Default | Description |
|---|---|---|---|
task | string | required | The task the agent was executing |
final_response | string | required | The agent’s final answer or deliverable |
trajectory | string or list | required | Tool calls, decisions, and errors that led to the answer |
result | "pass" or "fail" | required | Outcome — drives the reward signal |
feedback_text | string | optional | Verbatim or summarized user feedback |
retrieved_memory_ids | list[string] | optional | IDs from retrieve_memories — enables Q-value updates |