MCP Tools

Reference for all MCP tools exposed by the coree server.

The coree MCP server exposes the following tools. Tool names in the protocol are prefixed with the server name - e.g. mcp__coree__search in Claude Code.


search(query)

Primary entry point. Searches memories and code simultaneously in a single ranked result set. Use this before reading files or starting a task.

search("rate limiting implementation")
search("why did we change the auth middleware")
search("Config::load signature")

Returns a combined list of memory snippets and code sections ranked by relevance.

search_code(query)

Searches only the code index (source files and git history). Use when you specifically want code results without memory noise.

search_memory(query, limit?, detail?)

Searches only stored memories. Use when you want to recall prior decisions or gotchas without code results.


Memory management

store_memories(memories)

Stores one or more memories. Each memory has:

FieldRequiredDescription
titleyesShort label, used in search results
contentyesFull content of the memory
typeyesdecision, gotcha, how-it-works, user, feedback, project, reference
importanceno0.0-1.0, defaults to 0.5. Use >= 0.8 for critical items.
tagsnoArray of strings for filtering
topic_keynoStable key for upsert - if a memory with this key exists, it is updated
factsnoArray of short fact strings extracted from the content
sourcenoProvenance tag, e.g. "reviewed"
pinnednoBoolean - pinned memories always appear in session context

get_memories(ids)

Fetches full content for one or more memory IDs. Use after search() returns IDs you want to read in full.

list_memories(type?, tags?, limit?, detail?)

Lists stored memories, optionally filtered by type or tags.

delete_memories(ids)

Permanently removes memories by ID.

pin_memories(ids, pin)

Pins or unpins memories. Pinned memories always appear in session context regardless of relevance score.

list_stale_memories()

Lists memories that have not been accessed recently. Useful for reviewing the memory store.

evict_stale_memories()

Removes stale memories. Use with care - this is permanent.


Session

session_context()

Called at session start. Returns:

This tool is called automatically by the hooks installed with the Claude Code and Gemini plugins.

capture_note(summary, context?)

Stores a note for review at the next session start. Use for tentative observations during exploration - things you are not ready to commit as a full memory. Captures are reviewed by session_context() and can be promoted to memories or discarded.


Code intelligence

get_symbol(name, file_path?)

Looks up a symbol by name. Returns:

file_path is optional but narrows the search when the symbol name is ambiguous.


Remote

remote_sync()

Triggers a manual sync between the local replica and the remote Turso database. Only relevant when remote_mode = "replica".


Agent integration

install(target, scope?)

Installs coree for a supported agent target. Writes the appropriate config files.

TargetScopeWrites
cursorproject.cursor/mcp.json
cursoruser~/.cursor/mcp.json
claude-Returns instructions (use marketplace instead)
gemini-Returns instructions (use extension instead)

Scope is required for cursor.

uninstall(target, scope?)

Reverses what install wrote.


Diagnostics

diagnose()

Reports the current state of the MCP server without requiring the database to be ready. Use when something is wrong.

Returns: